diff options
| author | Adam Soltys <[email protected]> | 2022-08-22 15:49:08 -0700 |
|---|---|---|
| committer | Adam Soltys <[email protected]> | 2022-08-22 15:49:08 -0700 |
| commit | fba3b1db97ca738311e2f9de08d42bd72e491eaa (patch) | |
| tree | 8424b797a8384645c06617006da2bc6771992c14 /doc | |
| parent | a90fbcf954287534b88e9760335eff15fd433488 (diff) | |
| download | coinos-ui-fba3b1db97ca738311e2f9de08d42bd72e491eaa.tar.gz coinos-ui-fba3b1db97ca738311e2f9de08d42bd72e491eaa.zip | |
migrate to sveltekit-i18n
Diffstat (limited to 'doc')
| -rw-r--r-- | doc/i18n-technical.md | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/doc/i18n-technical.md b/doc/i18n-technical.md index c1746162..b59934ae 100644 --- a/doc/i18n-technical.md +++ b/doc/i18n-technical.md @@ -37,7 +37,7 @@ Each locale in `coinos-ui-v2` is defined by a JSON file in `src/locales`. Its na Strings are internationalized by simply using `svelte-i18n`'s [`$format`](https://github.com/kaisermann/svelte-i18n/blob/96a5adab7560249c8881e0612454e01c09273400/docs/Formatting.md) function. A localized string looks like this: ``` -{$_('stringID')} +{$t('stringID')} ``` (`$_` is a convenient alias for `$format`.) |
