@x18n/cli 0.0.12 → 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.
|
|
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.
|
|
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.
|
|
42
|
-
"@x18n/core": "0.0.
|
|
43
|
-
"@x18n/node": "0.0.
|
|
44
|
-
"@x18n/ui": "0.0.
|
|
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",
|
|
@@ -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.
|
|
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
|
|
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
|
|