You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: packages/use-intl/src/core/createBaseTranslator.tsx
+5-1Lines changed: 5 additions & 1 deletion
Original file line number
Diff line number
Diff line change
@@ -262,7 +262,11 @@ function createBaseTranslatorImpl<
262
262
{
263
263
formatters: {
264
264
getNumberFormat(locales,options){
265
-
returnnewIntl.NumberFormat(locales,options);
265
+
returnnewIntl.NumberFormat(
266
+
locales,
267
+
// `useGrouping` was changed from a boolean later to a string enum or boolean, the type definition is outdated (https://tc39.es/proposal-intl-numberformat-v3/#grouping-enum-ecma-402-367)
268
+
optionsasIntl.NumberFormatOptions
269
+
);
266
270
},
267
271
getDateTimeFormat(locales,options){
268
272
// Workaround for https://github.com/formatjs/formatjs/issues/4279
0 commit comments