Skip to content

chore: auto sync OCR i18n expected#277

Merged
EeeMaoY merged 1 commit into
devfrom
chore/i18n-auto-sync
Jun 3, 2026
Merged

chore: auto sync OCR i18n expected#277
EeeMaoY merged 1 commit into
devfrom
chore/i18n-auto-sync

Conversation

@EeeMaoY
Copy link
Copy Markdown
Collaborator

@EeeMaoY EeeMaoY commented Jun 3, 2026

Summary

  • Auto run i18n OCR expected sync.
  • Update expected values based on latest ExtractForNTE translation repository.

Trigger

  • workflow_dispatch
  • schedule (daily UTC)

Summary by Sourcery

自动化同步 OCR i18n 预期资源,并基于最新的 ExtractForNTE 翻译刷新与 OCR 相关的预期值。

杂项工作:

  • 更新鱼类状态资源的 OCR i18n 预期数据,使其与最新的翻译仓库保持一致。
  • 引入或调整自动化流程,使 OCR i18n 预期同步可按计划任务和手动方式运行。
Original summary in English

Summary by Sourcery

Automate syncing of OCR i18n expected resources and refresh OCR-related expected values from the latest ExtractForNTE translations.

Chores:

  • Update OCR i18n expected data for Fish status resources to match the latest translation repository.
  • Introduce or adjust automation to run the OCR i18n expected sync on a scheduled and manual basis.

@sourcery-ai
Copy link
Copy Markdown
Contributor

sourcery-ai Bot commented Jun 3, 2026

审阅者指南(在小型 PR 上默认折叠)

审阅者指南

新增一个可自动每日运行且可手动触发的工作流,用于将 OCR i18n 期望值与最新的 ExtractForNTE 翻译保持同步,并更新鱼类状态(fish status)的 i18n 资源,使其符合新的期望值。

文件级变更

变更 详情 文件
将 OCR i18n 期望数据与外部的 ExtractForNTE 翻译源自动同步。
  • 新增或更新一个 CI 工作流,使其既可通过手动触发(manual dispatch)运行,也可按每日 UTC 定时运行
  • 将工作流配置为在 ExtractForNTE 翻译仓库上运行 OCR i18n 期望值同步逻辑
  • 确保工作流在运行过程中会更新已提交的期望值资源
.github/workflows/<i18n-ocr-sync-workflow>.yml
刷新鱼类状态资源的 OCR i18n 期望内容。
  • 更新 OCR i18n 期望值,使其与最新的 ExtractForNTE 翻译保持一致
  • 在保持 schema/结构不变的前提下,调整鱼类状态流水线资源中的键或消息字符串
assets/resource/base/pipeline/Fish/FishStatus.json

提示和命令

与 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 以触发新审阅!

自定义你的体验

访问你的 控制台 以:

  • 启用或禁用审阅功能,例如 Sourcery 生成的 Pull Request 摘要、审阅者指南等。
  • 更改审阅语言。
  • 新增、删除或编辑自定义审阅说明。
  • 调整其他审阅设置。

获取帮助

Original review guide in English
Reviewer's guide (collapsed on small PRs)

Reviewer's Guide

Adds an automated daily and manually-triggerable workflow to sync OCR i18n expected values with the latest ExtractForNTE translations and updates the fish status i18n resource to match the new expectations.

File-Level Changes

Change Details Files
Automate syncing of OCR i18n expected data with the external ExtractForNTE translation source.
  • Introduce or update a CI workflow that runs on both manual dispatch and a daily UTC schedule
  • Wire the workflow to run the OCR i18n expectation sync logic against the ExtractForNTE translation repository
  • Ensure the workflow updates committed expected-value resources as part of its run
.github/workflows/<i18n-ocr-sync-workflow>.yml
Refresh OCR i18n expected content for fish status resources.
  • Update expected OCR i18n values to align with the latest ExtractForNTE translations
  • Adjust keys or message strings in the fish status pipeline resource while preserving schema/structure
assets/resource/base/pipeline/Fish/FishStatus.json

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
Contributor

@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 - 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.

@EeeMaoY EeeMaoY merged commit 32f498a into dev Jun 3, 2026
9 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.

1 participant