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

Use new Intl formatter instances where applicable.

Open skrustev opened this issue 4 months ago • 1 comments

Resolves #1155 Resolves #1904

Calendar:

  • Replaced all instances of Intl.DateTimeFormat with ones from igniteui-i18n-core. No expected changes in behavior.

Combo:

  • Validation strings should be available to set for it as well.

Date Input, Date Picker, Date Range Picker:

  • Fixed default display format acting like input format and not taking into account locale zeroing.
  • Replaced all instances of Intl used with the new date formatter from igniteui-i18n-core. No expected changes in behavior except for the first item in this list.
  • Date Picker and Date Range Picker properly extend base Form validation resources. Setting custom resources through Input for now disabled.

skrustev avatar Sep 10 '25 14:09 skrustev

@rkaraivanov @damyanpetev Should I keep the backwards compatibility property or remove it, because I would need to update the old tests as well that reflect the old behavior if you don't want it.

skrustev avatar Oct 23 '25 12:10 skrustev

@skrustev Kind of weird to me why the resources of the tree are on the item instead of the whole tree. Do we expect each item to handle its own locale and resoruces?

mddragnev avatar Nov 05 '25 14:11 mddragnev

@skrustev Kind of weird to me why the resources of the tree are on the item instead of the whole tree. Do we expect each item to handle its own locale and resoruces?

Yes at least that way the items don't need to be manually updated from the Tree itself and its the same way in Angular anyway.

skrustev avatar Nov 06 '25 09:11 skrustev