]> git.r.bdr.sh - rbdr/forum/blob - app/config/i18n.js
e00adb5a0998064455e61a9b8a1a5f074588522b
[rbdr/forum] / app / config / i18n.js
1 import { addMessages, getLocaleFromNavigator, init } from 'svelte-i18n';
2
3 import en from './translations/en.json';
4
5 addMessages('en', en);
6
7 init({
8 fallbackLocale: 'en',
9 initialLocale: getLocaleFromNavigator()
10 });