mirror of
https://github.com/sharevb/it-tools.git
synced 2026-11-20 21:23:08 +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({
|
||||
legacy: false,
|
||||
locale: 'en',
|
||||
locale: import.meta.env.VITE_LANGUAGE || 'en',
|
||||
messages,
|
||||
});
|
||||
|
||||
|
||||
Reference in new issue
Block a user