diff options
| author | Adrien Hopkins <[email protected]> | 2022-08-22 16:29:02 -0500 |
|---|---|---|
| committer | Adrien Hopkins <[email protected]> | 2022-08-22 16:29:02 -0500 |
| commit | 0fc4f16d1d41bb9b3fe3f1c09ab3ac711501bf01 (patch) | |
| tree | 0d470ecc593e97e379dc88ce93cd47bb278295d3 | |
| parent | cea0077d3d6483e32629264468b1c09981171b73 (diff) | |
| download | coinos-ui-0fc4f16d1d41bb9b3fe3f1c09ab3ac711501bf01.tar.gz coinos-ui-0fc4f16d1d41bb9b3fe3f1c09ab3ac711501bf01.zip | |
added technical documentation for the guided translation script
| -rw-r--r-- | doc/i18n-technical.md | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/doc/i18n-technical.md b/doc/i18n-technical.md index 6c45ee01..c1746162 100644 --- a/doc/i18n-technical.md +++ b/doc/i18n-technical.md @@ -45,3 +45,9 @@ Strings are internationalized by simply using `svelte-i18n`'s [`$format`](https: ## The Locale Selector CoinOS also has a `LocaleSelector` component, which should be used to select locales. It is a dropdown that allows you to select & update the locale. + +## The Guided Translation Script + +CoinOS has a Python script that helps you with the technical parts of translation. It is located at `src/locales/guided_translation.py`. It also has some utility functions: +- `nested_dict_keys` - gets a list of keys of a nested dictionary in dot-separated shallow format (e.g. a.b.c) +- `localize_string` - localizes a string interactively |
