Files
Homarr/next-i18next.config.js

46 lines
738 B
JavaScript
Raw Normal View History

2023-01-18 17:54:18 +09:00
const path = require('path');
2022-08-22 09:50:54 +02:00
module.exports = {
2023-03-22 13:29:00 +01:00
// https://www.i18next.com/overview/configuration-options#logging
2022-08-22 09:50:54 +02:00
i18n: {
defaultLocale: 'en',
locales: [
'en',
'cr',
2022-10-24 20:16:11 +09:00
'da',
'he',
'de',
'es',
'fr',
'it',
'ja',
'ko',
'nl',
'pl',
'pt',
'ru',
'sl',
'sv',
'vi',
'uk',
2022-09-16 09:36:13 +09:00
'zh',
2023-11-01 03:28:41 +01:00
'tw',
'cn',
2023-01-23 01:47:13 +09:00
'el',
2023-02-08 22:11:38 +09:00
'sk',
2023-02-08 22:15:44 +09:00
'no',
'tr',
2023-07-23 10:12:22 +09:00
'lv',
'hr',
'hu'
],
localeDetection: false,
2022-08-22 09:50:54 +02:00
},
returnEmptyString: false,
appendNamespaceToCIMode: true,
reloadOnPrerender: process.env.NODE_ENV === 'development',
fallbackLng: 'en',
localePath: path.resolve('./public/locales'),
2022-08-22 09:50:54 +02:00
};