Skip to content

Commit

Permalink
Update presenter/renderer/app.ts
Browse files Browse the repository at this point in the history
Co-authored-by: Ulf Gebhardt <ulf.gebhardt@webcraft-media.de>
  • Loading branch information
Elweyn and ulfgebhardt authored Mar 26, 2024
1 parent 1cbc7bd commit 4f88924
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion presenter/renderer/app.ts
Original file line number Diff line number Diff line change
Expand Up @@ -74,7 +74,7 @@ function createApp(pageContext: PageContext, isClient = true) {

setPageContext(app, pageContextReactive)

if (pageContext.locale !== undefined && locales.includes(pageContext.locale)) {
if (pageContext.locale && locales.includes(pageContext.locale)) {
i18n.global.locale.value = pageContext.locale
}

Expand Down

0 comments on commit 4f88924

Please sign in to comment.