kin: KIN-108-frontend_dev
This commit is contained in:
parent
8b409fd7db
commit
353416ead1
16 changed files with 799 additions and 212 deletions
12
web/frontend/src/i18n.ts
Normal file
12
web/frontend/src/i18n.ts
Normal file
|
|
@ -0,0 +1,12 @@
|
|||
import { createI18n } from 'vue-i18n'
|
||||
import ru from './locales/ru.json'
|
||||
import en from './locales/en.json'
|
||||
|
||||
const savedLocale = localStorage.getItem('kin-locale') || 'ru'
|
||||
|
||||
export const i18n = createI18n({
|
||||
legacy: false,
|
||||
locale: savedLocale,
|
||||
fallbackLocale: 'en',
|
||||
messages: { ru, en },
|
||||
})
|
||||
Loading…
Add table
Add a link
Reference in a new issue