Skip to content

Commit

Permalink
feature: Supports reading language from environment variables, which …
Browse files Browse the repository at this point in the history
…makes it easy to modify the language after packaging into a Docker image
  • Loading branch information
黄家祥 committed Jul 17, 2024
1 parent 76a19d2 commit a1022a9
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/plugins/i18n.plugin.ts
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ import { createI18n } from 'vue-i18n';

const i18n = createI18n({
legacy: false,
locale: 'en',
locale: import.meta.env.VITE_LANGUAGE || 'en',
messages,
});

Expand Down

0 comments on commit a1022a9

Please sign in to comment.