cal/packages/config/next-i18next.config.js
Vichea វិជ្ជា 6c00c9b2b8
feat: km-localization-cambodia 🇰🇭 (#12027)
Co-authored-by: Peer Richelsen <peeroke@gmail.com>
Co-authored-by: Peer Richelsen <peer@cal.com>
2023-10-23 12:02:45 +00:00

45 lines
708 B
JavaScript

const path = require("path");
/** @type {import("next-i18next").UserConfig} */
const config = {
i18n: {
defaultLocale: "en",
locales: [
"ar",
"cs",
"da",
"de",
"en",
// "es-419", // Disabled until Crowdin reaches at least 80% completion
"es",
"fr",
"he",
"it",
"ja",
"ko",
"nl",
"no",
"pl",
"pt-BR",
"pt",
"ro",
"ru",
"sr",
"sv",
"tr",
"uk",
"vi",
"zh-CN",
"zh-TW",
"km",
],
},
fallbackLng: {
default: ["en"],
zh: ["zh-CN"],
},
reloadOnPrerender: process.env.NODE_ENV !== "production",
};
module.exports = config;