chore: make i18n.json the single source of truth (#17876)

This commit is contained in:
Benny Joo
2024-11-27 15:18:38 +01:00
committed by GitHub
parent 08a92b46f9
commit e8f84779f5
+3 -35
View File
@@ -1,42 +1,10 @@
const path = require("path");
const i18n = require("../../i18n.json");
/** @type {import("next-i18next").UserConfig} */
const config = {
i18n: {
defaultLocale: "en",
locales: [
"ar",
"az",
"ca",
"cs",
"da",
"de",
"en",
"es-419",
"es",
"et",
"fr",
"he",
"hu",
"it",
"ja",
"km",
"ko",
"nl",
"no",
"pl",
"pt-BR",
"pt",
"ro",
"ru",
"sr",
"sv",
"tr",
"uk",
"vi",
"zh-CN",
"zh-TW",
],
defaultLocale: i18n.locale.source,
locales: i18n.locale.targets.concat([i18n.locale.source]),
},
fallbackLng: {
default: ["en"],