Add POC for Field translation (#9898)

Similar to ObjectMetadata translation

Also fixed an issue linked to the migration from `t` to `message`
helper: we're forced to rebuild the ID ourselves
This commit is contained in:
Félix Malfait
2025-01-28 21:25:09 +01:00
committed by GitHub
parent 8754b7107d
commit b1219ff107
13 changed files with 120 additions and 55 deletions

View File

@ -1,5 +1,4 @@
import { defineConfig } from '@lingui/cli';
import { formatter } from '@lingui/format-po';
export default defineConfig({
sourceLocale: 'en',
@ -7,9 +6,6 @@ export default defineConfig({
extractorParserOptions: {
tsExperimentalDecorators: true,
},
format: formatter({
explicitIdAsDefault: true,
}),
catalogs: [
{
path: '<rootDir>/src/engine/core-modules/i18n/locales/{locale}',