mirror of
https://github.com/awatertrevi/infisical.git
synced 2026-10-11 11:29:21 +00:00
feat(frontend): update i18n default loader
This commit is contained in:
+6
-1
@@ -1,9 +1,14 @@
|
||||
const workaround = require("next-translate/lib/cjs/plugin/utils.js");
|
||||
|
||||
workaround.defaultLoader =
|
||||
"(l, n) => import(`@next-translate-root/locales/${l}.json`).then(m => m?.default[n] ?? {} )";
|
||||
|
||||
module.exports = {
|
||||
locales: ["en-US", "ko-KR"],
|
||||
defaultLocale: "en-US",
|
||||
pages: {
|
||||
"*": ["common", "nav"],
|
||||
"reg:^/(login|signup)": ["auth"],
|
||||
"rgx:^/(login|signup)": ["auth"],
|
||||
"/dashboard/[id]": ["dashboard"],
|
||||
},
|
||||
};
|
||||
|
||||
Reference in New Issue
Block a user