@x18n/cli 0.0.10 → 0.0.13

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/cli.mjs CHANGED
@@ -15,7 +15,7 @@ import { existsSync } from "node:fs";
15
15
  import { namespaceFromPath } from "@x18n/builtins/finders";
16
16
  import { parse, stringify } from "yaml";
17
17
  //#region package.json
18
- var version = "0.0.10";
18
+ var version = "0.0.13";
19
19
  //#endregion
20
20
  //#region src/commands/change.ts
21
21
  async function project(options) {
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@x18n/cli",
3
3
  "type": "module",
4
- "version": "0.0.10",
4
+ "version": "0.0.13",
5
5
  "description": "Manage and view i18n files of any project, for humans and agents",
6
6
  "author": "Anthony Fu <anthonyfu117@hotmail.com>",
7
7
  "license": "MIT",
@@ -38,10 +38,10 @@
38
38
  "node": ">=22"
39
39
  },
40
40
  "dependencies": {
41
- "@x18n/builtins": "0.0.10",
42
- "@x18n/core": "0.0.10",
43
- "@x18n/node": "0.0.10",
44
- "@x18n/ui": "0.0.10",
41
+ "@x18n/builtins": "0.0.13",
42
+ "@x18n/core": "0.0.13",
43
+ "@x18n/node": "0.0.13",
44
+ "@x18n/ui": "0.0.13",
45
45
  "cac": "^7.1.0",
46
46
  "devframe": "^1.2.6",
47
47
  "nostics": "^1.3.0",
@@ -36,6 +36,7 @@ Before you act on one of these, stop and ask, with your recommendation and the f
36
36
  | `invalid-syntax` | Fix the message syntax (ICU braces, linked messages) with `x18n set`. When a linked message does not exist, fix the link or add that key. |
37
37
  | `key-conflict` | A key is both a message and a parent, or is defined twice in one locale. Ask which one to keep, then `x18n rename` or `x18n delete` with `--dry-run` first. |
38
38
  | `unused-key` | Show the list from `x18n keys --unused --json` and delete only the keys the user confirms: `x18n delete <key> --dry-run --json`, then without `--dry-run`. Keys built at runtime go in `usage.keysInUse` in the config instead. |
39
+ | `redundant-translation` | The message repeats what its fallback locale (`localeFallbacks`) already says. Delete it with `x18n delete <key> --locale <locale> --dry-run` first, then without `--dry-run`. |
39
40
  | `glossary` | Rewrite the message with the term from the glossary (`x18n doctor --json` lists it under `config.glossary`), with `x18n set`. |
40
41
  | `locale-code-conflict`, `dynamic-key`, `key-style`, `identical-to-source`, `hard-string` | Report them. Fix only when the user asks; `hard-string` is fixed with `x18n extract`, or silenced with an `x18n-ignore` control comment when the string is not UI text. |
41
42
 
@@ -16,7 +16,7 @@ Use this when a project has i18n-ally settings: `i18n-ally.*`, legacy `vue-i18n-
16
16
  4. Write the files: `x18n migrate i18n-ally --json` (add `--format yml` if the user chose YAML; `--force` replaces an existing x18n config). It writes:
17
17
  - `x18n.config.ts` (or `.yml`, `.json`) from the project settings
18
18
  - `x18n/custom.x18n-plugin.yml`, when there are custom regexes, a custom framework, refactor templates or `localeCountryMap` flags
19
- - editor settings in `.vscode/settings.json`: `x18n.displayLocale`, `x18n.inPlace`, `x18n.annotations`, `x18n.annotationMaxLength`
19
+ - editor settings in `.vscode/settings.json`: `x18n.displayLocale`, `x18n.annotationInPlace`, `x18n.annotations`, `x18n.annotationMaxLength`, `x18n.showFlags`
20
20
  - `.x18n/reviews.yml`, when `.vscode/i18n-ally-reviews.yml` or `.vscode/i18n-ally-next-reviews.yml` exists
21
21
 
22
22
  **Done when** the command exits with code 0 and `data.files` lists the files above that apply.
@@ -42,7 +42,7 @@ In VS Code, the extension offers the same migration when it finds i18n-ally sett
42
42
  | `refactor.templates` | `extract.templates` |
43
43
  | `extract.*` | `extract.*`, same meaning |
44
44
  | `sortKeys`, `sortCompare`, `indent`, `tabStyle`, `keepFulfilled` | `write.sort`, `write.indent`, `write.keepFilled` |
45
- | `annotations`, `annotationInPlace`, `annotationMaxLength` | VS Code settings `x18n.annotations`, `x18n.inPlace`, `x18n.annotationMaxLength` |
45
+ | `annotations`, `annotationInPlace`, `annotationInPlaceFullMatch`, `annotationMaxLength`, `showFlags`, `theme.annotation*` | VS Code settings with the same names under `x18n.*` |
46
46
  | `localeCountryMap` | `localeInfo` flags in the generated YAML plugin |
47
47
  | custom framework `languageIds`, `usageMatchRegex`, `scopeRangeRegex`, `refactorTemplates`, `monopoly` | the generated YAML plugin: `scanners.regex`, `scopes.regex`, `extract.templates`; `monopoly` sets `presets: []` |
48
48