♻️(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:
@@ -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;
|
||||
|
||||
@@ -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;
|
||||
|
||||
Reference in New Issue
Block a user