Your Privacy Matters: We use our own and third-party cookies to improve your experience on our website. By continuing to use the website we understand that you accept their use. Cookie Policy
80
General Localization
posted

Hello Guys,

i am having a problem regarding multi language support for my angular application with Ignite Ui for Angular components.

I was wondering if general localization is supported for every component. For example the Datepicker component has a localization attribute for date formatting. Is there a way to change localization generally?

In my specific scenario i need to be able to toggle between german and english at runtime. English support is no problem for obvious reasons.

Is there a way and/or best practice to change the labels for all components to german?

I couldn't find anything in the documentation regarding this topic. I'm sure that i missed something.

Any help is greatly appreciated :-)

Parents
No Data
Reply
  • 320
    Verified Answer
    Offline posted

    Hello,
    Thank you for contacting us.
    Currently, as you may have seen that Angular does not provide an official way to support localization for every component run time, and there is an issue in our GitHub repository, that address this problem, also you can see in the comments, that this problem is already addressed and in the official Angular Repository, so you can track the progress there.

    But as a temporary solution what I can suggest you is to read the documentation of the Ignite UI for Angular components that you want to use and see if they provide way to set a value or define a custom template and to change it according the chosen language. A good idea is to store the labels and their translations in some json file, so you can extract them easily.
    If you need any further assistance, please contact us.

Children