0
Fork 0
mirror of https://github.com/logto-io/logto.git synced 2024-12-16 20:26:19 -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
if (applicationId === demoAppApplicationId) {
const {
socialSignInConnectorTargets,
languageInfo: { autoDetect, fallbackLanguage },
} = signInExperience;
const { socialSignInConnectorTargets } = signInExperience;
const notification = i18next.t(
'demo_app.notification',
autoDetect ? undefined : { lng: fallbackLanguage }
);
const notification = i18next.t('demo_app.notification');
return {
...signInExperience,