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
|`--output-file <path>`| - | Path to save JSON output (use stdout if not provided) | - |
272
273
|`--po-file-prefix <prefix>`| - | Prefix for each output `.po` file (e.g., "app-" → "app-fr_FR.po") | - |
273
-
|`--locale-format <format>`| - |Format to use for locale codes in file names: `wp_locale` (ru_RU), `iso_639_1` (ru), `iso_639_2` (rus), or `target_lang` (default) |`target_lang`|
274
+
|`--locale-format <format>`| - |**Controls output filename format only** (not input). Options: `wp_locale` (ru_RU), `iso_639_1` (ru), `iso_639_2` (rus), or `target_lang` (uses input format as-is) |`target_lang`|
274
275
275
276
### Translation Behavior
276
277
@@ -332,6 +333,43 @@ Using this example, "Block Editor" and other terms will not be translated to tar
332
333
333
334
---
334
335
336
+
## 🌍 Supported Languages
337
+
338
+
**Potomatic** supports a wide range of languages (including regional variants) and accepts multiple input formats. You can specify target languages using any of the following formats:
Control how language codes appear in output filenames:
359
+
360
+
-`target_lang` (default): Uses the format you provided (e.g., `fr` → `fr.po`, `fr_FR` → `fr_FR.po`)
361
+
-`wp_locale`: WordPress format with region (e.g., `fr_FR.po`, `es_ES.po`)
362
+
-`iso_639_1`: 2-letter ISO codes (e.g., `fr.po`, `es.po`)
363
+
-`iso_639_2`: 3-letter ISO codes (e.g., `fra.po`, `spa.po`)
364
+
365
+
### Complete Language List
366
+
367
+
For a full list of supported languages and their corresponding codes, see the [language mapping reference](src/utils/languageMapping.js). The mappings are based on [GlotPress locale data](https://github.com/GlotPress/GlotPress/blob/develop/locales/locales.php) from WordPress.org's translation platform.
368
+
369
+
**Major supported languages include**: Afrikaans, Arabic (multiple variants), Bengali, Chinese (Simplified/Traditional), Czech, Danish, Dutch, English (multiple variants), French, German, Greek, Hebrew, Hindi, Hungarian, Indonesian, Italian, Japanese, Korean, Persian, Polish, Portuguese (Brazil/Portugal), Romanian, Russian, Spanish (multiple variants), Swedish, Thai, Turkish, Ukrainian, Vietnamese, and more.
370
+
371
+
---
372
+
335
373
## ⚙️ Configuration Files
336
374
337
375
**Potomatic** uses several configuration files in the `config/` directory to customize its behavior:
0 commit comments