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
|`outputDir`|`string`|`./locales-json`| Directory to write exported JSON files to |
57
+
|`cleanOutputDir`|`boolean`|`true`| Remove output directory before exporting |
58
+
|`defaultNamespace`|`string`|`base`| Filename (without `.json`) for root-level translations |
57
59
58
60
### `ImportOptions`
59
61
@@ -79,6 +81,8 @@ locales-json/
79
81
└── ...
80
82
```
81
83
84
+
Exported files are compatible with the [Single Language JSON](https://simplelocalize.io/docs/file-formats/single-language-json/) file format used by SimpleLocalize.
85
+
82
86
Each JSON file contains flat key-value pairs:
83
87
84
88
```json
@@ -101,7 +105,7 @@ Nested typesafe-i18n keys are flattened with dots:
101
105
102
106
After exporting translations, use the [SimpleLocalize CLI](https://simplelocalize.io/docs/cli/get-started/) to upload and download translations.
103
107
104
-
Example `simplelocalize.yml`:
108
+
See [`example/simplelocalize.yml`](example/simplelocalize.yml) for a working configuration. Example `simplelocalize.yml`:
0 commit comments