i18next-cli 1.51.5 → 1.51.6
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/dist/cjs/cli.js
CHANGED
|
@@ -31,7 +31,7 @@ const program = new commander.Command();
|
|
|
31
31
|
program
|
|
32
32
|
.name('i18next-cli')
|
|
33
33
|
.description('A unified, high-performance i18next CLI.')
|
|
34
|
-
.version('1.51.
|
|
34
|
+
.version('1.51.6'); // This string is replaced with the actual version at build time by rollup
|
|
35
35
|
// new: global config override option
|
|
36
36
|
program.option('-c, --config <path>', 'Path to i18next-cli config file (overrides detection)');
|
|
37
37
|
program
|
|
@@ -118,7 +118,7 @@ class ScopeManager {
|
|
|
118
118
|
return undefined;
|
|
119
119
|
}
|
|
120
120
|
getUseTranslationConfig(name) {
|
|
121
|
-
const useTranslationNames = this.config.extract.useTranslationNames || ['useTranslation'];
|
|
121
|
+
const useTranslationNames = this.config.extract.useTranslationNames || ['useTranslation', 'getT', 'useT'];
|
|
122
122
|
for (const item of useTranslationNames) {
|
|
123
123
|
if (typeof item === 'string' && item === name) {
|
|
124
124
|
// Default behavior for simple string entries
|
package/dist/esm/cli.js
CHANGED
|
@@ -29,7 +29,7 @@ const program = new Command();
|
|
|
29
29
|
program
|
|
30
30
|
.name('i18next-cli')
|
|
31
31
|
.description('A unified, high-performance i18next CLI.')
|
|
32
|
-
.version('1.51.
|
|
32
|
+
.version('1.51.6'); // This string is replaced with the actual version at build time by rollup
|
|
33
33
|
// new: global config override option
|
|
34
34
|
program.option('-c, --config <path>', 'Path to i18next-cli config file (overrides detection)');
|
|
35
35
|
program
|
|
@@ -116,7 +116,7 @@ class ScopeManager {
|
|
|
116
116
|
return undefined;
|
|
117
117
|
}
|
|
118
118
|
getUseTranslationConfig(name) {
|
|
119
|
-
const useTranslationNames = this.config.extract.useTranslationNames || ['useTranslation'];
|
|
119
|
+
const useTranslationNames = this.config.extract.useTranslationNames || ['useTranslation', 'getT', 'useT'];
|
|
120
120
|
for (const item of useTranslationNames) {
|
|
121
121
|
if (typeof item === 'string' && item === name) {
|
|
122
122
|
// Default behavior for simple string entries
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "i18next-cli",
|
|
3
|
-
"version": "1.51.
|
|
3
|
+
"version": "1.51.6",
|
|
4
4
|
"description": "A unified, high-performance i18next CLI.",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"bin": {
|
|
@@ -56,19 +56,19 @@
|
|
|
56
56
|
"@rollup/plugin-terser": "^1.0.0",
|
|
57
57
|
"@rollup/plugin-typescript": "^12.3.0",
|
|
58
58
|
"@types/inquirer": "^9.0.9",
|
|
59
|
-
"@types/node": "^25.5.
|
|
59
|
+
"@types/node": "^25.5.2",
|
|
60
60
|
"@types/react": "^19.2.14",
|
|
61
|
-
"@typescript-eslint/parser": "^8.
|
|
62
|
-
"@vitest/coverage-v8": "^4.1.
|
|
61
|
+
"@typescript-eslint/parser": "^8.58.0",
|
|
62
|
+
"@vitest/coverage-v8": "^4.1.2",
|
|
63
63
|
"eslint": "^9.39.2",
|
|
64
64
|
"eslint-import-resolver-typescript": "^4.4.4",
|
|
65
65
|
"eslint-plugin-import": "^2.32.0",
|
|
66
66
|
"memfs": "^4.57.1",
|
|
67
67
|
"neostandard": "^0.13.0",
|
|
68
|
-
"rollup": "^4.60.
|
|
69
|
-
"typescript": "^
|
|
68
|
+
"rollup": "^4.60.1",
|
|
69
|
+
"typescript": "^6.0.2",
|
|
70
70
|
"unplugin-swc": "^1.5.9",
|
|
71
|
-
"vitest": "^4.1.
|
|
71
|
+
"vitest": "^4.1.2"
|
|
72
72
|
},
|
|
73
73
|
"dependencies": {
|
|
74
74
|
"@croct/json5-parser": "^0.2.2",
|
|
@@ -82,10 +82,10 @@
|
|
|
82
82
|
"jiti": "^2.6.1",
|
|
83
83
|
"jsonc-parser": "^3.3.1",
|
|
84
84
|
"magic-string": "^0.30.21",
|
|
85
|
-
"minimatch": "^10.2.
|
|
85
|
+
"minimatch": "^10.2.5",
|
|
86
86
|
"ora": "^9.3.0",
|
|
87
87
|
"react": "^19.2.4",
|
|
88
|
-
"react-i18next": "^17.0.
|
|
88
|
+
"react-i18next": "^17.0.2",
|
|
89
89
|
"yaml": "^2.8.3"
|
|
90
90
|
}
|
|
91
91
|
}
|
package/tsconfig.json
CHANGED
|
@@ -5,7 +5,7 @@
|
|
|
5
5
|
/* Basic Options */
|
|
6
6
|
// "incremental": true, /* Enable incremental compilation */
|
|
7
7
|
"target": "ES2022", /* Specify ECMAScript target version: 'ES3' (default), 'ES5', 'ES2015', 'ES2016', 'ES2017', 'ES2018', 'ES2019', 'ES2020', or 'ESNEXT'. */
|
|
8
|
-
"module": "
|
|
8
|
+
"module": "Node16", /* Specify module code generation. */
|
|
9
9
|
// "lib": [], /* Specify library files to be included in the compilation. */
|
|
10
10
|
// "allowJs": true, /* Allow javascript files to be compiled. */
|
|
11
11
|
// "checkJs": true, /* Report errors in .js files. */
|
|
@@ -15,7 +15,7 @@
|
|
|
15
15
|
// "sourceMap": true, /* Generates corresponding '.map' file. */
|
|
16
16
|
// "outFile": "./", /* Concatenate and emit output to single file. */
|
|
17
17
|
// "outDir": "./", /* Redirect output structure to the directory. */
|
|
18
|
-
|
|
18
|
+
"rootDir": "./src", /* Specify the root directory of input files. Use to control the output directory structure with --outDir. */
|
|
19
19
|
// "composite": true, /* Enable project compilation */
|
|
20
20
|
// "tsBuildInfoFile": "./", /* Specify file to store incremental compilation information */
|
|
21
21
|
// "removeComments": true, /* Do not emit comments to output. */
|
|
@@ -41,7 +41,7 @@
|
|
|
41
41
|
// "noFallthroughCasesInSwitch": true, /* Report errors for fallthrough cases in switch statement. */
|
|
42
42
|
|
|
43
43
|
/* Module Resolution Options */
|
|
44
|
-
"moduleResolution": "
|
|
44
|
+
"moduleResolution": "node16", /* Specify module resolution strategy. */
|
|
45
45
|
// "baseUrl": "./", /* Base directory to resolve non-absolute module names. */
|
|
46
46
|
// "paths": {}, /* A series of entries which re-map imports to lookup locations relative to the 'baseUrl'. */
|
|
47
47
|
// "rootDirs": [], /* List of root folders whose combined content represents the structure of the project at runtime. */
|