Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

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‎

Lines changed: 2 additions & 2 deletions
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)

AltStyle によって変換されたページ (->オリジナル) /