houdini/app/javascript/common/intl-polyfills/custom/getCanonicalLocales.ts

7 lines
274 B
TypeScript
Raw Normal View History

2020-10-08 20:39:51 +00:00
// License: LGPL-3.0-or-later
import {shouldPolyfill} from '@formatjs/intl-getcanonicallocales/should-polyfill';
export default async function getCanonicalLocales(): Promise<void> {
if (shouldPolyfill()) {
await import('@formatjs/intl-getcanonicallocales/polyfill');
}
}