Files
iNaturalistReactNative/crowdin.yml
Ken-ichi 9ea8bf7070 i18n with Fluent and i18next (#40)
* 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
2022-01-24 12:02:44 -08:00

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