Skip to content

`formatByPattern.setDefaultLang` correctly sets `en` default language

Pavlo Mashliakovskiy requested to merge fix/formatByPatternDefaultLang into master

This allows calling formatByPattern.formatNumber and formatByPattern.formatDate on the client side without 3rd lang argument:

  const n = 2305.1
  // on client can be called without 3rd lang parameter - will be formatted for user default lang (for uk "2 305,10")
  formatByPattern.formatNumber(n, 'sum')

Merge request reports

Loading