0
Fork 0
mirror of https://github.com/logto-io/logto.git synced 2025-01-27 21:39:16 -05:00

refactor(core): use fallback language as default in demo app (#2095)

This commit is contained in:
Xiao Yijun 2022-10-11 10:30:17 +08:00 committed by GitHub
parent d765c8fff5
commit 633ec8f5bc
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -67,7 +67,7 @@ export default function wellKnownRoutes<T extends AnonymousRouter>(router: T, pr
// Insert Demo App Notification
if (interaction?.params.client_id === demoAppApplicationId) {
const {
languageInfo: { autoDetect, fixedLanguage },
languageInfo: { autoDetect, fallbackLanguage },
} = signInExperience;
ctx.body = {
@ -75,7 +75,7 @@ export default function wellKnownRoutes<T extends AnonymousRouter>(router: T, pr
socialConnectors,
notification: i18next.t(
'demo_app.notification',
autoDetect ? undefined : { lng: fixedLanguage }
autoDetect ? undefined : { lng: fallbackLanguage }
),
};