Skip to content

Commit 11e898b

Browse files
scaleway-botphilibea
authored andcommitted
chore: add changeset renovate-0860987
Signed-off-by: Alexandre Philibeaux <[email protected]>
1 parent bf10a7b commit 11e898b

File tree

3 files changed

+8
-3
lines changed

3 files changed

+8
-3
lines changed

.changeset/renovate-0860987.md

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
---
2+
'@scaleway/use-growthbook': patch
3+
---
4+
5+
Updated dependency `@growthbook/growthbook-react` to `1.2.1`.

packages/use-i18n/package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -43,7 +43,7 @@
4343
"build": "vite build --config vite.config.ts && pnpm run type:generate",
4444
"build:profile": "npx vite-bundle-visualizer -c vite.config.ts",
4545
"lint": "eslint --report-unused-disable-directives --cache --cache-strategy content --ext ts,tsx .",
46-
"test:unit": "vitest --run --config vite.config.ts",
46+
"test:unit": "TZ=UTC LANG=en_US.UTF8 NODE_ENV=test vitest --run --config vite.config.ts",
4747
"test:unit:coverage": "pnpm test:unit --coverage"
4848
},
4949
"dependencies": {

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)