i18next-cli 1.79.0 → 1.79.1

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/README.md CHANGED
@@ -78,7 +78,7 @@ import { defineConfig } from 'i18next-cli';
78
78
  export default defineConfig({
79
79
  locales: ['en', 'de'],
80
80
  extract: {
81
- input: ['src/**/*.{js,jsx,ts,tsx}'],
81
+ input: ['src/**/*.{js,jsx,mjs,ts,tsx}'],
82
82
  output: 'public/locales/{{language}}/{{namespace}}.json',
83
83
  },
84
84
  });
package/dist/cjs/cli.js CHANGED
@@ -39,7 +39,7 @@ const program = new commander.Command();
39
39
  program
40
40
  .name('i18next-cli')
41
41
  .description('A unified, high-performance i18next CLI.')
42
- .version('1.79.0') // This string is replaced with the actual version at build time by rollup
42
+ .version('1.79.1') // This string is replaced with the actual version at build time by rollup
43
43
  .addHelpText('after', '\nUsing an AI coding agent? Install the i18next-localization skill: npx skills add i18next/i18next-cli\n');
44
44
  // new: global config override option
45
45
  program.option('-c, --config <path>', 'Path to i18next-cli config file (overrides detection)');
@@ -91,10 +91,10 @@ async function detectConfig() {
91
91
  locales,
92
92
  extract: {
93
93
  input: [
94
- 'src/**/*.{js,jsx,ts,tsx}',
95
- 'app/**/*.{js,jsx,ts,tsx}',
96
- 'pages/**/*.{js,jsx,ts,tsx}',
97
- 'components/**/*.{js,jsx,ts,tsx}'
94
+ 'src/**/*.{js,jsx,mjs,ts,tsx}',
95
+ 'app/**/*.{js,jsx,mjs,ts,tsx}',
96
+ 'pages/**/*.{js,jsx,mjs,ts,tsx}',
97
+ 'components/**/*.{js,jsx,mjs,ts,tsx}'
98
98
  ],
99
99
  output: node_path.join(basePath, '{{language}}', `{{namespace}}${extension}`),
100
100
  outputFormat,
package/dist/cjs/init.js CHANGED
@@ -113,7 +113,7 @@ async function runInit(options = {}) {
113
113
  type: 'input',
114
114
  name: 'input',
115
115
  message: 'What is the glob pattern for your source files?',
116
- default: detectedConfig?.extract?.input ? (detectedConfig.extract.input || [])[0] : 'src/**/*.{js,jsx,ts,tsx}',
116
+ default: detectedConfig?.extract?.input ? (detectedConfig.extract.input || [])[0] : 'src/**/*.{js,jsx,mjs,ts,tsx}',
117
117
  },
118
118
  {
119
119
  type: 'input',
@@ -150,7 +150,7 @@ async function runMigrator(customConfigPath) {
150
150
  const newConfig = {
151
151
  locales: oldConfig.locales || ['en'],
152
152
  extract: {
153
- input: oldConfig.input || 'src/**/*.{js,jsx,ts,tsx}',
153
+ input: oldConfig.input || 'src/**/*.{js,jsx,mjs,ts,tsx}',
154
154
  output: (oldConfig.output || 'locales/$LOCALE/$NAMESPACE.json')
155
155
  .replace('$LOCALE', '{{language}}')
156
156
  .replace('$NAMESPACE', '{{namespace}}'),
package/dist/esm/cli.js CHANGED
@@ -33,7 +33,7 @@ const program = new Command();
33
33
  program
34
34
  .name('i18next-cli')
35
35
  .description('A unified, high-performance i18next CLI.')
36
- .version('1.79.0') // This string is replaced with the actual version at build time by rollup
36
+ .version('1.79.1') // This string is replaced with the actual version at build time by rollup
37
37
  .addHelpText('after', '\nUsing an AI coding agent? Install the i18next-localization skill: npx skills add i18next/i18next-cli\n');
38
38
  // new: global config override option
39
39
  program.option('-c, --config <path>', 'Path to i18next-cli config file (overrides detection)');
@@ -89,10 +89,10 @@ async function detectConfig() {
89
89
  locales,
90
90
  extract: {
91
91
  input: [
92
- 'src/**/*.{js,jsx,ts,tsx}',
93
- 'app/**/*.{js,jsx,ts,tsx}',
94
- 'pages/**/*.{js,jsx,ts,tsx}',
95
- 'components/**/*.{js,jsx,ts,tsx}'
92
+ 'src/**/*.{js,jsx,mjs,ts,tsx}',
93
+ 'app/**/*.{js,jsx,mjs,ts,tsx}',
94
+ 'pages/**/*.{js,jsx,mjs,ts,tsx}',
95
+ 'components/**/*.{js,jsx,mjs,ts,tsx}'
96
96
  ],
97
97
  output: join(basePath, '{{language}}', `{{namespace}}${extension}`),
98
98
  outputFormat,
package/dist/esm/init.js CHANGED
@@ -107,7 +107,7 @@ async function runInit(options = {}) {
107
107
  type: 'input',
108
108
  name: 'input',
109
109
  message: 'What is the glob pattern for your source files?',
110
- default: detectedConfig?.extract?.input ? (detectedConfig.extract.input || [])[0] : 'src/**/*.{js,jsx,ts,tsx}',
110
+ default: detectedConfig?.extract?.input ? (detectedConfig.extract.input || [])[0] : 'src/**/*.{js,jsx,mjs,ts,tsx}',
111
111
  },
112
112
  {
113
113
  type: 'input',
@@ -148,7 +148,7 @@ async function runMigrator(customConfigPath) {
148
148
  const newConfig = {
149
149
  locales: oldConfig.locales || ['en'],
150
150
  extract: {
151
- input: oldConfig.input || 'src/**/*.{js,jsx,ts,tsx}',
151
+ input: oldConfig.input || 'src/**/*.{js,jsx,mjs,ts,tsx}',
152
152
  output: (oldConfig.output || 'locales/$LOCALE/$NAMESPACE.json')
153
153
  .replace('$LOCALE', '{{language}}')
154
154
  .replace('$NAMESPACE', '{{namespace}}'),
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "i18next-cli",
3
- "version": "1.79.0",
3
+ "version": "1.79.1",
4
4
  "description": "A unified, high-performance i18next CLI.",
5
5
  "type": "module",
6
6
  "bin": {