You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Reads typesafe-i18n translation files from disk, flattens them into flat key-value JSON files, and writes them to the output directory.
17
+
Reads typesafe-i18n translation files from disk, flattens them into flat key-value JSON files (or keeps the nested structure with `flatten: false`), and writes them to the output directory.
|`outputDir`|`string`|`./locales-json`| Directory to write exported JSON files to |
159
+
|`cleanOutputDir`|`boolean`|`true`| Remove output directory before exporting |
160
+
|`defaultNamespace`|`string`|`base`| Filename (without `.json`) for root-level translations |
161
+
|`flatten`|`boolean`|`true`| Flatten nested keys with dots (e.g. `section.title`). Set to `false` to write nested JSON mirroring the source structure |
|`inputDir`|`string`|`./locales-json`| Directory to read JSON files from |
177
+
|`defaultNamespace`|`string`|`base`| Filename (without `.json`) for root-level translations |
178
+
|`baseLocale`|`string`|`en`| Locale processed first. Must match your typesafe-i18n base locale — other locales would otherwise have their namespace files silently skipped |
0 commit comments