mirror of
https://github.com/sharevb/it-tools.git
synced 2026-11-25 23:24:09 +03: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:
1 parent
76a19d218d
commit
a1022a947d
1 file changed
+1
-1
@@ -5,7 +5,7 @@ import { createI18n } from 'vue-i18n';
|
|||||||
|
|
||||||
const i18n = createI18n({
|
const i18n = createI18n({
|
||||||
legacy: false,
|
legacy: false,
|
||||||
locale: 'en',
|
locale: import.meta.env.VITE_LANGUAGE || 'en',
|
||||||
messages,
|
messages,
|
||||||
});
|
});
|
||||||
|
|
||||||
|
|||||||
Reference in new issue
Block a user