Skip to content

New Crowdin updates#16

Merged
dragon-fish merged 31 commits intomasterfrom
l10n_master
Dec 5, 2025
Merged

New Crowdin updates#16
dragon-fish merged 31 commits intomasterfrom
l10n_master

Conversation

@dragon-fish
Copy link
Copy Markdown
Member

@dragon-fish dragon-fish commented Dec 4, 2025

Summary by Sourcery

增强内容:

  • 在所有语言翻译文件中,统一标准化 “This file is a duplicate of the following file:” 这一键值相对于其他上传相关字符串的位置。
Original summary in English

Summary by Sourcery

Enhancements:

  • Standardize the position of the "This file is a duplicate of the following file:" key relative to other upload-related strings in all language translation files.

@sourcery-ai
Copy link
Copy Markdown

sourcery-ai Bot commented Dec 4, 2025

Reviewer's Guide

在基础英语和所有本地化的 YAML 文件中添加或重新定位重复文件警告字符串的翻译键,使该键在每个语言文件中都稳定地出现在上传成功字符串之前。

文件上传重复检查和消息流程图

flowchart TD
  A[Start upload] --> B[Receive file from user]
  B --> C[Check if file with same name exists]
  C -->|Duplicate found| D[Use i18n key This file is a duplicate of the following file:]
  C -->|No duplicate| E[Use i18n key Upload successful]
  D --> F[Render duplicate warning in current locale]
  E --> G[Render upload success in current locale]
  F --> H[User decides next action]
  G --> H[User continues after success]
  H[End]
Loading

文件级变更

Change Details Files
规范基础和所有本地化 i18n YAML 文件中重复文件警告翻译键的位置。
  • 在缺失的地方,在 File duplicated 条目之后立即添加重复文件警告的键/值对。
  • 从原先 Templates Used 条目之后的位置移除同一个重复文件警告键/值对。
  • 确保每个语言文件(包括 en.yaml 和所有特定语言的 YAML)都在相同的相对位置包含该键,以在各个语言之间保持一致的结构。
i18n/src/en.yaml
i18n/src/languages/af_ZA.yaml
i18n/src/languages/ar_SA.yaml
i18n/src/languages/ca_ES.yaml
i18n/src/languages/cs_CZ.yaml
i18n/src/languages/da_DK.yaml
i18n/src/languages/de_DE.yaml
i18n/src/languages/el_GR.yaml
i18n/src/languages/en_US.yaml
i18n/src/languages/es_ES.yaml
i18n/src/languages/fi_FI.yaml
i18n/src/languages/fr_FR.yaml
i18n/src/languages/he_IL.yaml
i18n/src/languages/hu_HU.yaml
i18n/src/languages/it_IT.yaml
i18n/src/languages/ja_JP.yaml
i18n/src/languages/ko_KR.yaml
i18n/src/languages/nl_NL.yaml
i18n/src/languages/no_NO.yaml
i18n/src/languages/pl_PL.yaml
i18n/src/languages/pt_BR.yaml
i18n/src/languages/pt_PT.yaml
i18n/src/languages/ro_RO.yaml
i18n/src/languages/ru_RU.yaml
i18n/src/languages/sr_SP.yaml
i18n/src/languages/sv_SE.yaml
i18n/src/languages/tr_TR.yaml
i18n/src/languages/uk_UA.yaml
i18n/src/languages/vi_VN.yaml
i18n/src/languages/zh_CN.yaml

Tips and commands

