0
Fork 0
mirror of https://github.com/logto-io/logto.git synced 2025-01-06 20:40:08 -05:00

fix(demo-app): demo app notificaiton should always follow system language (#2814)

This commit is contained in:
simeng-li 2023-01-04 10:33:09 +08:00 committed by GitHub
parent fb9c967389
commit 46ebdfe502
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -82,15 +82,9 @@ export const getSignInExperienceForApplication = async (
// Insert Demo App Notification // Insert Demo App Notification
if (applicationId === demoAppApplicationId) { if (applicationId === demoAppApplicationId) {
const { const { socialSignInConnectorTargets } = signInExperience;
socialSignInConnectorTargets,
languageInfo: { autoDetect, fallbackLanguage },
} = signInExperience;
const notification = i18next.t( const notification = i18next.t('demo_app.notification');
'demo_app.notification',
autoDetect ? undefined : { lng: fallbackLanguage }
);
return { return {
...signInExperience, ...signInExperience,