mirror of
https://github.com/woodpecker-ci/woodpecker.git
synced 2024-06-01 07:08:30 +00:00
2153425230
Add Latvian language translation (#992)
15 lines
374 B
TypeScript
15 lines
374 B
TypeScript
// eslint-disable-next-line @typescript-eslint/ban-ts-comment
|
|
// @ts-ignore
|
|
import messages from '@intlify/vite-plugin-vue-i18n/messages';
|
|
import { createI18n } from 'vue-i18n';
|
|
|
|
import { getUserLanguage } from '~/utils/locale';
|
|
|
|
export const i18n = createI18n({
|
|
locale: getUserLanguage(),
|
|
legacy: false,
|
|
globalInjection: true,
|
|
fallbackLocale: 'en',
|
|
messages,
|
|
});
|