fix: Search modal translations#52
Conversation
WalkthroughThe changes update the logic for reducing DocSearch strings. A new array of exception keys— Changes
Sequence Diagram(s)sequenceDiagram
participant Reducer
participant ExceptionChecker
participant NestedBuilder
Reducer->>ExceptionChecker: Check if key is in exceptions list
alt Key is an exception
ExceptionChecker-->>Reducer: True
Reducer->>RootDict: Assign value directly at root level
else Key is not an exception
ExceptionChecker-->>Reducer: False
Reducer->>NestedBuilder: Traverse and build nested structure under modal
NestedBuilder-->>Reducer: Set value at leaf node
end
Assessment against linked issues
Possibly related PRs
Tip ⚡💬 Agentic Chat (Pro Plan, General Availability)
📜 Recent review detailsConfiguration used: CodeRabbit UI 📒 Files selected for processing (1)
🚧 Files skipped from review as they are similar to previous changes (1)
🪧 TipsChatThere are 3 ways to chat with CodeRabbit:
Note: Be mindful of the bot's finite context window. It's strongly recommended to break down tasks such as reading entire modules into smaller chunks. For a focused discussion, use review comments to chat about specific files and their changes, instead of using the PR comments. CodeRabbit Commands (Invoked using PR comments)
Other keywords and placeholders
CodeRabbit Configuration File (
|
|
safe to ignore knip, since its a fork |
|
What or who is knip? |
https://github.com/withstudiocms/docs/actions/runs/14451948455/job/40526471605?pr=52 the failing workflow 😅 |
Oh, thanks! |
Description
The problem was in the
Search.astrooverride, where the dictionary is generated 1:1 like the values from theen.json(+ other languages) files, but most of them need to wrapped inside amodal: {}object.Summary by CodeRabbit