@twin.org/merge-locales 0.0.2-next.5 → 0.0.2-next.7
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/cjs/index.cjs +2 -4
- package/dist/esm/index.mjs +2 -4
- package/docs/changelog.md +38 -0
- package/package.json +4 -4
package/dist/cjs/index.cjs
CHANGED
|
@@ -117,9 +117,7 @@ async function mergePackageLocales(packageLocalDirectory, packageName, locales,
|
|
|
117
117
|
if (await cliCore.CLIUtils.dirExists(localeFile)) {
|
|
118
118
|
cliCore.CLIDisplay.value(core.I18n.formatMessage("commands.merge-locales.labels.mergingLocale"), locale.code, 1);
|
|
119
119
|
const localeDictionary = await cliCore.CLIUtils.readJsonFile(localeFile);
|
|
120
|
-
|
|
121
|
-
localeDictionaries[locale.code] = {};
|
|
122
|
-
}
|
|
120
|
+
localeDictionaries[locale.code] ??= {};
|
|
123
121
|
localeDictionaries[locale.code] = core.ObjectHelper.merge(localeDictionaries[locale.code], localeDictionary);
|
|
124
122
|
}
|
|
125
123
|
}
|
|
@@ -175,7 +173,7 @@ class CLI extends cliCore.CLIBase {
|
|
|
175
173
|
return this.execute({
|
|
176
174
|
title: "TWIN Merge Locales",
|
|
177
175
|
appName: "merge-locales",
|
|
178
|
-
version: "0.0.2-next.
|
|
176
|
+
version: "0.0.2-next.7", // x-release-please-version
|
|
179
177
|
icon: "⚙️ ",
|
|
180
178
|
supportsEnvFiles: false,
|
|
181
179
|
overrideOutputWidth: options?.overrideOutputWidth
|
package/dist/esm/index.mjs
CHANGED
|
@@ -114,9 +114,7 @@ async function mergePackageLocales(packageLocalDirectory, packageName, locales,
|
|
|
114
114
|
if (await CLIUtils.dirExists(localeFile)) {
|
|
115
115
|
CLIDisplay.value(I18n.formatMessage("commands.merge-locales.labels.mergingLocale"), locale.code, 1);
|
|
116
116
|
const localeDictionary = await CLIUtils.readJsonFile(localeFile);
|
|
117
|
-
|
|
118
|
-
localeDictionaries[locale.code] = {};
|
|
119
|
-
}
|
|
117
|
+
localeDictionaries[locale.code] ??= {};
|
|
120
118
|
localeDictionaries[locale.code] = ObjectHelper.merge(localeDictionaries[locale.code], localeDictionary);
|
|
121
119
|
}
|
|
122
120
|
}
|
|
@@ -172,7 +170,7 @@ class CLI extends CLIBase {
|
|
|
172
170
|
return this.execute({
|
|
173
171
|
title: "TWIN Merge Locales",
|
|
174
172
|
appName: "merge-locales",
|
|
175
|
-
version: "0.0.2-next.
|
|
173
|
+
version: "0.0.2-next.7", // x-release-please-version
|
|
176
174
|
icon: "⚙️ ",
|
|
177
175
|
supportsEnvFiles: false,
|
|
178
176
|
overrideOutputWidth: options?.overrideOutputWidth
|
package/docs/changelog.md
CHANGED
|
@@ -1,5 +1,43 @@
|
|
|
1
1
|
# @twin.org/ts-to-openapi - Changelog
|
|
2
2
|
|
|
3
|
+
## [0.0.2-next.7](https://github.com/twinfoundation/framework/compare/merge-locales-v0.0.2-next.6...merge-locales-v0.0.2-next.7) (2025-08-29)
|
|
4
|
+
|
|
5
|
+
|
|
6
|
+
### Features
|
|
7
|
+
|
|
8
|
+
* eslint migration to flat config ([74427d7](https://github.com/twinfoundation/framework/commit/74427d78d342167f7850e49ab87269326355befe))
|
|
9
|
+
|
|
10
|
+
|
|
11
|
+
### Dependencies
|
|
12
|
+
|
|
13
|
+
* The following workspace dependencies were updated
|
|
14
|
+
* dependencies
|
|
15
|
+
* @twin.org/cli-core bumped from 0.0.2-next.6 to 0.0.2-next.7
|
|
16
|
+
* @twin.org/core bumped from 0.0.2-next.6 to 0.0.2-next.7
|
|
17
|
+
* @twin.org/nameof bumped from 0.0.2-next.6 to 0.0.2-next.7
|
|
18
|
+
* devDependencies
|
|
19
|
+
* @twin.org/nameof-transformer bumped from 0.0.2-next.6 to 0.0.2-next.7
|
|
20
|
+
* @twin.org/nameof-vitest-plugin bumped from 0.0.2-next.6 to 0.0.2-next.7
|
|
21
|
+
|
|
22
|
+
## [0.0.2-next.6](https://github.com/twinfoundation/framework/compare/merge-locales-v0.0.2-next.5...merge-locales-v0.0.2-next.6) (2025-08-27)
|
|
23
|
+
|
|
24
|
+
|
|
25
|
+
### Miscellaneous Chores
|
|
26
|
+
|
|
27
|
+
* **merge-locales:** Synchronize repo versions
|
|
28
|
+
|
|
29
|
+
|
|
30
|
+
### Dependencies
|
|
31
|
+
|
|
32
|
+
* The following workspace dependencies were updated
|
|
33
|
+
* dependencies
|
|
34
|
+
* @twin.org/cli-core bumped from 0.0.2-next.5 to 0.0.2-next.6
|
|
35
|
+
* @twin.org/core bumped from 0.0.2-next.5 to 0.0.2-next.6
|
|
36
|
+
* @twin.org/nameof bumped from 0.0.2-next.5 to 0.0.2-next.6
|
|
37
|
+
* devDependencies
|
|
38
|
+
* @twin.org/nameof-transformer bumped from 0.0.2-next.5 to 0.0.2-next.6
|
|
39
|
+
* @twin.org/nameof-vitest-plugin bumped from 0.0.2-next.5 to 0.0.2-next.6
|
|
40
|
+
|
|
3
41
|
## [0.0.2-next.5](https://github.com/twinfoundation/framework/compare/merge-locales-v0.0.2-next.4...merge-locales-v0.0.2-next.5) (2025-08-19)
|
|
4
42
|
|
|
5
43
|
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@twin.org/merge-locales",
|
|
3
|
-
"version": "0.0.2-next.
|
|
3
|
+
"version": "0.0.2-next.7",
|
|
4
4
|
"description": "Tool to merge locale files from all dependencies",
|
|
5
5
|
"repository": {
|
|
6
6
|
"type": "git",
|
|
@@ -14,9 +14,9 @@
|
|
|
14
14
|
"node": ">=20.0.0"
|
|
15
15
|
},
|
|
16
16
|
"dependencies": {
|
|
17
|
-
"@twin.org/cli-core": "0.0.2-next.
|
|
18
|
-
"@twin.org/core": "0.0.2-next.
|
|
19
|
-
"@twin.org/nameof": "0.0.2-next.
|
|
17
|
+
"@twin.org/cli-core": "0.0.2-next.7",
|
|
18
|
+
"@twin.org/core": "0.0.2-next.7",
|
|
19
|
+
"@twin.org/nameof": "0.0.2-next.7",
|
|
20
20
|
"commander": "14.0.0",
|
|
21
21
|
"glob": "11.0.3"
|
|
22
22
|
},
|