igniteui-angular icon indicating copy to clipboard operation
igniteui-angular copied to clipboard

Localization (i18n) not available for inputs/buttons on the grid filtering dialog

Open gdayori opened this issue 8 years ago • 7 comments

Description

Localization (i18n) not available for inputs/buttons on the grid filtering dialog, for example "value" (null text for inputs), "AND", "OR", "RESET" and "CLOSE".

  • igniteui-angular version: 6.1.4
  • browser: anything

Steps to reproduce

Please see the attached image.

Result

No way to localize some text on the filter dialog.

Expected result

Text on the filter dialog can be localized.

Attachments

igx-grid-filtering-dialog

gdayori avatar Aug 29 '18 07:08 gdayori

@gdayori we are waiting for runtime localization feature of Angular to be implemented in order to use it.

This is the issue in the angular repository, and as I see they are currently working on it (5 day comment), the runtime part is done without the the compliler part yet.

zdrawku avatar Aug 29 '18 08:08 zdrawku

@bkulov please start working on this Issue from Monday.

SlavUI avatar Nov 09 '18 07:11 SlavUI

I know the pipe makes the translation but how can I change the locale from "en-US" to another. the locale must be declared in the HTML as attribute?. thank you in advance

juancarlosbaezpozos avatar Nov 13 '18 02:11 juancarlosbaezpozos

@juancarlosbaezpozos Note that this feature is still in development. Angular have some tools to provide localization but only for client applications and not for components. So we are going to implement a temporary solution for the time being. As for the LOCALE_ID - it's Angular DI token providing the current application locale. If you provide Angular CLI localizations to your application you could provide it in the command line ng serve --configuration=fr. Or you could provide it into the providers array of ngModule, Component, etc. like this providers: [ { provide: LOCALE_ID, useValue: 'fr' } ],.

For more info take a look at the following article. Note that we will be using only the DI token and not the whole Angular localization process. Once done we will provide an extensive documentation with samples how the localization could be done. https://angular.io/guide/i18n

bkulov avatar Nov 13 '18 08:11 bkulov

@bkulov do we consider this issue as completed?

zdrawku avatar Dec 05 '18 13:12 zdrawku

@zdrawku Not yet. We're working on a separate repo containing the localized string resources for JA and JP. When it's done I'll close this issue.

bkulov avatar Dec 05 '18 14:12 bkulov

This is the documentation we have for the localization: https://www.infragistics.com/products/ignite-ui-angular/angular/components/localization.html

bkulov avatar Dec 19 '18 08:12 bkulov