Premium support for our pure JavaScript UI components


Post by pincherhgz »

we are using so called plugins in different context situations, i.e.

  • Gantt
  • Grid
    setting the LocaleManager.locale i.e. for Gantt and using in the plugin the elements from Grid leads to missing translations/localizations.
    Is there a way to set several LocalManager.locale ? (we tried to set both of them but this in the main context does not work)

Post by alex.l »

Hi,

Gantt is based on Grid and contains all required locales. You can add missing locales into one file or merge loaded locales before apply using https://bryntum.com/products/gantt/docs/api/Core/localization/LocaleHelper#function-mergeLocales-static

All the best,
Alex Lazarev

How to ask for help? Please read our Support Policy

We do not write the code in bounds of forum support. If you need help with development, contact us via bryntum.com/services


Post by Animal »

pincherhgz wrote: Fri Jul 04, 2025 8:55 am

we are using so called plugins in different context situations, i.e.

  • Gantt
  • Grid
    setting the LocaleManager.locale i.e. for Gantt and using in the plugin the elements from Grid leads to missing translations/localizations.
    Is there a way to set several LocalManager.locale ? (we tried to set both of them but this in the main context does not work)

If you use this.L() from a Feature, it will look at localization keys for that feature class name. Not for the client.

Maybe you are looking for this.client.L()


Post by pincherhgz »

thanks that helps


Post Reply