aboutsummaryrefslogtreecommitdiffstats
path: root/doc/i18n-technical.md
diff options
context:
space:
mode:
authorAdam Soltys <[email protected]>2023-04-05 13:41:07 -0700
committerAdam Soltys <[email protected]>2023-05-26 11:45:45 -0700
commit463b92484cff9d45af18573f6989c37ba09dea30 (patch)
treeab7738be42d0c2d8ad1d02b754187a3f033e7d87 /doc/i18n-technical.md
parente6bbeaee492057a6240999d843402b44fde1fc56 (diff)
downloadcoinos-ui-463b92484cff9d45af18573f6989c37ba09dea30.tar.gz
coinos-ui-463b92484cff9d45af18573f6989c37ba09dea30.zip
replace coinos
Diffstat (limited to 'doc/i18n-technical.md')
-rw-r--r--doc/i18n-technical.md12
1 files changed, 6 insertions, 6 deletions
diff --git a/doc/i18n-technical.md b/doc/i18n-technical.md
index 3f6a09d5..40dee889 100644
--- a/doc/i18n-technical.md
+++ b/doc/i18n-technical.md
@@ -1,4 +1,4 @@
-# coinos Internationalization - Technical Information
+# swapee Internationalization - Technical Information
_NOTE: This documentation was written for people with a technical background. If you do not have a technical background, consider reading [this guide](./i18n.md) instead._
@@ -6,11 +6,11 @@ Last Updated: 2022-08-23
## Dependencies
-coinos's internationalization system depends on the `npm` package [`sveltekit-i18n`](https://www.npmjs.com/package/sveltekit-i18n). Consider reading [its documentation](https://github.com/sveltekit-i18n/lib/tree/master/docs/README.md) in addition to this.
+swapee's internationalization system depends on the `npm` package [`sveltekit-i18n`](https://www.npmjs.com/package/sveltekit-i18n). Consider reading [its documentation](https://github.com/sveltekit-i18n/lib/tree/master/docs/README.md) in addition to this.
## Internationalization Code
-The main code for coinos's internationalization is at `src/lib/translations/index.js`. When imported, it does the following:
+The main code for swapee's internationalization is at `src/lib/translations/index.js`. When imported, it does the following:
1. Load all of the locales asynchronously, based on .
2. Initialize `sveltekit-i18n`.
@@ -19,7 +19,7 @@ It also defines important constants, including the list of available locales and
## Locale Files
-Each locale in `coinos-ui-v2` is defined by a JSON file in `src/locales`. Its name is the locale's [ISO 639-1 code](https://en.wikipedia.org/wiki/ISO_639-1) plus `.json`. It is simply a file that maps string IDs to translated strings. Here is an example of `en.json`:
+Each locale in `swapee-ui-v2` is defined by a JSON file in `src/locales`. Its name is the locale's [ISO 639-1 code](https://en.wikipedia.org/wiki/ISO_639-1) plus `.json`. It is simply a file that maps string IDs to translated strings. Here is an example of `en.json`:
```json
{
@@ -41,11 +41,11 @@ Strings are internationalized by simply using `sveltekit-i18n`'s `$t` function.
## 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.
+swapee 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:
+swapee 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)
- `create_locale` - adds a new locale to the lang.json file