mirror of
https://github.com/inaturalist/iNaturalistReactNative.git
synced 2026-04-19 06:23:12 -04:00
* Support localization with i18next and Fluent * src/i18n/strings.ftl holds all application strings. If you're going to add a string, add it there * src/i18n/l10n/ has all the translations (or localizations), both .ftl files in Fluent format and .ftl.json files in which the file structure is JSON but the values are Fluent strings * src/i18n/i18ncli.js is a CLI tool to generate files and code given localizations in .ftl files So the process for adding strings looks like 1. Update src/i18n/strings.ftl 2. Add strings to code using the useTranslation hook 3. Run `node src/i18n/i18ncli.js ftl2json` 4. Build * Set up for use with Crowdin CLI or github integration * Added some example strings that might not change * Expanded README to explain how to add new text
14 lines
328 B
YAML
14 lines
328 B
YAML
base_path" : "."
|
|
base_url : "https://api.crowdin.com"
|
|
preserve_hierarchy: true
|
|
|
|
files:
|
|
- source: "/src/i18n/strings.ftl"
|
|
dest: "/iNaturalistReactNative/%original_file_name%"
|
|
translation: "/src/i18n/l10n/%locale%.ftl"
|
|
export_only_approved: true
|
|
languages_mapping:
|
|
locale:
|
|
es-ES: es
|
|
ru: ru
|