Conversation
There was a problem hiding this comment.
The PR introduces i18n support across the notification pipeline with good test coverage, but has several correctness issues: the most critical is that cds.load() is called redundantly inside the "served" handler instead of using cds.model, meaning the "loaded" hook's recipients injection is bypassed for that model instance. Additionally, resolveEnum().toUpperCase() can throw on non-string channel values, and cds.reflect() in compile.js is inconsistent with how the rest of the codebase iterates definitions directly.
PR Bot Information
Version: 1.20.47
- File Content Strategy: Full file content
- Event Trigger:
pull_request.opened - Correlation ID:
685f3a58-da82-4729-88de-7f2eec06c33d - LLM:
anthropic--claude-4.6-sonnet
SummaryThe following content is AI-generated and provides a summary of the pull request: Add i18n Support for Notification TemplatesNew Feature✨ Introduces internationalization (i18n) support for notification templates, moving beyond hard-coded English. Notification type templates are now generated per available locale by reading Changes
PR Bot InformationVersion:
|
There was a problem hiding this comment.
The PR introduces a solid i18n foundation — the locale-aware template generation and cds.context locale propagation are well-structured and well-tested. However, there are a few correctness issues to address: the English locale is not guaranteed to be included when only non-English .properties files exist, parseProperties will silently produce wrong keys on CRLF line endings, and the stray leading space before parseProperties is a minor but real inconsistency. The missing newline at end of bookshop.test.js should also be fixed.
PR Bot Information
Version: 1.21.4
- Correlation ID:
d7f82453-bf26-40a7-ae08-983ef7336615 - File Content Strategy: Full file content
- Event Trigger:
pull_request.ready_for_review - LLM:
anthropic--claude-4.6-sonnet
Co-authored-by: Stefan Rudi <54106627+stefanrudi@users.noreply.github.com>
Adds i18n support beyond hard-coded English. Prereq: #125