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:
黄家祥 committed 2024-07-17 16:59:40 +08:00
1 parent 76a19d218d
commit a1022a947d
1 file changed
+1 -1
+1 -1
View File
@@ -5,7 +5,7 @@ import { createI18n } from 'vue-i18n';
const i18n = createI18n({
legacy: false,
locale: 'en',
locale: import.meta.env.VITE_LANGUAGE || 'en',
messages,
});