--locale fixes

This commit is contained in:
AnimeDL 2024-04-13 08:20:22 -07:00
parent f39645166e
commit bc79628f4f
2 changed files with 4 additions and 2 deletions

3
adn.ts
View file

@ -78,7 +78,8 @@ export default class AnimationDigitalNetwork implements ServiceClass {
public async cli() {
console.info(`\n=== Multi Downloader NX ${packageJson.version} ===\n`);
const argv = yargs.appArgv(this.cfg.cli);
this.locale = argv.locale;
if (argv.locale !== 'en-US')
this.locale = argv.locale;
if (argv.debug)
this.debug = true;

3
ao.ts
View file

@ -82,7 +82,8 @@ export default class AnimeOnegai implements ServiceClass {
public async cli() {
console.info(`\n=== Multi Downloader NX ${packageJson.version} ===\n`);
const argv = yargs.appArgv(this.cfg.cli);
this.locale = argv.locale;
if (argv.locale !== 'en-US')
this.locale = argv.locale;
if (argv.debug)
this.debug = true;