X-Git-Url: https://git.r.bdr.sh/rbdr/forum/blobdiff_plain/2dc5448262ce444ead594376c47a62c3e88e0f8e..8050f772caeedafffab6e3ec2f309205a019f3d0:/app/config/i18n.js?ds=sidebyside 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() +});