2021-11-30 23:20:59 +03:00
|
|
|
const linguiConfig = {
|
2021-05-26 23:34:52 +03:00
|
|
|
catalogs: [
|
|
|
|
{
|
2021-05-27 18:52:17 +03:00
|
|
|
path: '<rootDir>/src/locales/{locale}',
|
2021-05-27 18:37:15 +03:00
|
|
|
include: ['<rootDir>/src'],
|
2021-05-26 23:34:52 +03:00
|
|
|
},
|
|
|
|
],
|
|
|
|
compileNamespace: 'cjs',
|
|
|
|
fallbackLocales: {
|
2021-05-29 07:15:07 +03:00
|
|
|
default: 'en-US',
|
2021-05-26 23:34:52 +03:00
|
|
|
},
|
|
|
|
format: 'po',
|
2021-05-27 18:37:15 +03:00
|
|
|
formatOptions: {
|
|
|
|
lineNumbers: false,
|
|
|
|
},
|
2021-05-29 07:25:32 +03:00
|
|
|
locales: [
|
|
|
|
'af-ZA',
|
|
|
|
'ar-SA',
|
|
|
|
'ca-ES',
|
|
|
|
'cs-CZ',
|
|
|
|
'da-DK',
|
|
|
|
'de-DE',
|
|
|
|
'el-GR',
|
|
|
|
'en-US',
|
|
|
|
'es-ES',
|
|
|
|
'fi-FI',
|
|
|
|
'fr-FR',
|
|
|
|
'he-IL',
|
|
|
|
'hu-HU',
|
2021-05-31 17:55:01 +03:00
|
|
|
'id-ID',
|
2021-05-29 07:25:32 +03:00
|
|
|
'it-IT',
|
|
|
|
'ja-JP',
|
|
|
|
'ko-KR',
|
|
|
|
'nl-NL',
|
|
|
|
'no-NO',
|
|
|
|
'pl-PL',
|
|
|
|
'pt-BR',
|
|
|
|
'pt-PT',
|
|
|
|
'ro-RO',
|
|
|
|
'ru-RU',
|
|
|
|
'sr-SP',
|
|
|
|
'sv-SE',
|
2021-09-21 22:41:58 +03:00
|
|
|
'sw-TZ',
|
2021-05-29 07:25:32 +03:00
|
|
|
'tr-TR',
|
|
|
|
'uk-UA',
|
|
|
|
'vi-VN',
|
|
|
|
'zh-CN',
|
|
|
|
'zh-TW',
|
|
|
|
],
|
2021-05-26 23:34:52 +03:00
|
|
|
orderBy: 'messageId',
|
|
|
|
rootDir: '.',
|
|
|
|
runtimeConfigModule: ['@lingui/core', 'i18n'],
|
2021-05-29 07:15:07 +03:00
|
|
|
sourceLocale: 'en-US',
|
2021-05-26 23:34:52 +03:00
|
|
|
}
|
2021-11-30 23:20:59 +03:00
|
|
|
|
|
|
|
export default linguiConfig
|