codeant-ai-for-open-source[bot] commented on PR #37776:
URL: https://github.com/apache/superset/pull/37776#issuecomment-3942536888
## **Sequence Diagram**
This PR wraps user-visible frontend strings with the t() translation
function and adds a Babel-based lint rule that scans source files for
untranslated strings, reporting failures to prevent regressions. The diagram
shows the developer change, runtime translation lookup, and the new lint-time
check that enforces the rule in CI/dev workflows.
```mermaid
sequenceDiagram
participant Dev
participant FrontendComponent
participant TranslationCatalog
participant LintScript
Dev->>FrontendComponent: Wrap user-facing strings with t('...')
FrontendComponent->>TranslationCatalog: t(key) -> lookup translated text
TranslationCatalog-->>FrontendComponent: translated string
Dev->>LintScript: Run check-custom-rules (or CI runs it)
LintScript->>FrontendComponent: Scan JSX/props for untranslated strings
alt Untranslated found
LintScript-->>Dev: Report errors (fail CI)
else All wrapped
LintScript-->>Dev: No i18n issues found
```
---
*Generated by [CodeAnt AI](https://codeant.ai)*
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: [email protected]
For queries about this service, please contact Infrastructure at:
[email protected]
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]