How to resolve localization display bugs in custom widget

1
0
-1

I have a custom widget which upon adding to the form, the display names in the form change to this format: {{ properties.text | uiTranslate }}.

How can I resolve this display issue? It only occurs when I add my custom widget. I have gone through the following documentation page: https://documentation.bonitasoft.com/bonita/7.6/custom-widgets but have not been able to resolve the issue. I am using a community edition of bonita.

1 answer

1
0
-1
This one is the BEST answer!

Hi

Nowadays localization is available in the Bonita Performance, Efficiency, and Teamwork editions only. So it's doesn't work in the community edition of Bonita.

If you want a "workaround" for localization in your custom widget, you need to make a json/js file which contains a key/value, example:

{ "fr": { "title":"Titre"},

"es":{ "title": "título"}

}

After declaring each key, in each language you want to translate, you need to do a js function to get value from your specific key in this collection, call him when you want to translate a String value.

I know this custom development is hard. After 7.8 version, you could do that kind of thing: how-have-single-localization-file-your-process-forms-and-application-pages

Hope it's will help you.

Benjamin

Comments

Submitted by atienoruby35_1868664 on Thu, 09/03/2020 - 20:01

Thank you for the response. Yes, I find the information helpful. Thanks!

Submitted by delphine.coille on Tue, 11/17/2020 - 11:26

Hi !

If you want to try localization, you can now download and test Bonita 7.12 Beta. This feature is now available in Community Edition.

This blog post gives you more details and the link to download it: https://community.bonitasoft.com/blog/bonita-712-beta-out

Submitted by atienoruby35_1868664 on Tue, 12/01/2020 - 17:01

Thanks delphine for the update.

Notifications