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 | c80b37679f80a0d3947d3350ca793faca8f3aa31 (patch) | |
| tree | 28340dfd412217870e5437dc2b4fd9b07ab0148b /doc | |
| parent | 2d3ec49db42fdaadb1da27ef1b866f6065b755e1 (diff) | |
| download | coinos-ui-c80b37679f80a0d3947d3350ca793faca8f3aa31.tar.gz coinos-ui-c80b37679f80a0d3947d3350ca793faca8f3aa31.zip | |
added technical documentation for the guided translation script
Diffstat (limited to 'doc')
| -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 |
