@twin.org/validate-locales 0.0.3 → 0.0.4-next.2
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/es/cli.js +1 -1
- package/dist/es/cli.js.map +1 -1
- package/dist/locales/en.json +5 -2
- package/docs/changelog.md +55 -0
- package/package.json +5 -5
package/dist/es/cli.js
CHANGED
|
@@ -20,7 +20,7 @@ export class CLI extends CLIBase {
|
|
|
20
20
|
return this.execute({
|
|
21
21
|
title: "TWIN Validate Locales",
|
|
22
22
|
appName: "validate-locales",
|
|
23
|
-
version: "0.0.
|
|
23
|
+
version: "0.0.4-next.2", // x-release-please-version
|
|
24
24
|
icon: "⚙️ ",
|
|
25
25
|
supportsEnvFiles: false,
|
|
26
26
|
overrideOutputWidth: options?.overrideOutputWidth
|
package/dist/es/cli.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"cli.js","sourceRoot":"","sources":["../../src/cli.ts"],"names":[],"mappings":"AAAA,gCAAgC;AAChC,uCAAuC;AACvC,OAAO,IAAI,MAAM,WAAW,CAAC;AAC7B,OAAO,EAAE,aAAa,EAAE,MAAM,UAAU,CAAC;AACzC,OAAO,EAAE,OAAO,EAAE,MAAM,oBAAoB,CAAC;AAE7C,OAAO,EAAE,2BAA2B,EAAE,MAAM,+BAA+B,CAAC;AAE5E;;GAEG;AACH,MAAM,OAAO,GAAI,SAAQ,OAAO;IAC/B;;;;;;;OAOG;IACI,KAAK,CAAC,GAAG,CACf,IAAc,EACd,gBAAyB,EACzB,OAA0C;QAE1C,OAAO,IAAI,CAAC,OAAO,CAClB;YACC,KAAK,EAAE,uBAAuB;YAC9B,OAAO,EAAE,kBAAkB;YAC3B,OAAO,EAAE,
|
|
1
|
+
{"version":3,"file":"cli.js","sourceRoot":"","sources":["../../src/cli.ts"],"names":[],"mappings":"AAAA,gCAAgC;AAChC,uCAAuC;AACvC,OAAO,IAAI,MAAM,WAAW,CAAC;AAC7B,OAAO,EAAE,aAAa,EAAE,MAAM,UAAU,CAAC;AACzC,OAAO,EAAE,OAAO,EAAE,MAAM,oBAAoB,CAAC;AAE7C,OAAO,EAAE,2BAA2B,EAAE,MAAM,+BAA+B,CAAC;AAE5E;;GAEG;AACH,MAAM,OAAO,GAAI,SAAQ,OAAO;IAC/B;;;;;;;OAOG;IACI,KAAK,CAAC,GAAG,CACf,IAAc,EACd,gBAAyB,EACzB,OAA0C;QAE1C,OAAO,IAAI,CAAC,OAAO,CAClB;YACC,KAAK,EAAE,uBAAuB;YAC9B,OAAO,EAAE,kBAAkB;YAC3B,OAAO,EAAE,cAAc,EAAE,2BAA2B;YACpD,IAAI,EAAE,KAAK;YACX,gBAAgB,EAAE,KAAK;YACvB,mBAAmB,EAAE,OAAO,EAAE,mBAAmB;SACjD,EACD,gBAAgB,IAAI,IAAI,CAAC,IAAI,CAAC,IAAI,CAAC,OAAO,CAAC,aAAa,CAAC,MAAM,CAAC,IAAI,CAAC,GAAG,CAAC,CAAC,EAAE,YAAY,CAAC,EACzF,IAAI,CACJ,CAAC;IACH,CAAC;IAED;;;OAGG;IACO,aAAa,CAAC,OAAgB;QACvC,2BAA2B,CAAC,OAAO,CAAC,CAAC;IACtC,CAAC;CACD","sourcesContent":["// Copyright 2024 IOTA Stiftung.\n// SPDX-License-Identifier: Apache-2.0.\nimport path from \"node:path\";\nimport { fileURLToPath } from \"node:url\";\nimport { CLIBase } from \"@twin.org/cli-core\";\nimport type { Command } from \"commander\";\nimport { buildCommandValidateLocales } from \"./commands/validateLocales.js\";\n\n/**\n * The main entry point for the CLI.\n */\nexport class CLI extends CLIBase {\n\t/**\n\t * Run the app.\n\t * @param argv The process arguments.\n\t * @param localesDirectory The directory for the locales, default to relative to the script.\n\t * @param options Additional options.\n\t * @param options.overrideOutputWidth Override the output width.\n\t * @returns The exit code.\n\t */\n\tpublic async run(\n\t\targv: string[],\n\t\tlocalesDirectory?: string,\n\t\toptions?: { overrideOutputWidth?: number }\n\t): Promise<number> {\n\t\treturn this.execute(\n\t\t\t{\n\t\t\t\ttitle: \"TWIN Validate Locales\",\n\t\t\t\tappName: \"validate-locales\",\n\t\t\t\tversion: \"0.0.4-next.2\", // x-release-please-version\n\t\t\t\ticon: \"⚙️ \",\n\t\t\t\tsupportsEnvFiles: false,\n\t\t\t\toverrideOutputWidth: options?.overrideOutputWidth\n\t\t\t},\n\t\t\tlocalesDirectory ?? path.join(path.dirname(fileURLToPath(import.meta.url)), \"../locales\"),\n\t\t\targv\n\t\t);\n\t}\n\n\t/**\n\t * Configure any options or actions at the root program level.\n\t * @param program The root program command.\n\t */\n\tprotected configureRoot(program: Command): void {\n\t\tbuildCommandValidateLocales(program);\n\t}\n}\n"]}
|
package/dist/locales/en.json
CHANGED
|
@@ -65,6 +65,9 @@
|
|
|
65
65
|
"bigint": "Property \"{property}\" must be a bigint, it is \"{value}\"",
|
|
66
66
|
"boolean": "Property \"{property}\" must be a boolean, it is \"{value}\"",
|
|
67
67
|
"date": "Property \"{property}\" must be a date, it is \"{value}\"",
|
|
68
|
+
"dateString": "Property \"{property}\" must be a date-only string in ISO 8601 format, it is \"{value}\"",
|
|
69
|
+
"dateTimeString": "Property \"{property}\" must be a date-time string in ISO 8601 format, it is \"{value}\"",
|
|
70
|
+
"timeString": "Property \"{property}\" must be a time string in ISO 8601 format, it is \"{value}\"",
|
|
68
71
|
"timestampMilliseconds": "Property \"{property}\" must be a timestamp in milliseconds, it is \"{value}\"",
|
|
69
72
|
"timestampSeconds": "Property \"{property}\" must be a timestamp in seconds, it is \"{value}\"",
|
|
70
73
|
"objectUndefined": "Property \"{property}\" must be an object, it is \"undefined\"",
|
|
@@ -77,8 +80,8 @@
|
|
|
77
80
|
"arrayEndsWith": "Property \"{property}\" must be an array ending with [{endValues}], it is \"{value}\"",
|
|
78
81
|
"uint8Array": "Property \"{property}\" must be a Uint8Array, it is \"{value}\"",
|
|
79
82
|
"function": "Property \"{property}\" must be a function, it is \"{value}\"",
|
|
80
|
-
"urn": "Property \"{property}\" must be a
|
|
81
|
-
"url": "Property \"{property}\" must be a
|
|
83
|
+
"urn": "Property \"{property}\" must be a URN formatted string, it is \"{value}\"",
|
|
84
|
+
"url": "Property \"{property}\" must be a URL formatted string, it is \"{value}\"",
|
|
82
85
|
"email": "Property \"{property}\" must be string in e-mail format, it is \"{value}\"",
|
|
83
86
|
"uuidV7": "Property \"{property}\" must be a UUIDv7 formatted string, it is \"{value}\"",
|
|
84
87
|
"uuidV7Compact": "Property \"{property}\" must be a UUIDv7 formatted string in compact mode, it is \"{value}\""
|
package/docs/changelog.md
CHANGED
|
@@ -1,5 +1,60 @@
|
|
|
1
1
|
# Changelog
|
|
2
2
|
|
|
3
|
+
## [0.0.4-next.2](https://github.com/iotaledger/twin-framework/compare/validate-locales-v0.0.4-next.1...validate-locales-v0.0.4-next.2) (2026-05-28)
|
|
4
|
+
|
|
5
|
+
|
|
6
|
+
### Miscellaneous Chores
|
|
7
|
+
|
|
8
|
+
* **validate-locales:** Synchronize repo versions
|
|
9
|
+
|
|
10
|
+
|
|
11
|
+
### Dependencies
|
|
12
|
+
|
|
13
|
+
* The following workspace dependencies were updated
|
|
14
|
+
* dependencies
|
|
15
|
+
* @twin.org/cli-core bumped from 0.0.4-next.1 to 0.0.4-next.2
|
|
16
|
+
* @twin.org/core bumped from 0.0.4-next.1 to 0.0.4-next.2
|
|
17
|
+
* @twin.org/nameof bumped from 0.0.4-next.1 to 0.0.4-next.2
|
|
18
|
+
* @twin.org/nameof-transformer bumped from 0.0.4-next.1 to 0.0.4-next.2
|
|
19
|
+
* devDependencies
|
|
20
|
+
* @twin.org/merge-locales bumped from 0.0.4-next.1 to 0.0.4-next.2
|
|
21
|
+
* @twin.org/nameof-vitest-plugin bumped from 0.0.4-next.1 to 0.0.4-next.2
|
|
22
|
+
|
|
23
|
+
## [0.0.4-next.1](https://github.com/iotaledger/twin-framework/compare/validate-locales-v0.0.4-next.0...validate-locales-v0.0.4-next.1) (2026-05-27)
|
|
24
|
+
|
|
25
|
+
|
|
26
|
+
### Features
|
|
27
|
+
|
|
28
|
+
* add context id features ([#206](https://github.com/iotaledger/twin-framework/issues/206)) ([ef0d4ee](https://github.com/iotaledger/twin-framework/commit/ef0d4ee11a4f5fc6cc6f52a4958ce905c04ee13b))
|
|
29
|
+
* add support for health i18n validation ([7a286dd](https://github.com/iotaledger/twin-framework/commit/7a286ddb0c1bfa498bf3a77126cd589042bad6de))
|
|
30
|
+
* additional error types in validate locales ([d0e87d6](https://github.com/iotaledger/twin-framework/commit/d0e87d6d9430e91417636d30dd4865fa6a31d825))
|
|
31
|
+
* detect unused prefixes and non i18 key messages ([a357810](https://github.com/iotaledger/twin-framework/commit/a357810754e25478496c2e6fd71ddc49dee9f747))
|
|
32
|
+
* locales validation ([#197](https://github.com/iotaledger/twin-framework/issues/197)) ([55fdadb](https://github.com/iotaledger/twin-framework/commit/55fdadb13595ce0047f787bd1d4135d429a99f12))
|
|
33
|
+
* support for "property" assignments in validate-locales ([2414a0c](https://github.com/iotaledger/twin-framework/commit/2414a0c2e29d8935a17b58b9bdc31609c0f97140))
|
|
34
|
+
* support templated strings in health check source ([14b8d1c](https://github.com/iotaledger/twin-framework/commit/14b8d1cefa8b63153b6c2833b8f487509a128b10))
|
|
35
|
+
* typescript 6 update ([1d10f31](https://github.com/iotaledger/twin-framework/commit/1d10f31e6516ec622773f45e88af82fe749b384a))
|
|
36
|
+
* update dependencies ([4da77ab](https://github.com/iotaledger/twin-framework/commit/4da77ab30f499e52825ac5a76f51436ceb59c26e))
|
|
37
|
+
|
|
38
|
+
|
|
39
|
+
### Bug Fixes
|
|
40
|
+
|
|
41
|
+
* ensure __decorate is defined for decorators ([103a563](https://github.com/iotaledger/twin-framework/commit/103a563ce01ebdef6240d2e590e7b026e8692684))
|
|
42
|
+
* validate locales missing log key ([54fb89a](https://github.com/iotaledger/twin-framework/commit/54fb89ae9e05ab7dc79e42dc4933575c39bffd8a))
|
|
43
|
+
* validate locales missing log key ([14a649e](https://github.com/iotaledger/twin-framework/commit/14a649e569c0509bef045a76edf1818f3eca6ded))
|
|
44
|
+
|
|
45
|
+
|
|
46
|
+
### Dependencies
|
|
47
|
+
|
|
48
|
+
* The following workspace dependencies were updated
|
|
49
|
+
* dependencies
|
|
50
|
+
* @twin.org/cli-core bumped from 0.0.4-next.0 to 0.0.4-next.1
|
|
51
|
+
* @twin.org/core bumped from 0.0.4-next.0 to 0.0.4-next.1
|
|
52
|
+
* @twin.org/nameof bumped from 0.0.4-next.0 to 0.0.4-next.1
|
|
53
|
+
* @twin.org/nameof-transformer bumped from 0.0.4-next.0 to 0.0.4-next.1
|
|
54
|
+
* devDependencies
|
|
55
|
+
* @twin.org/merge-locales bumped from 0.0.4-next.0 to 0.0.4-next.1
|
|
56
|
+
* @twin.org/nameof-vitest-plugin bumped from 0.0.4-next.0 to 0.0.4-next.1
|
|
57
|
+
|
|
3
58
|
## [0.0.3](https://github.com/iotaledger/twin-framework/compare/validate-locales-v0.0.3...validate-locales-v0.0.3) (2026-05-27)
|
|
4
59
|
|
|
5
60
|
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@twin.org/validate-locales",
|
|
3
|
-
"version": "0.0.
|
|
3
|
+
"version": "0.0.4-next.2",
|
|
4
4
|
"description": "Validate source files against the locales",
|
|
5
5
|
"repository": {
|
|
6
6
|
"type": "git",
|
|
@@ -14,10 +14,10 @@
|
|
|
14
14
|
"node": ">=20.0.0"
|
|
15
15
|
},
|
|
16
16
|
"dependencies": {
|
|
17
|
-
"@twin.org/cli-core": "
|
|
18
|
-
"@twin.org/core": "
|
|
19
|
-
"@twin.org/nameof": "
|
|
20
|
-
"@twin.org/nameof-transformer": "
|
|
17
|
+
"@twin.org/cli-core": "0.0.4-next.2",
|
|
18
|
+
"@twin.org/core": "0.0.4-next.2",
|
|
19
|
+
"@twin.org/nameof": "0.0.4-next.2",
|
|
20
|
+
"@twin.org/nameof-transformer": "0.0.4-next.2",
|
|
21
21
|
"commander": "14.0.3",
|
|
22
22
|
"glob": "13.0.6",
|
|
23
23
|
"typescript": "6.0.3"
|