Skip to content

docs: Auto-translate README and Wiki - #244

Open
openaitx-system wants to merge 1 commit into
Arbuzov:masterfrom
openaitx-system:Auto_translate_README_and_Wiki
Open

docs: Auto-translate README and Wiki#244
openaitx-system wants to merge 1 commit into
Arbuzov:masterfrom
openaitx-system:Auto_translate_README_and_Wiki

Conversation

@openaitx-system

@openaitx-system openaitx-system commented Jul 25, 2026

Copy link
Copy Markdown

Added language badges to the README for easier access to translated versions: German, Spanish, French, Japanese, Korean, Portuguese, and Russian 20 languages.
System will auto-update translation for README and Wiki when this repository updated, and support multiple languages google/bing SEO search, and it's open source project, we can change web or local file mode.

The updated links can be previewed in my forked repository: https://github.com/openaitx-system/home_assistant_delonghi_primadonna/tree/Auto_translate_README_and_Wiki

Demo links :

Image

If this doesn't align with your expectations, feel free to close this PR. Thanks for your time! 🙌

Summary by Sourcery

Documentation:

  • Expose links in the README to translated documentation for many languages using an expandable language selector.

@sourcery-ai

sourcery-ai Bot commented Jul 25, 2026

Copy link
Copy Markdown
Contributor

Reviewer's Guide

Adds a collapsible language selector block at the top of README.md that links to auto-translated README/Wiki pages hosted on an external service for ~20 languages.

File-Level Changes

Change Details Files
Introduce a right-aligned, collapsible language selector in the README that links to external, auto-translated documentation for multiple languages.
  • Add a HTML
    wrapper aligned to the right containing a
    Details block with a language selector summary label.
  • Populate the language selector with anchor links to translated README/Wiki views for ~20 languages using the openaitx.github.io viewer URL pattern.
  • Insert the new language selector block at the very top of the README before the existing project title and badges.
  • Include an incomplete link entry for the Assamese language whose closing tag appears truncated and may need correction.
README.md

Tips and commands

Interacting with Sourcery

  • Trigger a new review: Comment @sourcery-ai review on the pull request.
  • Continue discussions: Reply directly to Sourcery's review comments.
  • Generate a GitHub issue from a review comment: Ask Sourcery to create an
    issue from a review comment by replying to it. You can also reply to a
    review comment with @sourcery-ai issue to create an issue from it.
  • Generate a pull request title: Write @sourcery-ai anywhere in the pull
    request title to generate a title at any time. You can also comment
    @sourcery-ai title on the pull request to (re-)generate the title at any time.
  • Generate a pull request summary: Write @sourcery-ai summary anywhere in
    the pull request body to generate a PR summary at any time exactly where you
    want it. You can also comment @sourcery-ai summary on the pull request to
    (re-)generate the summary at any time.
  • Generate reviewer's guide: Comment @sourcery-ai guide on the pull
    request to (re-)generate the reviewer's guide at any time.
  • Resolve all Sourcery comments: Comment @sourcery-ai resolve on the
    pull request to resolve all Sourcery comments. Useful if you've already
    addressed all the comments and don't want to see them anymore.
  • Dismiss all Sourcery reviews: Comment @sourcery-ai dismiss on the pull
    request to dismiss all existing Sourcery reviews. Especially useful if you
    want to start fresh with a new review - don't forget to comment
    @sourcery-ai review to trigger a new review!

Customizing Your Experience

Access your dashboard to:

  • Enable or disable review features such as the Sourcery-generated pull request
    summary, the reviewer's guide, and others.
  • Change the review language.
  • Add, remove or edit custom review instructions.
  • Adjust other review settings.

Getting Help

@sourcery-ai sourcery-ai Bot left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Hey - I've found 1 issue, and left some high level feedback:

  • The language selector block hardcodes user=Arbuzov and the project name into all links; consider parameterizing these to match the canonical repository owner/name so the links remain valid if the repo is moved or renamed.
  • The last link for Assamese (lang=as) appears to have a broken closing tag (</); please fix the HTML so the anchor renders correctly and doesn’t break the surrounding markup.
  • Since this embeds fairly complex HTML into the README, it may be worth simplifying the structure (e.g., using a plain Markdown list of links) to avoid layout issues across different renderers and improve maintainability.
Prompt for AI Agents
Please address the comments from this code review:

## Overall Comments
- The language selector block hardcodes `user=Arbuzov` and the project name into all links; consider parameterizing these to match the canonical repository owner/name so the links remain valid if the repo is moved or renamed.
- The last link for Assamese (`lang=as`) appears to have a broken closing tag (`</`); please fix the HTML so the anchor renders correctly and doesn’t break the surrounding markup.
- Since this embeds fairly complex HTML into the README, it may be worth simplifying the structure (e.g., using a plain Markdown list of links) to avoid layout issues across different renderers and improve maintainability.

## Individual Comments

### Comment 1
<location path="README.md" line_range="27" />
<code_context>
+        | <a href="https://openaitx.github.io/view.html?user=Arbuzov&project=home_assistant_delonghi_primadonna&lang=tr">Türkçe</a>
+        | <a href="https://openaitx.github.io/view.html?user=Arbuzov&project=home_assistant_delonghi_primadonna&lang=vi">Tiếng Việt</a>
+        | <a href="https://openaitx.github.io/view.html?user=Arbuzov&project=home_assistant_delonghi_primadonna&lang=id">Bahasa Indonesia</a>
+        | <a href="https://openaitx.github.io/view.html?user=Arbuzov&project=home_assistant_delonghi_primadonna&lang=as">অসমীয়া</
+      </div>
+    </div>
</code_context>
<issue_to_address>
**issue (bug_risk):** The Assamese language link appears truncated and is missing its closing HTML tags.

Add the missing `>` and closing `</a>` so the Assamese anchor is well-formed and the link renders and functions correctly.
</issue_to_address>

Sourcery is free for open source - if you like our reviews please consider sharing them ✨
Help me be more useful! Please click 👍 or 👎 on each comment and I'll use the feedback to improve your reviews.

Comment thread README.md
| <a href="https://openaitx.github.io/view.html?user=Arbuzov&project=home_assistant_delonghi_primadonna&lang=tr">Türkçe</a>
| <a href="https://openaitx.github.io/view.html?user=Arbuzov&project=home_assistant_delonghi_primadonna&lang=vi">Tiếng Việt</a>
| <a href="https://openaitx.github.io/view.html?user=Arbuzov&project=home_assistant_delonghi_primadonna&lang=id">Bahasa Indonesia</a>
| <a href="https://openaitx.github.io/view.html?user=Arbuzov&project=home_assistant_delonghi_primadonna&lang=as">অসমীয়া</

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

issue (bug_risk): The Assamese language link appears truncated and is missing its closing HTML tags.

Add the missing > and closing </a> so the Assamese anchor is well-formed and the link renders and functions correctly.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant