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:
parent
fb9c967389
commit
46ebdfe502
1 changed files with 2 additions and 8 deletions
|
@ -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,
|
||||
|
|
Loading…
Reference in a new issue