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:
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
|
// 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,
|
||||||
|
|
Loading…
Reference in a new issue