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:
parent
d765c8fff5
commit
633ec8f5bc
1 changed files with 2 additions and 2 deletions
|
@ -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 }
|
||||
),
|
||||
};
|
||||
|
||||
|
|
Loading…
Add table
Reference in a new issue