Skip to content

chore(i18n): add Transifex configuration for translation workflow#197

Merged
lzwind merged 1 commit intolinuxdeepin:masterfrom
lzwind:master
Apr 3, 2026
Merged

chore(i18n): add Transifex configuration for translation workflow#197
lzwind merged 1 commit intolinuxdeepin:masterfrom
lzwind:master

Conversation

@lzwind
Copy link
Copy Markdown
Contributor

@lzwind lzwind commented Apr 3, 2026

Add transifex.yaml to configure translation filters for deepin-draw and desktop TS files.

新增 Transifex 配置文件,用于支持 deepin-draw 和桌面
TS 文件的翻译工作流。

Log: 新增 Transifex 翻译配置文件

Summary by Sourcery

Configure Transifex-based translation workflow and remove legacy localization config files.

Chores:

  • Add Transifex configuration for deepin-draw and desktop TS translation files and define PR branch naming for automated updates.
  • Remove obsolete .tx configuration files and related installer metadata no longer needed with the new Transifex setup.

Add transifex.yaml to configure translation filters for deepin-draw
and desktop TS files.

新增 Transifex 配置文件,用于支持 deepin-draw 和桌面
TS 文件的翻译工作流。

Log: 新增 Transifex 翻译配置文件
@sourcery-ai
Copy link
Copy Markdown

sourcery-ai Bot commented Apr 3, 2026

Reviewer's guide (collapsed on small PRs)

Reviewer's Guide

Adds a new Transifex YAML configuration for QT TS translation workflow for deepin-draw and desktop, and removes legacy .tx configuration files and an unused installer file.

Flow diagram for Transifex PR-based translation update process

flowchart TD
  A["Transifex detects new or updated source TS files"]
  B["Apply filters from .tx/transifex.yaml"]
  C["Use QT file_format and en_US source_language"]
  D["Translators edit translations in Transifex UI"]
  E["Transifex generates updated translation TS files"]
  F["Transifex creates PR with branch name transifex_update_<br_unique_id>"]
  G["PR merged into repository"]

  A --> B
  B --> C
  C --> D
  D --> E
  E --> F
  F --> G
Loading

File-Level Changes

Change Details Files
Introduce a Transifex YAML configuration defining QT TS translation filters and PR branch naming for the translation workflow.
  • Add filters for deepin-draw.ts with QT file format, English source language, and language-suffixed translation TS files.
  • Add filters for desktop/desktop.ts with QT file format, English source language, and language-suffixed translation TS files.
  • Configure automatic PR branch naming pattern for Transifex updates.
.tx/transifex.yaml
Remove obsolete Transifex and related configuration scripts/files that are superseded by the new YAML config or no longer needed.
  • Delete legacy Transifex deepin.conf configuration file.
  • Delete ts2desktop helper or configuration file under .tx.
  • Delete org.deepin.draw.install installer-related file that is no longer part of the translation workflow.
.tx/deepin.conf
.tx/ts2desktop
org.deepin.draw.install

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

Copy link
Copy Markdown

@sourcery-ai sourcery-ai Bot left a comment

Choose a reason for hiding this comment

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

Hey - I've left some high level feedback:

  • The removal of .tx/deepin.conf, .tx/ts2desktop, and org.deepin.draw.install isn’t mentioned in the description—please confirm these deletions are intentional and no longer needed in the translation workflow or build/install process.
Prompt for AI Agents
Please address the comments from this code review:

## Overall Comments
- The removal of `.tx/deepin.conf`, `.tx/ts2desktop`, and `org.deepin.draw.install` isn’t mentioned in the description—please confirm these deletions are intentional and no longer needed in the translation workflow or build/install process.

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.

@deepin-ci-robot
Copy link
Copy Markdown

[APPROVALNOTIFIER] This PR is NOT APPROVED

This pull-request has been approved by: lzwind, wyu71

The full list of commands accepted by this bot can be found here.

Details Needs approval from an approver in each of these files:

Approvers can indicate their approval by writing /approve in a comment
Approvers can cancel approval by writing /approve cancel in a comment

@lzwind lzwind merged commit 5bd163a into linuxdeepin:master Apr 3, 2026
16 checks passed
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.

3 participants