Please take a look at this example where
Breaks the time picker as such:
https://stackblitz.com/edit/github-qcvsa5?file=src%2Fapp.component.ts,src%2Fdatasource.ts,src%2Fapp.module.ts
If you comment it out then it works fine.
Hi Frank Alberts,
Greetings from Syncfusion Support.
We have reviewed your query about issue in the dateTimePicker when setting culture using setCulture. We have attached a sample on implementing the setCulture in the grid. The code snippet and sample have been attached for your reference. Also we have attached the image of the output and Knowledge Base link on how to set different cultures in Angular Grid.
|
import de from './de.json' // localize the default text L10n.load(de); loadCldr( cagregorian,currencies, numbers, timeZoneNames); setCulture('de'); // Change the Grid culture
|
Image of the Dialog Editing:
Please let us know if you need any further assistance.
Regards,
Dineshnarasimman M
Hi I was following along but I might have made a mistake somewhere? As one of the grids is working but the other is not, they are part of the same module/component which in itself is imported to the app module and the translation code is there:
Mind you I had to change the import EJ2_LOCALE due to the following error:
/src/app/app.component.ts:17:6-19 - Error: Should not import the named export 'de' (imported as 'EJ2_LOCALE') from default-exporting module (only default export is available soon)
maybe that's an issue?
I would like to report a bug as well there is missing translation on AdaptiveUI for grid
had this tagging that one grid..
adaptive UI bug is still a thing tho
Ok is translated to "In order" ? that seems wrong and it messes with UI as it stacks the button do to words being too long.
https://github.com/syncfusion/ej2-locale/pull/189
Created a pull request for that one
Hi Frank Alberts,
We have reviewed your query and understood that you need to Customize the text for OKButton in the filter dialog and also apply the localization in two grid. We suggest you to customize the text in the de.json file based on requirement. Also to set localization for other grid set locale as 'de' in the other grid. We have attached the code snippet of the implementations and snapshot for your reference. Also attached local angular sample for you reference.
|
[de.json]
"de": { "grid": { "SaveButton": "Speichern", "OKButton": "está bem", }}
|
|
[app.component.html]
<ejs-grid #grid height="500" width="500" locale="de" [dataSource]='employeeData' [allowFiltering]="true" [allowSorting]="true" [filterSettings]='filterSettings' allowPaging='true' [pageSettings]='pageSettings' [editSettings]='editSettings' [toolbar]='toolbar'>
|
Images:
Localization in Two Grids:
Filter OKButton:
If this didn't your requirement, can you please provide the following information which will be very useful for us to validate further.
Regards,
Dineshnarasimman M