mirror of
https://github.com/CorentinTh/it-tools.git
synced 2025-05-04 13:29:13 -04:00
feature: Supports reading language from environment variables, which makes it easy to modify the language after packaging into a Docker image
This commit is contained in:
parent
76a19d218d
commit
a1022a947d
1 changed files with 1 additions and 1 deletions
|
@ -5,7 +5,7 @@ import { createI18n } from 'vue-i18n';
|
|||
|
||||
const i18n = createI18n({
|
||||
legacy: false,
|
||||
locale: 'en',
|
||||
locale: import.meta.env.VITE_LANGUAGE || 'en',
|
||||
messages,
|
||||
});
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue