[mod] main:language selection strictness
This commit is contained in:
parent
087c126453
commit
dddd839789
1 changed files with 8 additions and 5 deletions
|
@ -176,11 +176,14 @@ async function main(
|
|||
|
||||
// init
|
||||
await _espe.conf.load(args["conf_path"]);
|
||||
if (_espe.conf.get().general.language === null) {
|
||||
// do nothing
|
||||
}
|
||||
else {
|
||||
lib_plankton.translate.promote(_espe.conf.get().general.language);
|
||||
{
|
||||
const language : (null | string) = _espe.conf.get().general.language;
|
||||
if (language === null) {
|
||||
// do nothing
|
||||
}
|
||||
else {
|
||||
lib_plankton.translate.promote(language);
|
||||
}
|
||||
}
|
||||
lib_plankton.log.conf_push(
|
||||
_espe.conf.get().log.map(
|
||||
|
|
Loading…
Add table
Reference in a new issue