2021-02-02 08:42:55 -05:00
|
|
|
// this file should only be `required` in the format-time
|
|
|
|
// when Intl.RelativeTimeFormat is not available (Safari < 14), but
|
|
|
|
// we're not currently able to do the code splitting in www, and it
|
|
|
|
// is always included. To reduce the amount of data that's loaded limit
|
|
|
|
// the number of languages loaded to just the top few that are still using
|
|
|
|
// safari <14. These seven account for most uses.
|
|
|
|
// relativetimeformat depends on locale which also needs to be polyfilled in
|
|
|
|
// safari <14
|
2021-02-16 07:35:30 -05:00
|
|
|
// The plural rules is required for safari 12.
|
2021-02-02 08:42:55 -05:00
|
|
|
require('@formatjs/intl-locale/polyfill');
|
2021-02-12 17:05:36 -05:00
|
|
|
require('@formatjs/intl-pluralrules/polyfill');
|
2021-02-16 08:17:21 -05:00
|
|
|
require('@formatjs/intl-pluralrules/locale-data/en');
|
2021-02-02 08:42:55 -05:00
|
|
|
require('@formatjs/intl-relativetimeformat/polyfill');
|
|
|
|
require('@formatjs/intl-relativetimeformat/locale-data/en');
|
|
|
|
require('@formatjs/intl-relativetimeformat/locale-data/ar');
|
|
|
|
require('@formatjs/intl-relativetimeformat/locale-data/es');
|
|
|
|
require('@formatjs/intl-relativetimeformat/locale-data/fr');
|
|
|
|
require('@formatjs/intl-relativetimeformat/locale-data/ja');
|
|
|
|
require('@formatjs/intl-relativetimeformat/locale-data/tr');
|
|
|
|
require('@formatjs/intl-relativetimeformat/locale-data/zh');
|