Repository navigation
Conversation
|
No actionable comments were generated in the recent review. 🎉 ℹ️ Recent review info
📝 Walkthrough
Merge Risk: ⚪ Minimal · up to
|
There was a problem hiding this comment.
Gates Passed
4 Quality Gates Passed
See analysis details in CodeScene
Absence of Expected Change Pattern
- framework/gottext/test/build.test.ts is usually changed with: framework/gottext/src/gates.ts
Quality Gate Profile: Clean Code Collective
Install CodeScene MCP: safeguard and uplift AI-generated code. Catch issues early with our IDE extension and CLI tool.
[Medium impact] The changes are safe to merge: domain filtering behaved as described, and Go/template extraction remained unchanged.
|
Closes #100
What
A template now lists only the messages of its own text domain. A call naming no domain belongs to
default, as in the WordPress packages. A call whose domain is not written as a string stays in, because the template cannot tell its domain. Go markers and templates are read as before.This breaks one setup. An app that loads its catalogue under the default domain now builds its template with
domain: 'default'.Why
An app may show the block editor's own words through plain calls such as
__('Move up'). Those words landed in the app's template. Its untranslated gate then asked its translators for words the app never reads.Testing Instructions
The repository's own gates cover the extraction rules. To check a real app, build its template with this branch and compare it with the committed one. Only messages from calls naming another domain, or no domain, should leave.
Summary by CodeRabbit
defaultdomain; calls with a non-literal domain are retained.default, setdomain: 'default'when building its template.