Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

i18n: Remove initial language check #629

Merged
merged 1 commit into from
Mar 28, 2023

Conversation

tahini
Copy link
Collaborator

@tahini tahini commented Mar 28, 2023

This language check caused the defaultLocale to always be set when reloading the page instead of using the detection mechanism. It previously worked because the config used in the i18n file was from chaire-lib-common, which was imported before getting the actual config from chaire-lib-frontend. When correctly importing the frontend config, or if setting default values for the languages in the common config, the issue arose.

This language check caused the defaultLocale to always be set when
reloading the page instead of using the detection mechanism. It
previously worked because the config used in the i18n file was from
chaire-lib-common, which was imported before getting the actual config
from chaire-lib-frontend. When correctly importing the frontend config,
or if setting default values for the languages in the common config,
the issue arose.
@tahini tahini requested a review from kaligrafy March 28, 2023 13:45
@tahini tahini merged commit 46dbc93 into chairemobilite:main Mar 28, 2023
@tahini tahini deleted the fixI18nConfig branch March 28, 2023 14:46
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants