Set up localization with feature flag control (#9649)
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>
This commit is contained in:
committed by
GitHub
parent
b81ffcc77c
commit
f44b31573a
@ -12,7 +12,16 @@ const jestConfig: JestConfigWithTsJest = {
|
||||
testEnvironment: 'jsdom',
|
||||
transformIgnorePatterns: ['../../node_modules/'],
|
||||
transform: {
|
||||
'^.+\\.(ts|js|tsx|jsx)$': '@swc/jest',
|
||||
'^.+\\.(ts|js|tsx|jsx)$': [
|
||||
'@swc/jest',
|
||||
{
|
||||
jsc: {
|
||||
experimental: {
|
||||
plugins: [], // Disable Lingui plugin during tests
|
||||
},
|
||||
},
|
||||
},
|
||||
],
|
||||
},
|
||||
moduleNameMapper: {
|
||||
'\\.(jpg|jpeg|png|gif|webp|svg|svg\\?react)$':
|
||||
|
||||
Reference in New Issue
Block a user