Skip to content

Commit 7710793

Browse files
fix(deps): update formatjs monorepo (#2242)
* fix(deps): update formatjs monorepo * chore: add changeset renovate-412296f Signed-off-by: Alexandre Philibeaux <[email protected]> --------- Signed-off-by: Alexandre Philibeaux <[email protected]> Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com> Co-authored-by: Scaleway Bot <[email protected]>
1 parent d061927 commit 7710793

File tree

5 files changed

+59
-70
lines changed

5 files changed

+59
-70
lines changed

.changeset/renovate-412296f.md

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,9 @@
1+
---
2+
'@scaleway/use-i18n': patch
3+
'@scaleway/validate-icu-locales': patch
4+
---
5+
6+
Updated dependency `@formatjs/ecma402-abstract` to `2.2.0`.
7+
Updated dependency `@formatjs/fast-memoize` to `2.2.1`.
8+
Updated dependency `intl-messageformat` to `10.7.0`.
9+
Updated dependency `@formatjs/icu-messageformat-parser` to `2.7.10`.

packages/use-i18n/package.json

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -47,12 +47,12 @@
4747
"test:unit:coverage": "pnpm test:unit --coverage"
4848
},
4949
"dependencies": {
50-
"@formatjs/ecma402-abstract": "2.0.0",
51-
"@formatjs/fast-memoize": "2.2.0",
50+
"@formatjs/ecma402-abstract": "2.2.0",
51+
"@formatjs/fast-memoize": "2.2.1",
5252
"date-fns": "4.1.0",
5353
"filesize": "10.1.6",
5454
"international-types": "0.8.1",
55-
"intl-messageformat": "10.5.14"
55+
"intl-messageformat": "10.7.0"
5656
},
5757
"devDependencies": {
5858
"react": "18.3.1",

packages/use-i18n/src/usei18n.tsx

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -309,15 +309,15 @@ const I18nContextProvider = <LocalSupportedType extends string>({
309309
})
310310

311311
const trad: Record<string, string> = {
312-
...result.defaultLocale.default,
312+
...result.defaultLocale?.default,
313313
...result[currentLocale].default,
314314
}
315315

316316
setTranslations(prevState => ({
317317
...prevState,
318318
[defaultLocale]: {
319319
...prevState[defaultLocale],
320-
...result.defaultLocale.default,
320+
...result.defaultLocale?.default,
321321
},
322322
[currentLocale]: {
323323
...prevState[currentLocale],

packages/validate-icu-locales/package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -42,7 +42,7 @@
4242
"cli"
4343
],
4444
"dependencies": {
45-
"@formatjs/icu-messageformat-parser": "2.7.9",
45+
"@formatjs/icu-messageformat-parser": "2.7.10",
4646
"globby": "14.0.2",
4747
"module-from-string": "3.3.1"
4848
}

pnpm-lock.yaml

Lines changed: 44 additions & 64 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

0 commit comments

Comments
 (0)