08501234a8
* chore: refactor ms.macro to ms * build: upgrade lingui@4 * chore: avoid styled-components/macro * build: replace babel loader with swc * build: upgrade vanilla-extract * build: simplify e2e config * build: migrate jest to swc * build: dedup * whoops * fix: initial translations * build: coverage * build: ignore static extract warning * build: rm old babel pkg * test: rm e2e codecov * build: fix swc cache * cleanup * fix visible t9ns * cleanup * cleanup setup * crank it * actual merge conflict resolution * fix: restore locale initialization
66 lines
1.1 KiB
TypeScript
66 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',
|
|
'de-DE',
|
|
'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
|