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

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.10", // 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.10", // 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,213 @@
1
1
  # @twin.org/ts-to-openapi - Changelog
2
2
 
3
+ ## [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)
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.9 to 0.0.2-next.10
16
+ * @twin.org/core bumped from 0.0.2-next.9 to 0.0.2-next.10
17
+ * @twin.org/nameof bumped from 0.0.2-next.9 to 0.0.2-next.10
18
+ * devDependencies
19
+ * @twin.org/nameof-transformer bumped from 0.0.2-next.9 to 0.0.2-next.10
20
+ * @twin.org/nameof-vitest-plugin bumped from 0.0.2-next.9 to 0.0.2-next.10
21
+
22
+ ## [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)
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.8 to 0.0.2-next.9
35
+ * @twin.org/core bumped from 0.0.2-next.8 to 0.0.2-next.9
36
+ * @twin.org/nameof bumped from 0.0.2-next.8 to 0.0.2-next.9
37
+ * devDependencies
38
+ * @twin.org/nameof-transformer bumped from 0.0.2-next.8 to 0.0.2-next.9
39
+ * @twin.org/nameof-vitest-plugin bumped from 0.0.2-next.8 to 0.0.2-next.9
40
+
41
+ ## [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)
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.7 to 0.0.2-next.8
54
+ * @twin.org/core bumped from 0.0.2-next.7 to 0.0.2-next.8
55
+ * @twin.org/nameof bumped from 0.0.2-next.7 to 0.0.2-next.8
56
+ * devDependencies
57
+ * @twin.org/nameof-transformer bumped from 0.0.2-next.7 to 0.0.2-next.8
58
+ * @twin.org/nameof-vitest-plugin bumped from 0.0.2-next.7 to 0.0.2-next.8
59
+
60
+ ## [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)
61
+
62
+
63
+ ### Features
64
+
65
+ * eslint migration to flat config ([74427d7](https://github.com/twinfoundation/framework/commit/74427d78d342167f7850e49ab87269326355befe))
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.6 to 0.0.2-next.7
73
+ * @twin.org/core bumped from 0.0.2-next.6 to 0.0.2-next.7
74
+ * @twin.org/nameof bumped from 0.0.2-next.6 to 0.0.2-next.7
75
+ * devDependencies
76
+ * @twin.org/nameof-transformer bumped from 0.0.2-next.6 to 0.0.2-next.7
77
+ * @twin.org/nameof-vitest-plugin bumped from 0.0.2-next.6 to 0.0.2-next.7
78
+
79
+ ## [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)
80
+
81
+
82
+ ### Miscellaneous Chores
83
+
84
+ * **merge-locales:** Synchronize repo versions
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.5 to 0.0.2-next.6
92
+ * @twin.org/core bumped from 0.0.2-next.5 to 0.0.2-next.6
93
+ * @twin.org/nameof bumped from 0.0.2-next.5 to 0.0.2-next.6
94
+ * devDependencies
95
+ * @twin.org/nameof-transformer bumped from 0.0.2-next.5 to 0.0.2-next.6
96
+ * @twin.org/nameof-vitest-plugin bumped from 0.0.2-next.5 to 0.0.2-next.6
97
+
98
+ ## [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)
99
+
100
+
101
+ ### Features
102
+
103
+ * use cause instead of inner for errors ([1f4acc4](https://github.com/twinfoundation/framework/commit/1f4acc4d7a6b71a134d9547da9bf40de1e1e49da))
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.4 to 0.0.2-next.5
111
+ * @twin.org/core bumped from 0.0.2-next.4 to 0.0.2-next.5
112
+ * @twin.org/nameof bumped from 0.0.2-next.4 to 0.0.2-next.5
113
+ * devDependencies
114
+ * @twin.org/nameof-transformer bumped from 0.0.2-next.4 to 0.0.2-next.5
115
+ * @twin.org/nameof-vitest-plugin bumped from 0.0.2-next.4 to 0.0.2-next.5
116
+
117
+ ## [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)
118
+
119
+
120
+ ### Miscellaneous Chores
121
+
122
+ * **merge-locales:** Synchronize repo versions
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.3 to 0.0.2-next.4
130
+ * @twin.org/core bumped from 0.0.2-next.3 to 0.0.2-next.4
131
+ * @twin.org/nameof bumped from 0.0.2-next.3 to 0.0.2-next.4
132
+ * devDependencies
133
+ * @twin.org/nameof-transformer bumped from 0.0.2-next.3 to 0.0.2-next.4
134
+ * @twin.org/nameof-vitest-plugin bumped from 0.0.2-next.3 to 0.0.2-next.4
135
+
136
+ ## [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)
137
+
138
+
139
+ ### Features
140
+
141
+ * relocate core packages from tools ([bcab8f3](https://github.com/twinfoundation/framework/commit/bcab8f3160442ea4fcaf442947462504f3d6a17d))
142
+ * update dependencies ([f3bd015](https://github.com/twinfoundation/framework/commit/f3bd015efd169196b7e0335f5cab876ba6ca1d75))
143
+
144
+
145
+ ### Bug Fixes
146
+
147
+ * repo urls in package.json for moved packages ([31ae463](https://github.com/twinfoundation/framework/commit/31ae463095dfa8c0e48bb5bb12316f1e8abb9a4c))
148
+
149
+
150
+ ### Dependencies
151
+
152
+ * The following workspace dependencies were updated
153
+ * dependencies
154
+ * @twin.org/cli-core bumped from 0.0.2-next.2 to 0.0.2-next.3
155
+ * @twin.org/core bumped from 0.0.2-next.2 to 0.0.2-next.3
156
+ * @twin.org/nameof bumped from 0.0.2-next.2 to 0.0.2-next.3
157
+ * devDependencies
158
+ * @twin.org/nameof-transformer bumped from 0.0.2-next.2 to 0.0.2-next.3
159
+ * @twin.org/nameof-vitest-plugin bumped from 0.0.2-next.2 to 0.0.2-next.3
160
+
161
+ ## [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)
162
+
163
+
164
+ ### Features
165
+
166
+ * relocate core packages from tools ([bcab8f3](https://github.com/twinfoundation/framework/commit/bcab8f3160442ea4fcaf442947462504f3d6a17d))
167
+ * update dependencies ([f3bd015](https://github.com/twinfoundation/framework/commit/f3bd015efd169196b7e0335f5cab876ba6ca1d75))
168
+
169
+
170
+ ### Bug Fixes
171
+
172
+ * repo urls in package.json for moved packages ([31ae463](https://github.com/twinfoundation/framework/commit/31ae463095dfa8c0e48bb5bb12316f1e8abb9a4c))
173
+
174
+
175
+ ### Dependencies
176
+
177
+ * The following workspace dependencies were updated
178
+ * dependencies
179
+ * @twin.org/cli-core bumped from 0.0.2-next.1 to 0.0.2-next.2
180
+ * @twin.org/core bumped from 0.0.2-next.1 to 0.0.2-next.2
181
+ * @twin.org/nameof bumped from 0.0.2-next.1 to 0.0.2-next.2
182
+ * devDependencies
183
+ * @twin.org/nameof-transformer bumped from 0.0.2-next.1 to 0.0.2-next.2
184
+ * @twin.org/nameof-vitest-plugin bumped from 0.0.2-next.1 to 0.0.2-next.2
185
+
186
+ ## [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)
187
+
188
+
189
+ ### Features
190
+
191
+ * relocate core packages from tools ([bcab8f3](https://github.com/twinfoundation/framework/commit/bcab8f3160442ea4fcaf442947462504f3d6a17d))
192
+ * update dependencies ([f3bd015](https://github.com/twinfoundation/framework/commit/f3bd015efd169196b7e0335f5cab876ba6ca1d75))
193
+
194
+
195
+ ### Bug Fixes
196
+
197
+ * repo urls in package.json for moved packages ([31ae463](https://github.com/twinfoundation/framework/commit/31ae463095dfa8c0e48bb5bb12316f1e8abb9a4c))
198
+
199
+
200
+ ### Dependencies
201
+
202
+ * The following workspace dependencies were updated
203
+ * dependencies
204
+ * @twin.org/cli-core bumped from 0.0.2-next.0 to 0.0.2-next.1
205
+ * @twin.org/core bumped from 0.0.2-next.0 to 0.0.2-next.1
206
+ * @twin.org/nameof bumped from 0.0.2-next.0 to 0.0.2-next.1
207
+ * devDependencies
208
+ * @twin.org/nameof-transformer bumped from 0.0.2-next.0 to 0.0.2-next.1
209
+ * @twin.org/nameof-vitest-plugin bumped from 0.0.2-next.0 to 0.0.2-next.1
210
+
3
211
  ## 0.0.1 (2025-07-03)
4
212
 
5
213
 
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.10",
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.10",
18
+ "@twin.org/core": "0.0.2-next.10",
19
+ "@twin.org/nameof": "0.0.2-next.10",
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",