mirror of
https://github.com/BewlyBewly/BewlyBewly.git
synced 2025-04-14 13:15:29 +00:00
add: i18n support
This commit is contained in:
9
src/utils/i18n.ts
Normal file
9
src/utils/i18n.ts
Normal file
@@ -0,0 +1,9 @@
|
||||
import { createI18n } from 'vue-i18n'
|
||||
import messages from '@intlify/vite-plugin-vue-i18n/messages'
|
||||
|
||||
export const i18n = createI18n({
|
||||
legacy: false,
|
||||
locale: 'jyut',
|
||||
globalInjection: true,
|
||||
messages,
|
||||
})
|
||||
@@ -1,10 +1,12 @@
|
||||
import { grantAccessKey, revokeAccessKey } from './auth-provider'
|
||||
import { SVG_ICONS } from './svgIcons'
|
||||
import { i18n } from './i18n'
|
||||
|
||||
export {
|
||||
grantAccessKey,
|
||||
revokeAccessKey,
|
||||
SVG_ICONS,
|
||||
i18n,
|
||||
}
|
||||
export * from './dataFormatter'
|
||||
|
||||
|
||||
Reference in New Issue
Block a user