feat: Add i18n support for Chinese language (#142)

* feat: Add i18n support for Chinese language

* fix: locale not working in Docker environment
This commit is contained in:
Jungley
2023-03-25 23:42:48 +08:00
committed by GitHub
parent 932853f1ba
commit 92eab6c634
26 changed files with 320 additions and 40 deletions
+12
View File
@@ -0,0 +1,12 @@
const path = require("path");
module.exports = {
i18n: {
defaultLocale: "en",
locales: ["en", "zh"],
},
localePath:
typeof window === "undefined"
? require("path").resolve("./public/locales")
: "/public/locales",
};