refactor: formatting
This commit is contained in:
@@ -8,9 +8,9 @@ import LocaleSaver from '@/components/locale/LocaleSaver.vue';
|
||||
@Options({
|
||||
name: 'App',
|
||||
components: {
|
||||
NavBar,
|
||||
DocumentLocaleSetter,
|
||||
LocaleSaver,
|
||||
NavBar,
|
||||
RouterView,
|
||||
},
|
||||
})
|
||||
|
||||
@@ -1,17 +1,17 @@
|
||||
import type {I18n} from 'vue-i18n';
|
||||
import {createI18n as vueCreateI18n} from 'vue-i18n';
|
||||
import {messagesEn, datetimeFormatsEn} from '@/locale/en';
|
||||
import {messagesDe, datetimeFormatsDe} from '@/locale/de';
|
||||
import {datetimeFormatsEn, messagesEn} from '@/locale/en';
|
||||
import {datetimeFormatsDe, messagesDe} from '@/locale/de';
|
||||
|
||||
const messages = {
|
||||
en: messagesEn,
|
||||
de: messagesDe,
|
||||
}
|
||||
};
|
||||
|
||||
const datetimeFormats = {
|
||||
en: datetimeFormatsEn,
|
||||
de: datetimeFormatsDe,
|
||||
}
|
||||
};
|
||||
|
||||
export function createI18n(): I18n {
|
||||
return vueCreateI18n({
|
||||
|
||||
Reference in New Issue
Block a user