Skip to content

Commit

Permalink
Merge branch 'develop' into release/1.2.1
Browse files Browse the repository at this point in the history
[build image]
  • Loading branch information
SailReal committed Aug 15, 2023
2 parents 96dff6a + 66b422e commit fea354a
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 3 deletions.
2 changes: 2 additions & 0 deletions frontend/src/i18n/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -24,3 +24,5 @@ export const datetimeFormats: I18nOptions['datetimeFormats'] = {
}
}
};

export const defaultLocale = Locale.EN;
6 changes: 3 additions & 3 deletions frontend/src/main.ts
Original file line number Diff line number Diff line change
Expand Up @@ -2,14 +2,14 @@ import { createApp } from 'vue';
import { createI18n } from 'vue-i18n';
import App from './App.vue';
import './css/fonts.css';
import { Locale, datetimeFormats, messages } from './i18n/index';
import { datetimeFormats, defaultLocale, messages } from './i18n/index';
import './index.css';
import router from './router';
// migrate to // import messages from '@intlify/vite-plugin-vue-i18n/messages'; as soon as it works

const i18n = createI18n({
locale: navigator.language,
fallbackLocale: Locale.EN,
locale: defaultLocale,
fallbackLocale: defaultLocale,
messages,
datetimeFormats,
globalInjection: true,
Expand Down

0 comments on commit fea354a

Please sign in to comment.