formatjs / formatjs-old

The monorepo home to all of the FormatJS related libraries.
https://formatjs.io/
156 stars 53 forks source link

fix(intl-messageformat): IntlMessageFormat.defaultLocale is updated to #653

Closed mortargrind closed 4 years ago

mortargrind commented 4 years ago

be a getter in order to enable lazily calculating the actual value when it's needed first time. Also, a new private static member called 'memoizedDefaultLocale' is added to IntlMessageFormat to prevent re-calculating the same defaultLocale each time it's referenced.

longlho commented 4 years ago

Thanks a lot for your contributions!