From c80b37679f80a0d3947d3350ca793faca8f3aa31 Mon Sep 17 00:00:00 2001 From: Adrien Hopkins Date: Mon, 22 Aug 2022 16:29:02 -0500 Subject: added technical documentation for the guided translation script --- doc/i18n-technical.md | 6 ++++++ 1 file changed, 6 insertions(+) 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 -- cgit v1.2.3