mirror of
https://github.com/unraid/api.git
synced 2026-01-01 22:20:05 -06:00
20 lines
439 B
TypeScript
20 lines
439 B
TypeScript
import { createI18n } from 'vue-i18n';
|
|
|
|
import en_US from '@/locales/en_US.json';
|
|
import { createHtmlEntityDecoder } from '~/helpers/i18n-utils';
|
|
|
|
export default defineNuxtPlugin(({ vueApp }) => {
|
|
const i18n = createI18n({
|
|
legacy: false,
|
|
globalInjection: true,
|
|
locale: 'en_US',
|
|
fallbackLocale: 'en_US',
|
|
messages: {
|
|
en_US,
|
|
},
|
|
postTranslation: createHtmlEntityDecoder(),
|
|
});
|
|
|
|
vueApp.use(i18n);
|
|
});
|