♻️ Refactor i18n files (#670)

This commit is contained in:
Luke Vella 2023-04-25 17:28:57 +01:00 committed by GitHub
parent cd5bf11179
commit 82499ff48d
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
166 changed files with 4372 additions and 2052 deletions

View file

@ -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,
};