mirror of
https://github.com/lukevella/rallly.git
synced 2025-05-20 04:16:21 +02:00
♻️ Refactor i18n files (#670)
This commit is contained in:
parent
cd5bf11179
commit
82499ff48d
166 changed files with 4372 additions and 2052 deletions
|
@ -1,12 +1,12 @@
|
|||
const ICU = require("i18next-icu/i18nextICU.js");
|
||||
const path = require("path");
|
||||
const languages = require("@rallly/languages/languages.json");
|
||||
const i18n = require("./i18n.config.js");
|
||||
|
||||
module.exports = {
|
||||
i18n: {
|
||||
defaultLocale: "en",
|
||||
locales: Object.keys(languages),
|
||||
},
|
||||
i18n,
|
||||
defaultNS: "app",
|
||||
reloadOnPrerender: process.env.NODE_ENV === "development",
|
||||
localePath: path.resolve("./public/locales"),
|
||||
returnNull: false,
|
||||
use: [new ICU()],
|
||||
serializeConfig: false,
|
||||
};
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue