5357c58ac9
* chore: removing german from supported languages * updating tests * Update src/utils/formatNumbers.test.ts Co-authored-by: Charles Bachmeier <charles@bachmeier.io> --------- Co-authored-by: Charles Bachmeier <charles@bachmeier.io>
65 lines
1.1 KiB
TypeScript
65 lines
1.1 KiB
TypeScript
/* eslint-env node */
|
|
|
|
const linguiConfig = {
|
|
catalogs: [
|
|
{
|
|
path: '<rootDir>/src/locales/{locale}',
|
|
include: ['<rootDir>/src/**/*.ts', '<rootDir>/src/**/*.tsx'],
|
|
exclude: [
|
|
'<rootDir>/src/**/*.d.ts',
|
|
'<rootDir>/src/**/*.test.*',
|
|
'<rootDir>/src/types/v3/**',
|
|
'<rootDir>/src/abis/types/**',
|
|
'<rootDir>/src/graphql/**/__generated__/**',
|
|
],
|
|
},
|
|
],
|
|
compileNamespace: 'cjs',
|
|
fallbackLocales: {
|
|
default: 'en-US',
|
|
},
|
|
format: 'po',
|
|
formatOptions: {
|
|
lineNumbers: false,
|
|
},
|
|
locales: [
|
|
'af-ZA',
|
|
'ar-SA',
|
|
'ca-ES',
|
|
'cs-CZ',
|
|
'da-DK',
|
|
'el-GR',
|
|
'en-US',
|
|
'es-ES',
|
|
'fi-FI',
|
|
'fr-FR',
|
|
'he-IL',
|
|
'hu-HU',
|
|
'id-ID',
|
|
'it-IT',
|
|
'ja-JP',
|
|
'ko-KR',
|
|
'nl-NL',
|
|
'no-NO',
|
|
'pl-PL',
|
|
'pt-BR',
|
|
'pt-PT',
|
|
'ro-RO',
|
|
'ru-RU',
|
|
'sr-SP',
|
|
'sv-SE',
|
|
'sw-TZ',
|
|
'tr-TR',
|
|
'uk-UA',
|
|
'vi-VN',
|
|
'zh-CN',
|
|
'zh-TW',
|
|
],
|
|
orderBy: 'messageId',
|
|
rootDir: '.',
|
|
runtimeConfigModule: ['@lingui/core', 'i18n'],
|
|
sourceLocale: 'en-US',
|
|
}
|
|
|
|
export default linguiConfig
|