Skip to content

Commit 1e3ab9f

Browse files
authored
Merge pull request #230 from emilkarl/master
Fix: Load formatjs locale data from correct path
2 parents ddcc788 + e674757 commit 1e3ab9f

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/wrap-page.js

+2-2
Original file line numberDiff line numberDiff line change
@@ -11,12 +11,12 @@ const polyfillIntl = (language) => {
1111
try {
1212
if (!Intl.PluralRules) {
1313
require("@formatjs/intl-pluralrules/polyfill")
14-
require(`@formatjs/intl-pluralrules/dist/locale-data/${locale}`)
14+
require(`@formatjs/intl-pluralrules/locale-data/${locale}`)
1515
}
1616

1717
if (!Intl.RelativeTimeFormat) {
1818
require("@formatjs/intl-relativetimeformat/polyfill")
19-
require(`@formatjs/intl-relativetimeformat/dist/locale-data/${locale}`)
19+
require(`@formatjs/intl-relativetimeformat/locale-data/${locale}`)
2020
}
2121
} catch (e) {
2222
throw new Error(`Cannot find react-intl/locale-data/${language}`)

0 commit comments

Comments
 (0)