@twin.org/merge-locales 0.0.1 → 0.0.2-next.11

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.
@@ -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
- if (!localeDictionaries[locale.code]) {
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.1", // x-release-please-version
176
+ version: "0.0.2-next.11", // x-release-please-version
179
177
  icon: "⚙️ ",
180
178
  supportsEnvFiles: false,
181
179
  overrideOutputWidth: options?.overrideOutputWidth
@@ -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
- if (!localeDictionaries[locale.code]) {
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.1", // x-release-please-version
173
+ version: "0.0.2-next.11", // x-release-please-version
176
174
  icon: "⚙️ ",
177
175
  supportsEnvFiles: false,
178
176
  overrideOutputWidth: options?.overrideOutputWidth
@@ -176,6 +176,15 @@
176
176
  },
177
177
  "slip0010": {
178
178
  "invalidSeed": "The seed is invalid \"{seed}\""
179
+ },
180
+ "rsa": {
181
+ "noPrivateKey": "Private key is required for this operation",
182
+ "invalidKeySize": "Invalid RSA key size"
183
+ }
184
+ },
185
+ "warn": {
186
+ "common": {
187
+ "devOnlyTool": "This tool is intended to be used for development purposes, it is not recommended for use in production scenarios."
179
188
  }
180
189
  },
