i18next-cli 1.56.9 → 1.56.10

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
@@ -44,7 +44,7 @@ A unified, high-performance i18next CLI toolchain, powered by SWC.
44
44
  - **Translation Status**: Get a high-level overview or a detailed, key-by-key report of your project's translation completeness.
45
45
  - **Plugin System**: Extensible architecture for custom extraction patterns and file types (e.g., HTML, Handlebars).
46
46
  - **Legacy Migration**: Automatic migration from `i18next-parser` configurations.
47
- - **Cloud Integration**: Seamless integration with the [Locize](https://locize.com) translation management platform.
47
+ - **Cloud Integration**: Seamless integration with the [Locize](https://www.locize.com?utm_source=i18next_cli_readme&utm_medium=github&utm_campaign=readme) translation management platform.
48
48
 
49
49
  ## Installation
50
50
 
@@ -253,7 +253,7 @@ npx i18next-cli lint
253
253
 
254
254
  ### `instrument`
255
255
 
256
- Scans your source code for hardcoded user-facing strings and instruments them with i18next translation calls. This is useful for adding i18next instrumentation to an existing codebase that wasn't built with internationalization in mind. You can see this in action in [this video](https://youtu.be/aWZnZXwGg34) or in [this blog post](https://www.locize.com/blog/i18next-cli-instrument).
256
+ Scans your source code for hardcoded user-facing strings and instruments them with i18next translation calls. This is useful for adding i18next instrumentation to an existing codebase that wasn't built with internationalization in mind. You can see this in action in [this video](https://youtu.be/aWZnZXwGg34) or in [this blog post](https://www.locize.com/blog/i18next-cli-instrument?utm_source=i18next_cli_readme&utm_medium=github&utm_campaign=readme).
257
257
 
258
258
  > **⚠️ First-Step Tool:** The `instrument` command uses heuristic-based detection and is designed as a **first pass** to identify and suggest transformation candidates. It will **not catch 100% of cases**, and you should expect both false positives and false negatives. Always review the suggested transformations carefully before committing them to your codebase. Think of it as an intelligent code assistant, not an automated compiler.
259
259
 
@@ -1507,21 +1507,21 @@ This programmatic API gives you the same power as the CLI but with full control
1507
1507
  <h3 align="center">Gold Sponsors</h3>
1508
1508
 
1509
1509
  <p align="center">
1510
- <a href="https://www.locize.com/" target="_blank">
1510
+ <a href="https://www.locize.com/?utm_source=i18next_cli_readme&utm_medium=github&utm_campaign=readme" target="_blank">
1511
1511
  <img src="https://raw.githubusercontent.com/i18next/i18next/master/assets/locize_sponsor_240.gif" width="240px">
1512
1512
  </a>
1513
1513
  </p>
1514
1514
 
1515
1515
  ---
1516
1516
 
1517
- **From the creators of i18next: localization as a service - [Locize](https://www.locize.com)**
1517
+ **From the creators of i18next: localization as a service - [Locize](https://www.locize.com?utm_source=i18next_cli_readme&utm_medium=github&utm_campaign=readme)**
1518
1518
 
1519
- A translation management system built around the i18next ecosystem - [Locize](https://locize.com).
1519
+ A translation management system built around the i18next ecosystem - [Locize](https://www.locize.com?utm_source=i18next_cli_readme&utm_medium=github&utm_campaign=readme).
1520
1520
 
1521
- **Now with a [Free plan](https://locize.com/pricing) for small projects!** Perfect for hobbyists or getting started.
1521
+ **Now with a [Free plan](https://www.locize.com/pricing?utm_source=i18next_cli_readme&utm_medium=github&utm_campaign=readme) for small projects!** Perfect for hobbyists or getting started.
1522
1522
 
1523
1523
  ![Locize](https://www.locize.com/img/ads/github_locize.png)
1524
1524
 
1525
- With using [Locize](https://www.locize.com/?utm_source=i18next_cli_readme&utm_medium=github) you directly support the future of i18next.
1525
+ With using [Locize](https://www.locize.com/?utm_source=i18next_cli_readme&utm_medium=github&utm_campaign=readme) you directly support the future of i18next.
1526
1526
 
1527
1527
  ---
package/dist/cjs/cli.js CHANGED
@@ -32,7 +32,7 @@ const program = new commander.Command();
32
32
  program
33
33
  .name('i18next-cli')
34
34
  .description('A unified, high-performance i18next CLI.')
35
- .version('1.56.9'); // This string is replaced with the actual version at build time by rollup
35
+ .version('1.56.10'); // This string is replaced with the actual version at build time by rollup
36
36
  // new: global config override option
37
37
  program.option('-c, --config <path>', 'Path to i18next-cli config file (overrides detection)');
38
38
  program
@@ -835,6 +835,7 @@ function findHardcodedStrings(ast, code, config) {
835
835
  issues.push({
836
836
  text: node.value.trim(),
837
837
  line: getLineNumber(position),
838
+ type: 'hardcoded',
838
839
  });
839
840
  lastSearchIndex = position + searchText.length;
840
841
  }
package/dist/esm/cli.js CHANGED
@@ -30,7 +30,7 @@ const program = new Command();
30
30
  program
31
31
  .name('i18next-cli')
32
32
  .description('A unified, high-performance i18next CLI.')
33
- .version('1.56.9'); // This string is replaced with the actual version at build time by rollup
33
+ .version('1.56.10'); // This string is replaced with the actual version at build time by rollup
34
34
  // new: global config override option
35
35
  program.option('-c, --config <path>', 'Path to i18next-cli config file (overrides detection)');
36
36
  program
@@ -833,6 +833,7 @@ function findHardcodedStrings(ast, code, config) {
833
833
  issues.push({
834
834
  text: node.value.trim(),
835
835
  line: getLineNumber(position),
836
+ type: 'hardcoded',
836
837
  });
837
838
  lastSearchIndex = position + searchText.length;
838
839
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "i18next-cli",
3
- "version": "1.56.9",
3
+ "version": "1.56.10",
4
4
  "description": "A unified, high-performance i18next CLI.",
5
5
  "type": "module",
6
6
  "bin": {