Refers #8128 Changes Introduced: - Added i18n configuration. - Added a feature flag for localization. - Enabled language switching based on the flag. --------- Co-authored-by: Félix Malfait <felix@twenty.com>
44 lines
881 B
Plaintext
44 lines
881 B
Plaintext
{
|
|
"jsc": {
|
|
"target": "es2017",
|
|
"parser": {
|
|
"syntax": "typescript",
|
|
"tsx": true,
|
|
"decorators": false,
|
|
"dynamicImport": false
|
|
},
|
|
"transform": {
|
|
"react": {
|
|
"pragma": "React.createElement",
|
|
"pragmaFrag": "React.Fragment",
|
|
"throwIfNamespace": true,
|
|
"development": false,
|
|
"useBuiltins": false,
|
|
"runtime": "automatic"
|
|
},
|
|
"hidden": {
|
|
"jest": true
|
|
}
|
|
},
|
|
"experimental": {
|
|
"plugins": [
|
|
[
|
|
"@lingui/swc-plugin",
|
|
{
|
|
"runtimeModules": {
|
|
"i18n": ["@lingui/core", "i18n"],
|
|
"trans": ["@lingui/react", "Trans"]
|
|
}
|
|
}
|
|
]
|
|
]
|
|
}
|
|
},
|
|
"module": {
|
|
"type": "commonjs",
|
|
"strict": false,
|
|
"strictMode": true,
|
|
"lazy": false,
|
|
"noInterop": false
|
|
}
|
|
} |