@twin.org/merge-locales 0.0.2-next.6 → 0.0.2-next.8

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.2-next.6", // x-release-please-version
176
+ version: "0.0.2-next.8", // 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.2-next.6", // x-release-please-version
173
+ version: "0.0.2-next.8", // 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.8](https://github.com/twinfoundation/framework/compare/merge-locales-v0.0.2-next.7...merge-locales-v0.0.2-next.8) (2025-09-05)
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.7 to 0.0.2-next.8
16
+ * @twin.org/core bumped from 0.0.2-next.7 to 0.0.2-next.8
17
+ * @twin.org/nameof bumped from 0.0.2-next.7 to 0.0.2-next.8
18
+ * devDependencies
19
+ * @twin.org/nameof-transformer bumped from 0.0.2-next.7 to 0.0.2-next.8
20
+ * @twin.org/nameof-vitest-plugin bumped from 0.0.2-next.7 to 0.0.2-next.8
21
+
22
+ ## [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)
23
+
24
+
25
+ ### Features
26
+
27
+ * eslint migration to flat config ([74427d7](https://github.com/twinfoundation/framework/commit/74427d78d342167f7850e49ab87269326355befe))
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.6 to 0.0.2-next.7
35
+ * @twin.org/core bumped from 0.0.2-next.6 to 0.0.2-next.7
36
+ * @twin.org/nameof bumped from 0.0.2-next.6 to 0.0.2-next.7
37
+ * devDependencies
38
+ * @twin.org/nameof-transformer bumped from 0.0.2-next.6 to 0.0.2-next.7
39
+ * @twin.org/nameof-vitest-plugin bumped from 0.0.2-next.6 to 0.0.2-next.7
40
+
3
41
  ## [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)
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.6",
3
+ "version": "0.0.2-next.8",
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.6",
18
- "@twin.org/core": "0.0.2-next.6",
19
- "@twin.org/nameof": "0.0.2-next.6",
17
+ "@twin.org/cli-core": "0.0.2-next.8",
18
+ "@twin.org/core": "0.0.2-next.8",
19
+ "@twin.org/nameof": "0.0.2-next.8",
20
20
  "commander": "14.0.0",
21
21
  "glob": "11.0.3"
22
22
  },