codeant-ai-for-open-source[bot] commented on PR #37776:
URL: https://github.com/apache/superset/pull/37776#issuecomment-3866145232

   ## **Sequence Diagram**
   
   This PR wraps user-facing strings with the t() translation function and adds 
a Babel-based lint rule that detects untranslated strings. The diagram shows 
the developer changes, the lint-time detection, translation catalog 
regeneration, and the runtime usage of t() by frontend components.
   
   ```mermaid
   sequenceDiagram
       participant Developer
       participant Repo
       participant i18nLinter as scripts/check-custom-rules.js
       participant Translator as Translation Catalogs
       participant Frontend
   
       Developer->>Repo: Wrap user-visible strings with t() and add lint rule
       Repo->>i18nLinter: Run lint check (checkUntranslatedStrings)
       i18nLinter-->>Repo: Report untranslated strings (errors)
       Developer->>Repo: Fix remaining untranslated strings
       Developer->>Translator: Regenerate messages.pot and update language 
catalogs
       Frontend->>Translator: Load updated catalogs at build/runtime
       Frontend-->>User: Render UI using t(...) (translated strings)
   ```
   
   ---
   *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]

Reply via email to