MaximilianoSandillu opened a new pull request, #4080: URL: https://github.com/apache/incubator-kie-tools/pull/4080
Closes https://github.com/apache/incubator-kie-issues/issues/2424 ### What Adds Spanish (`es`) dictionaries so the DMN Editor can be opened with `locale: "es"`, following the approach agreed in the issue (common dictionary included in the same PR): - `@kie-tools/i18n-common-dictionary`: new `es.ts` (93 keys, same shape as `en.ts`/`de.ts`), exported from `locales/index.ts`. - `@kie-tools/dmn-editor`: new `locales/es.ts` (333 own keys, 27 function-valued entries), exported from `locales/index.ts` and registered as `["es", es]` in `setup.ts`. - `@kie-tools/dmn-editor-envelope`: new `locales/es.ts` (27 own keys), exported and registered in `setup.ts`. ### Notes - Keys and function signatures are identical to the `en` dictionaries; `${"{...}"}` placeholders (`feelHandBook`, `typeConstraint`, `lineBreak`, `fromIdentifier`, `toIdentifier`, `name`) are preserved. Checked with a script comparing key paths, placeholders and function arity against each `en.ts`. - DMN-specific terms are intentionally left in English (DRD, DRG, BKM, FEEL, Decision Service, node type names such as Decision / Input Data / Knowledge Source). - Follows the same pattern as the existing `de` locales (`TranslatedDictionary<...>` + `es as es_common`). - Files are formatted with the repo's Prettier version (3.8.5) and options. - Out of scope (possible follow-ups): `boxed-expression-component`, `unitables-dmn`, `feel-input-component`. - No behavior change for existing locales: `en` remains the default. ### How to test 1. `pnpm bootstrap -F @kie-tools/dmn-editor...` and `pnpm -F @kie-tools/dmn-editor build:prod`. 2. Open the editor (storybook or `@kie-tools/dmn-editor-standalone`) with `locale: "es"` and check the Data types, Included models, Properties panel and node palette screens. 3. Confirm that with `locale: "en"` nothing changes. ### Checklist - [x] Linked to an issue - [x] Apache License 2.0 header in the new files - [x] One concern per PR - [x] Formatted with the repo's Prettier version - [ ] `build:prod` / tests: I could not run the full build locally (no devbox/Linux environment available), so I'm relying on the CI here. Happy to fix anything it reports. -- This is an automated message from the Apache Git Service. To respond to the message, please log on to GitHub and use the URL above to go to the specific comment. To unsubscribe, e-mail: [email protected] For queries about this service, please contact Infrastructure at: [email protected] --------------------------------------------------------------------- To unsubscribe, e-mail: [email protected] For additional commands, e-mail: [email protected]
