Repository navigation
fix(site): use a set lookup for locale routes - #1520
Merged
Merged
Conversation
BryanFRD
enabled auto-merge (squash)
November 28, 2026 15:05
Contributor
There was a problem hiding this comment.
Ready to merge. The code review approved with no findings.
site/src/app/app.config.ts: LOCALES.some((locale) => route.path === locale) becomes a lookup in a ReadonlySet<string | undefined>. Behaviour is unchanged. Matching is still exact string equality, and a route with an undefined path never matches. The string | undefined type on the set lets route.path go straight to has() without a cast.
Findings: none. The formal verification step was not run for this pull request.
ferrflow Bot
added a commit
that referenced
this pull request
Nov 28, 2026
## [2026.11.41] - 2026-11-28 ### Bug Fixes - fix(site): use a set lookup for locale routes (#1520)
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Fixes the remaining new Sonar violation (typescript:S7765) in app.config.ts.
Closes #1519