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 /src/lib/translations/index.js | |
| parent | a90fbcf954287534b88e9760335eff15fd433488 (diff) | |
| download | coinos-ui-fba3b1db97ca738311e2f9de08d42bd72e491eaa.tar.gz coinos-ui-fba3b1db97ca738311e2f9de08d42bd72e491eaa.zip | |
migrate to sveltekit-i18n
Diffstat (limited to 'src/lib/translations/index.js')
| -rw-r--r-- | src/lib/translations/index.js | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/src/lib/translations/index.js b/src/lib/translations/index.js new file mode 100644 index 00000000..2bc5477e --- /dev/null +++ b/src/lib/translations/index.js @@ -0,0 +1,9 @@ +import i18n from 'sveltekit-i18n'; +import translations from './translations'; + +const config = { + initLocale: 'en', + translations, +}; + +export const { t, l, locales, locale } = new i18n(config); |
