Skip to content

Commit f129b6e

Browse files
Merge f2ef83e into 0a0e650
2 parents 0a0e650 + f2ef83e commit f129b6e

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/core/i18n/utils.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
/* global Intl */
1+
/* global Intl, window */
22
/* @flow */
33
import config from 'config';
44
import Jed from 'jed';
@@ -246,7 +246,7 @@ export function makeI18n(
246246
i18nData: I18nConfig,
247247
lang: string,
248248
_Jed: Jed = Jed,
249-
{ _Intl = Intl }: makeI18nOptions = {}
249+
{ _Intl = typeof window !== 'undefined' ? window.Intl : Intl }: makeI18nOptions = {}
250250
) {
251251
const i18n = new _Jed(i18nData);
252252
i18n.lang = lang;

0 commit comments

Comments
 (0)