Interacting with Sourcery

  • 触发新评审: 在 Pull Request 中评论 @sourcery-ai review
  • 继续讨论: 直接回复 Sourcery 的评审评论。
  • 从评审评论生成 GitHub issue: 在回复某条评审评论时,请求 Sourcery 从该评论创建一个 issue。你也可以回复该评论 @sourcery-ai issue 来从中创建 issue。
  • 生成 Pull Request 标题: 在 Pull Request 标题的任意位置写上 @sourcery-ai,即可随时生成标题。你也可以在 Pull Request 中评论 @sourcery-ai title 来(重新)生成标题。
  • 生成 Pull Request 摘要: 在 Pull Request 内容任意位置写上 @sourcery-ai summary,即可在该处生成 PR 摘要。你也可以在 Pull Request 中评论 @sourcery-ai summary 来在任意时间(重新)生成摘要。
  • 生成评审者指南: 在 Pull Request 中评论 @sourcery-ai guide,即可在任意时间(重新)生成评审者指南。
  • 解决所有 Sourcery 评论: 在 Pull Request 中评论 @sourcery-ai resolve,即可一次性解决所有 Sourcery 评论。适用于你已经处理完所有评论且不想再看到它们的情况。
  • 取消所有 Sourcery 评审: 在 Pull Request 中评论 @sourcery-ai dismiss,即可取消所有现有的 Sourcery 评审。特别适合你想从头开始新的评审时使用——别忘了再评论 @sourcery-ai review 来触发新的评审!

Customizing Your Experience

访问你的 dashboard 以:

  • 启用或禁用评审功能,例如 Sourcery 自动生成的 Pull Request 摘要、评审者指南等。
  • 更改评审语言。
  • 添加、移除或编辑自定义评审指令。
  • 调整其他评审设置。

Getting Help

Original review guide in English

Reviewer's Guide

Adds or repositions the translation key for the duplicate-file warning string across the base English and all localized YAML files so that the key consistently appears before the upload-success strings in each language file.

Flow diagram for file upload duplicate check and messaging

flowchart TD
  A[Start upload] --> B[Receive file from user]
  B --> C[Check if file with same name exists]
  C -->|Duplicate found| D[Use i18n key This file is a duplicate of the following file:]
  C -->|No duplicate| E[Use i18n key Upload successful]
  D --> F[Render duplicate warning in current locale]
  E --> G[Render upload success in current locale]
  F --> H[User decides next action]
  G --> H[User continues after success]
  H[End]
Loading

File-Level Changes

Change Details Files
Normalize placement of the duplicate-file warning translation key across the base and all localized i18n YAML files.
  • Add the duplicate-file warning key/value pair immediately after the 'File duplicated' entry where it was missing.
  • Remove the same duplicate-file warning key/value pair from its former position after the 'Templates Used' entry.
  • Ensure each language file (including en.yaml and all locale-specific YAMLs) contains this key in the same relative position to maintain consistent structure across locales.
i18n/src/en.yaml
i18n/src/languages/af_ZA.yaml
i18n/src/languages/ar_SA.yaml
i18n/src/languages/ca_ES.yaml
i18n/src/languages/cs_CZ.yaml
i18n/src/languages/da_DK.yaml
i18n/src/languages/de_DE.yaml
i18n/src/languages/el_GR.yaml
i18n/src/languages/en_US.yaml
i18n/src/languages/es_ES.yaml
i18n/src/languages/fi_FI.yaml
i18n/src/languages/fr_FR.yaml
i18n/src/languages/he_IL.yaml
i18n/src/languages/hu_HU.yaml
i18n/src/languages/it_IT.yaml
i18n/src/languages/ja_JP.yaml
i18n/src/languages/ko_KR.yaml
i18n/src/languages/nl_NL.yaml
i18n/src/languages/no_NO.yaml
i18n/src/languages/pl_PL.yaml
i18n/src/languages/pt_BR.yaml
i18n/src/languages/pt_PT.yaml
i18n/src/languages/ro_RO.yaml
i18n/src/languages/ru_RU.yaml
i18n/src/languages/sr_SP.yaml
i18n/src/languages/sv_SE.yaml
i18n/src/languages/tr_TR.yaml
i18n/src/languages/uk_UA.yaml
i18n/src/languages/vi_VN.yaml
i18n/src/languages/zh_CN.yaml

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.

你好 —— 我已经审查了你的更改,一切看起来都很棒!


Sourcery 对开源项目是免费的——如果你觉得我们的评审对你有帮助,请考虑分享给更多人 ✨
帮我变得更有用吧!请在每条评论上点 👍 或 👎,我会根据你的反馈改进后续评审。
Original comment in English

Hey there - I've reviewed your changes and they look great!


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.

@dragon-fish dragon-fish merged commit e2f8529 into master Dec 5, 2025
@dragon-fish dragon-fish deleted the l10n_master branch December 5, 2025 19:19
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