Spaces:
Build error
Build error
Update src/locales/index.ts
Browse files- src/locales/index.ts +4 -2
src/locales/index.ts
CHANGED
@@ -1,13 +1,14 @@
|
|
1 |
import type { App } from 'vue'
|
2 |
import { createI18n } from 'vue-i18n'
|
3 |
import viVN from './vi-VN'
|
4 |
-
import enUS from './en-US'
|
|
|
5 |
import { useAppStoreWithOut } from '@/store/modules/app'
|
6 |
import type { Language } from '@/store/modules/app/helper'
|
7 |
|
8 |
const appStore = useAppStoreWithOut()
|
9 |
|
10 |
-
const defaultLocale = appStore.language || '
|
11 |
|
12 |
const i18n = createI18n({
|
13 |
locale: defaultLocale,
|
@@ -16,6 +17,7 @@ const i18n = createI18n({
|
|
16 |
messages: {
|
17 |
'vi-VN': viVN,
|
18 |
'en-US': enUS,
|
|
|
19 |
},
|
20 |
})
|
21 |
|
|
|
1 |
import type { App } from 'vue'
|
2 |
import { createI18n } from 'vue-i18n'
|
3 |
import viVN from './vi-VN'
|
4 |
+
import enUS from './en-US'
|
5 |
+
import ruRU from './ru-RU'
|
6 |
import { useAppStoreWithOut } from '@/store/modules/app'
|
7 |
import type { Language } from '@/store/modules/app/helper'
|
8 |
|
9 |
const appStore = useAppStoreWithOut()
|
10 |
|
11 |
+
const defaultLocale = appStore.language || 'ru-RU'
|
12 |
|
13 |
const i18n = createI18n({
|
14 |
locale: defaultLocale,
|
|
|
17 |
messages: {
|
18 |
'vi-VN': viVN,
|
19 |
'en-US': enUS,
|
20 |
+
'ru-RU': ruRU,
|
21 |
},
|
22 |
})
|
23 |
|