diff --git a/package.json b/package.json index a506141802..ad313e735d 100644 --- a/package.json +++ b/package.json @@ -88,7 +88,7 @@ "@formatjs/intl-locale": "^4.2.13", "@formatjs/intl-numberformat": "^9.1.2", "@formatjs/intl-pluralrules": "^6.1.2", - "@formatjs/intl-relativetimeformat": "^11.4.13", + "@formatjs/intl-relativetimeformat": "^12.1.2", "@reduxjs/toolkit": "^2.11.2", "@sentry/integrations": "^7.114.0", "@sentry/react": "^10.33.0", diff --git a/pkg/webui/lib/components/with-locale.js b/pkg/webui/lib/components/with-locale.js index fe1dfdf0c3..2545001df2 100644 --- a/pkg/webui/lib/components/with-locale.js +++ b/pkg/webui/lib/components/with-locale.js @@ -154,7 +154,9 @@ const WithLocale = ({ children }) => { if (!window.Intl.RelativeTimeFormat) { log('Polyfilling Intl.RelativeTimeFormat') await import( - /* webpackChunkName: "locale-date-time-format" */ '@formatjs/intl-relativetimeformat/polyfill' + /* webpackChunkName: "locale-date-time-format" */ + // eslint-disable-next-line import/extensions -- package exports require explicit .js + '@formatjs/intl-relativetimeformat/polyfill.js' ) } diff --git a/yarn.lock b/yarn.lock index 990c8bd217..4b5c8cdd53 100644 --- a/yarn.lock +++ b/yarn.lock @@ -1914,13 +1914,13 @@ decimal.js "^10.4.3" tslib "^2.8.0" -"@formatjs/intl-relativetimeformat@^11.4.13": - version "11.4.13" - resolved "https://registry.yarnpkg.com/@formatjs/intl-relativetimeformat/-/intl-relativetimeformat-11.4.13.tgz#f77839f2e87b1b0641e8ed72e673b9386f5df79a" - integrity sha512-fNs6cpz9zIUEgTlE3kPSEyRfslxeMG19dT7sLz2C6U7Jxkx8xK/IH1ImZzCeqd6JlqE81O7uNW4oZTb1pz8lUw== +"@formatjs/intl-relativetimeformat@^12.1.2": + version "12.1.2" + resolved "https://registry.yarnpkg.com/@formatjs/intl-relativetimeformat/-/intl-relativetimeformat-12.1.2.tgz#188b088b04fa6309e47374526593529be737b770" + integrity sha512-bl5yZD5YFYo4CvGKRVGwuUDYO0LifLHQR5CG6EV29Vw8/9MVWfrkkFM5Al4Ec+Prq2pzMnu++1Q+oQO1Anjn6A== dependencies: - "@formatjs/ecma402-abstract" "2.3.6" - "@formatjs/intl-localematcher" "0.6.2" + "@formatjs/ecma402-abstract" "3.0.8" + "@formatjs/intl-localematcher" "0.7.5" tslib "^2.8.0" "@formatjs/intl@3.1.8":