feat: add a Spanish option in the lang selector (#98)

This commit is contained in:
Fine0830
2022-05-24 11:53:41 +08:00
committed by GitHub
parent 45f896bf36
commit b34c0b0c72
5 changed files with 18 additions and 6 deletions

View File

@@ -17,10 +17,12 @@
import { createI18n } from "vue-i18n";
import zh from "./lang/zh";
import en from "./lang/en";
import es from "./lang/es";
const messages = {
en,
zh,
es,
};
const savedLanguage = window.localStorage.getItem("language");