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

Support site and site languages per indexer #110

Merged
merged 4 commits into from
Mar 4, 2024
Merged

Conversation

mbrodala
Copy link
Member

@mbrodala mbrodala commented Feb 28, 2024

Among others fixes #102

@mbrodala mbrodala marked this pull request as draft February 28, 2024 16:10
This will allow us to set up frontend aspects like the site and language
in following changes once per indexer.

Previously this did happen intransparently on the first usage of the
OverlayUtility with no way to adjust the TSFE setup here.
@mbrodala mbrodala force-pushed the indexer-site branch 3 times, most recently from 3db6c51 to 4a32386 Compare February 29, 2024 10:52
@mbrodala mbrodala changed the title Support site selection per indexer Support site and site languages Feb 29, 2024
@mbrodala mbrodala marked this pull request as ready for review February 29, 2024 10:54
We now look up the site language for the current index language. This
finally ensures a consistent and predictable translation behavior. The
tests must be adjusted since they did in fact work with an invalid
setup.
@mbrodala mbrodala marked this pull request as draft February 29, 2024 11:37
While technically correct we should not fail hard in this case. The
fallback to the site default language basically restores the old
behavior in this case.

A proper fix would be excluding indexers from index languages or
configuring the languages supported by an indexer. But this is beyond
the scope of the current topic.
@mbrodala mbrodala changed the title Support site and site languages Support site and site languages per indexer Feb 29, 2024
@mbrodala mbrodala marked this pull request as ready for review March 4, 2024 14:35
@mbrodala mbrodala merged commit c0e80b6 into master Mar 4, 2024
3 checks passed
@mbrodala mbrodala deleted the indexer-site branch March 4, 2024 14:35
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.

Inconsistent/unreliable language indexing
1 participant