Monday, 14 February 2022

PrimeNG - column filtering and languages with tones/accents

I want to perform filtering into columns of a table that contains data in Greek language.

Unfortunately the <p-columnFilter> component internally does not seem to recognize the characters with tones to be the same with the same character without a tone. For example a vowel with a tone (ή) is not matched with the same vowel witout tone (η).

Example with pictures below:

1) Filtering using the tone ή

1) Filtering using the tone ή

2) Filtering without using the tone η (which does not match with ή)

Filtering without using the tone η (which does not match with ή)

In most filters out there on the web, characters with tone are matched with the same characters without tone and vice versa, how can I achieve the same here? Maybe if I could use the localeCompare function as filter function as an attribute in the columnFilter, but the documentation is not detailed in the table filtering section

I posted the same question in their github repository but I have not received any answer



from PrimeNG - column filtering and languages with tones/accents

No comments:

Post a Comment