File tree Expand file tree Collapse file tree 2 files changed +11
-2
lines changed Expand file tree Collapse file tree 2 files changed +11
-2
lines changed Original file line number Diff line number Diff line change 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 ` .
Original file line number Diff line number Diff 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 ] ,
You can’t perform that action at this time.
0 commit comments