diff options
| author | Ben Beltran <ben@nsovocal.com> | 2020-06-20 14:58:26 +0200 |
|---|---|---|
| committer | Ben Beltran <ben@nsovocal.com> | 2020-06-20 14:58:26 +0200 |
| commit | 8050f772caeedafffab6e3ec2f309205a019f3d0 (patch) | |
| tree | 81b18185e1ffc9bb483e18b82f3a088dde7f358b /app/config/i18n.js | |
| parent | 2dc5448262ce444ead594376c47a62c3e88e0f8e (diff) | |
Add internationalized error block
Diffstat (limited to 'app/config/i18n.js')
| -rw-r--r-- | app/config/i18n.js | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/app/config/i18n.js b/app/config/i18n.js new file mode 100644 index 0000000..e00adb5 --- /dev/null +++ b/app/config/i18n.js @@ -0,0 +1,10 @@ +import { addMessages, getLocaleFromNavigator, init } from 'svelte-i18n'; + +import en from './translations/en.json'; + +addMessages('en', en); + +init({ + fallbackLocale: 'en', + initialLocale: getLocaleFromNavigator() +}); |