Translation
This commit is contained in:
13
software/src/plugins/i18n.ts
Normal file
13
software/src/plugins/i18n.ts
Normal file
@@ -0,0 +1,13 @@
|
||||
import { createI18n } from "vue-i18n";
|
||||
import german from './../locales/german.json'
|
||||
import english from './../locales/english.json'
|
||||
|
||||
type MessageSchema = typeof german
|
||||
|
||||
export const i18n = createI18n<[MessageSchema], 'de' | 'en'>({
|
||||
locale: 'de',
|
||||
messages: {
|
||||
'de': german,
|
||||
'en': english
|
||||
}
|
||||
})
|
||||
Reference in New Issue
Block a user