Skip to content

Commit 1728047

Browse files
scaleway-botphilibea
authored andcommitted
chore: add changeset renovate-412296f
Signed-off-by: Alexandre Philibeaux <[email protected]>
1 parent b880f5c commit 1728047

File tree

2 files changed

+11
-2
lines changed

2 files changed

+11
-2
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/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],

0 commit comments

Comments
 (0)