MaximilianoSandillu commented on PR #4080:
URL: 
https://github.com/apache/incubator-kie-tools/pull/4080#issuecomment-6853165375

   Thanks for trying it out, @Kusuma04-dev! I just verified it locally with 
this branch. The key points are that the locale has to be passed to 
`DmnEditor.open(...)`, and that the package must be rebuilt, since the envelope 
with the dictionaries is bundled into `dist`:
   
   1. Bootstrap and build the standalone package:
      `pnpm bootstrap -F "@kie-tools/dmn-editor-standalone..."`
      `pnpm -F "@kie-tools/dmn-editor-standalone..." build:dev`
   2. In `packages/dmn-editor-standalone/stories/DevWebApp.stories.tsx`, add 
`locale: "es"` to the `DmnEditor.open({...})` call (the story doesn't pass any 
locale today, so it always renders in English).
   3. Start Storybook: `pnpm -F @kie-tools/dmn-editor-standalone 
storybook-start`, and open the "Dev webapp" story.
   
   With `locale: "es"` (or `"es-AR"`) the editor shows "Tipos de datos", 
"Modelos incluidos", "El diagrama de este DMN está vacío", etc. Without the 
`locale` it stays in English, as before.


-- 
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]

Reply via email to