@x18n/cli 0.0.10 → 0.0.12

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.12";
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.12",
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.12",
42
+ "@x18n/core": "0.0.12",
43
+ "@x18n/node": "0.0.12",
44
+ "@x18n/ui": "0.0.12",
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