♻️(i18n) adapt script to major upgrade of yargs

"yargs" dependency has been updated to version 18.0.0,
which causes breaking changes in the script.
This commit is contained in:
Anthony LC
2025-06-05 10:58:59 +02:00
parent bc0824d110
commit 62433ef7f1
2 changed files with 4 additions and 6 deletions

View File

@@ -1,11 +1,10 @@
import fs from 'fs';
import path from 'path';
import { hideBin } from 'yargs/helpers';
import yargs from 'yargs/yargs';
import yargs from 'yargs';
// Get our args
const argv = yargs(hideBin(process.argv)).argv;
const argv = yargs(process.argv).argv;
const { app, output } = argv;
const folderPath = './locales/' + app;

View File

@@ -8,11 +8,10 @@
import fs from 'fs';
import path from 'path';
import { hideBin } from 'yargs/helpers';
import yargs from 'yargs/yargs';
import yargs from 'yargs';
// Get our args
const argv = yargs(hideBin(process.argv)).argv;
const argv = yargs(process.argv).argv;
const { app, output, language } = argv;
const folderPath = './locales/' + app;