mirror of
https://github.com/scratchfoundation/scratch-www.git
synced 2024-12-13 01:01:29 -05:00
19 lines
1 KiB
JavaScript
19 lines
1 KiB
JavaScript
|
// 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
|
||
|
require('@formatjs/intl-locale/polyfill');
|
||
|
require('@formatjs/intl-pluralrules');
|
||
|
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');
|