181
190
  "cli": {
package/docs/changelog.md CHANGED
@@ -1,5 +1,232 @@
1
1
  # @twin.org/ts-to-openapi - Changelog
2
2
 
3
+ ## [0.0.2-next.11](https://github.com/twinfoundation/framework/compare/merge-locales-v0.0.2-next.10...merge-locales-v0.0.2-next.11) (2025-09-15)
4
+
5
+
6
+ ### Miscellaneous Chores
7
+
8
+ * **merge-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.2-next.10 to 0.0.2-next.11
16
+ * @twin.org/core bumped from 0.0.2-next.10 to 0.0.2-next.11
17
+ * @twin.org/nameof bumped from 0.0.2-next.10 to 0.0.2-next.11
18
+ * devDependencies
19
+ * @twin.org/nameof-transformer bumped from 0.0.2-next.10 to 0.0.2-next.11
20
+ * @twin.org/nameof-vitest-plugin bumped from 0.0.2-next.10 to 0.0.2-next.11
21
+
22
+ ## [0.0.2-next.10](https://github.com/twinfoundation/framework/compare/merge-locales-v0.0.2-next.9...merge-locales-v0.0.2-next.10) (2025-09-11)
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.9 to 0.0.2-next.10
35
+ * @twin.org/core bumped from 0.0.2-next.9 to 0.0.2-next.10
36
+ * @twin.org/nameof bumped from 0.0.2-next.9 to 0.0.2-next.10
37
+ * devDependencies
38
+ * @twin.org/nameof-transformer bumped from 0.0.2-next.9 to 0.0.2-next.10
39
+ * @twin.org/nameof-vitest-plugin bumped from 0.0.2-next.9 to 0.0.2-next.10
40
+
41
+ ## [0.0.2-next.9](https://github.com/twinfoundation/framework/compare/merge-locales-v0.0.2-next.8...merge-locales-v0.0.2-next.9) (2025-09-08)
42
+
43
+
44
+ ### Miscellaneous Chores
45
+
46
+ * **merge-locales:** Synchronize repo versions
47
+
48
+
49
+ ### Dependencies
50
+
51
+ * The following workspace dependencies were updated
52
+ * dependencies
53
+ * @twin.org/cli-core bumped from 0.0.2-next.8 to 0.0.2-next.9
54
+ * @twin.org/core bumped from 0.0.2-next.8 to 0.0.2-next.9
55
+ * @twin.org/nameof bumped from 0.0.2-next.8 to 0.0.2-next.9
56
+ * devDependencies
57
+ * @twin.org/nameof-transformer bumped from 0.0.2-next.8 to 0.0.2-next.9
58
+ * @twin.org/nameof-vitest-plugin bumped from 0.0.2-next.8 to 0.0.2-next.9
59
+
60
+ ## [0.0.2-next.8](https://github.com/twinfoundation/framework/compare/merge-locales-v0.0.2-next.7...merge-locales-v0.0.2-next.8) (2025-09-05)
61
+
62
+
63
+ ### Miscellaneous Chores
64
+
65
+ * **merge-locales:** Synchronize repo versions
66
+
67
+
68
+ ### Dependencies
69
+
70
+ * The following workspace dependencies were updated
71
+ * dependencies
72
+ * @twin.org/cli-core bumped from 0.0.2-next.7 to 0.0.2-next.8
73
+ * @twin.org/core bumped from 0.0.2-next.7 to 0.0.2-next.8
74
+ * @twin.org/nameof bumped from 0.0.2-next.7 to 0.0.2-next.8
75
+ * devDependencies
76
+ * @twin.org/nameof-transformer bumped from 0.0.2-next.7 to 0.0.2-next.8
77
+ * @twin.org/nameof-vitest-plugin bumped from 0.0.2-next.7 to 0.0.2-next.8
78
+
79
+ ## [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)
80
+
81
+
82
+ ### Features
83
+
84
+ * eslint migration to flat config ([74427d7](https://github.com/twinfoundation/framework/commit/74427d78d342167f7850e49ab87269326355befe))
85
+
86
+
87
+ ### Dependencies
88
+
89
+ * The following workspace dependencies were updated
90
+ * dependencies
91
+ * @twin.org/cli-core bumped from 0.0.2-next.6 to 0.0.2-next.7
92
+ * @twin.org/core bumped from 0.0.2-next.6 to 0.0.2-next.7
93
+ * @twin.org/nameof bumped from 0.0.2-next.6 to 0.0.2-next.7
94
+ * devDependencies
95
+ * @twin.org/nameof-transformer bumped from 0.0.2-next.6 to 0.0.2-next.7
96
+ * @twin.org/nameof-vitest-plugin bumped from 0.0.2-next.6 to 0.0.2-next.7
97
+
98
+ ## [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)
99
+
100
+
101
+ ### Miscellaneous Chores
102
+
103
+ * **merge-locales:** Synchronize repo versions
104
+
105
+
106
+ ### Dependencies
107
+
108
+ * The following workspace dependencies were updated
109
+ * dependencies
110
+ * @twin.org/cli-core bumped from 0.0.2-next.5 to 0.0.2-next.6
111
+ * @twin.org/core bumped from 0.0.2-next.5 to 0.0.2-next.6
112
+ * @twin.org/nameof bumped from 0.0.2-next.5 to 0.0.2-next.6
113
+ * devDependencies
114
+ * @twin.org/nameof-transformer bumped from 0.0.2-next.5 to 0.0.2-next.6
115
+ * @twin.org/nameof-vitest-plugin bumped from 0.0.2-next.5 to 0.0.2-next.6
116
+
117
+ ## [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)
118
+
119
+
120
+ ### Features
121
+
122
+ * use cause instead of inner for errors ([1f4acc4](https://github.com/twinfoundation/framework/commit/1f4acc4d7a6b71a134d9547da9bf40de1e1e49da))
123
+
124
+
125
+ ### Dependencies
126
+
127
+ * The following workspace dependencies were updated
128
+ * dependencies
129
+ * @twin.org/cli-core bumped from 0.0.2-next.4 to 0.0.2-next.5
130
+ * @twin.org/core bumped from 0.0.2-next.4 to 0.0.2-next.5
131
+ * @twin.org/nameof bumped from 0.0.2-next.4 to 0.0.2-next.5
132
+ * devDependencies
133
+ * @twin.org/nameof-transformer bumped from 0.0.2-next.4 to 0.0.2-next.5
134
+ * @twin.org/nameof-vitest-plugin bumped from 0.0.2-next.4 to 0.0.2-next.5
135
+
136
+ ## [0.0.2-next.4](https://github.com/twinfoundation/framework/compare/merge-locales-v0.0.2-next.3...merge-locales-v0.0.2-next.4) (2025-08-15)
137
+
138
+
139
+ ### Miscellaneous Chores
140
+
141
+ * **merge-locales:** Synchronize repo versions
142
+
143
+
144
+ ### Dependencies
145
+
146
+ * The following workspace dependencies were updated
147
+ * dependencies
148
+ * @twin.org/cli-core bumped from 0.0.2-next.3 to 0.0.2-next.4
149
+ * @twin.org/core bumped from 0.0.2-next.3 to 0.0.2-next.4
150
+ * @twin.org/nameof bumped from 0.0.2-next.3 to 0.0.2-next.4
151
+ * devDependencies
152
+ * @twin.org/nameof-transformer bumped from 0.0.2-next.3 to 0.0.2-next.4
153
+ * @twin.org/nameof-vitest-plugin bumped from 0.0.2-next.3 to 0.0.2-next.4
154
+
155
+ ## [0.0.2-next.3](https://github.com/twinfoundation/framework/compare/merge-locales-v0.0.2-next.2...merge-locales-v0.0.2-next.3) (2025-08-06)
156
+
157
+
158
+ ### Features
159
+
160
+ * relocate core packages from tools ([bcab8f3](https://github.com/twinfoundation/framework/commit/bcab8f3160442ea4fcaf442947462504f3d6a17d))
161
+ * update dependencies ([f3bd015](https://github.com/twinfoundation/framework/commit/f3bd015efd169196b7e0335f5cab876ba6ca1d75))
162
+
163
+
164
+ ### Bug Fixes
165
+
166
+ * repo urls in package.json for moved packages ([31ae463](https://github.com/twinfoundation/framework/commit/31ae463095dfa8c0e48bb5bb12316f1e8abb9a4c))
167
+
168
+
169
+ ### Dependencies
170
+
171
+ * The following workspace dependencies were updated
172
+ * dependencies
173
+ * @twin.org/cli-core bumped from 0.0.2-next.2 to 0.0.2-next.3
174
+ * @twin.org/core bumped from 0.0.2-next.2 to 0.0.2-next.3
175
+ * @twin.org/nameof bumped from 0.0.2-next.2 to 0.0.2-next.3
176
+ * devDependencies
177
+ * @twin.org/nameof-transformer bumped from 0.0.2-next.2 to 0.0.2-next.3
178
+ * @twin.org/nameof-vitest-plugin bumped from 0.0.2-next.2 to 0.0.2-next.3
179
+
180
+ ## [0.0.2-next.2](https://github.com/twinfoundation/framework/compare/merge-locales-v0.0.2-next.1...merge-locales-v0.0.2-next.2) (2025-08-06)
181
+
182
+
183
+ ### Features
184
+
185
+ * relocate core packages from tools ([bcab8f3](https://github.com/twinfoundation/framework/commit/bcab8f3160442ea4fcaf442947462504f3d6a17d))
186
+ * update dependencies ([f3bd015](https://github.com/twinfoundation/framework/commit/f3bd015efd169196b7e0335f5cab876ba6ca1d75))
187
+
188
+
189
+ ### Bug Fixes
190
+
191
+ * repo urls in package.json for moved packages ([31ae463](https://github.com/twinfoundation/framework/commit/31ae463095dfa8c0e48bb5bb12316f1e8abb9a4c))
192
+
193
+
194
+ ### Dependencies
195
+
196
+ * The following workspace dependencies were updated
197
+ * dependencies
198
+ * @twin.org/cli-core bumped from 0.0.2-next.1 to 0.0.2-next.2
199
+ * @twin.org/core bumped from 0.0.2-next.1 to 0.0.2-next.2
200
+ * @twin.org/nameof bumped from 0.0.2-next.1 to 0.0.2-next.2
201
+ * devDependencies
202
+ * @twin.org/nameof-transformer bumped from 0.0.2-next.1 to 0.0.2-next.2
203
+ * @twin.org/nameof-vitest-plugin bumped from 0.0.2-next.1 to 0.0.2-next.2
204
+
205
+ ## [0.0.2-next.1](https://github.com/twinfoundation/framework/compare/merge-locales-v0.0.2-next.0...merge-locales-v0.0.2-next.1) (2025-08-06)
206
+
207
+
208
+ ### Features
209
+
210
+ * relocate core packages from tools ([bcab8f3](https://github.com/twinfoundation/framework/commit/bcab8f3160442ea4fcaf442947462504f3d6a17d))
211
+ * update dependencies ([f3bd015](https://github.com/twinfoundation/framework/commit/f3bd015efd169196b7e0335f5cab876ba6ca1d75))
212
+
213
+
214
+ ### Bug Fixes
215
+
216
+ * repo urls in package.json for moved packages ([31ae463](https://github.com/twinfoundation/framework/commit/31ae463095dfa8c0e48bb5bb12316f1e8abb9a4c))
217
+
218
+
219
+ ### Dependencies
220
+
221
+ * The following workspace dependencies were updated
222
+ * dependencies
223
+ * @twin.org/cli-core bumped from 0.0.2-next.0 to 0.0.2-next.1
224
+ * @twin.org/core bumped from 0.0.2-next.0 to 0.0.2-next.1
225
+ * @twin.org/nameof bumped from 0.0.2-next.0 to 0.0.2-next.1
226
+ * devDependencies
227
+ * @twin.org/nameof-transformer bumped from 0.0.2-next.0 to 0.0.2-next.1
228
+ * @twin.org/nameof-vitest-plugin bumped from 0.0.2-next.0 to 0.0.2-next.1
229
+
3
230
  ## 0.0.1 (2025-07-03)
4
231
 
5
232
 
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@twin.org/merge-locales",
3
- "version": "0.0.1",
3
+ "version": "0.0.2-next.11",
4
4
  "description": "Tool to merge locale files from all dependencies",
5
5
  "repository": {
6
6
  "type": "git",
@@ -14,11 +14,11 @@
14
14
  "node": ">=20.0.0"
15
15
  },
16
16
  "dependencies": {
17
- "@twin.org/cli-core": "^0.0.1",
18
- "@twin.org/core": "^0.0.1",
19
- "@twin.org/nameof": "^0.0.1",
17
+ "@twin.org/cli-core": "0.0.2-next.11",
18
+ "@twin.org/core": "0.0.2-next.11",
19
+ "@twin.org/nameof": "0.0.2-next.11",
20
20
  "commander": "14.0.0",
21
- "glob": "11.0.2"
21
+ "glob": "11.0.3"
22
22
  },
23
23
  "main": "./dist/cjs/index.cjs",
24
24
  "module": "./dist/esm/index.mjs",