]> git.r.bdr.sh - rbdr/prompt/blame - src/config/i18n.js
Pass public path variable
[rbdr/prompt] / src / config / i18n.js
CommitLineData
38431710
RBR
1import { addMessages, getLocaleFromNavigator, init } from 'svelte-i18n';
2
3import en from './translations/en.json';
4import es from './translations/es.json';
5
6addMessages('en', en);
7addMessages('es', es);
8
9init({
10 fallbackLocale: 'en',
11 initialLocale: getLocaleFromNavigator()
12});