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:
@@ -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",
|
||||
};
|
||||
Reference in New Issue
Block a user