Skip to content

chore: auto sync OCR i18n expected#255

Merged
EeeMaoY merged 1 commit into
devfrom
chore/i18n-auto-sync
May 31, 2026
Merged

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

Conversation

@EeeMaoY
Copy link
Copy Markdown
Collaborator

@EeeMaoY EeeMaoY commented May 31, 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 相关的场景和触控 JSON 资源,以匹配最新的 ExtractForNTE 翻译。
Original summary in English

Summary by Sourcery

Enhancements:

  • Refresh OCR-related scene and touch JSON resources to match the latest ExtractForNTE translations.

@sourcery-ai
Copy link
Copy Markdown
Contributor

sourcery-ai Bot commented May 31, 2026

审阅者指南(在小型 PR 上为折叠状态)

审阅者指南

添加自动化流程以同步 OCR i18n 期望值,并更新若干与场景相关的 JSON 期望文件,使其与最新的 ExtractForNTE 翻译仓库保持一致。

文件级别变更

变更 详情 文件
添加自动化工作流,用于按计划及通过手动触发同步 OCR i18n 期望值。
  • 引入一个可通过 workflow_dispatch 手动触发的工作流。
  • 配置了一个每日 UTC 计划触发器来运行同步任务。
  • 定义了一个任务,从最新的 ExtractForNTE 翻译中拉取内容并更新 OCR i18n 期望资源。
.github/workflows/<new_ocr_i18n_sync_workflow>.yml
更新 OCR i18n 期望 JSON 资源,使其与最新的 ExtractForNTE 翻译保持一致。
  • 调整鱼类场景(fish scene)的 OCR 期望条目,以匹配更新后的翻译。
  • 为新的或变更的字符串更新界面状态场景(interface status scene)的 OCR 期望。
  • 将场景管理器世界场景(scene manager world scene)的 OCR 期望与最新翻译键和值对齐。
  • 刷新触控流水线(touch pipeline)的 OCR 期望数据,以匹配源翻译仓库。
assets/resource/base/pipeline/Fish/FishScene.json
assets/resource/base/pipeline/Interface/Scene/Status.json
assets/resource/base/pipeline/SceneManager/SceneWorld.json
assets/resource/base/pipeline/Touch.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 automation to sync OCR i18n expected values and updates several scene-related JSON expectation files to match the latest ExtractForNTE translation repository.

File-Level Changes

Change Details Files
Automated workflow added to sync OCR i18n expected values on a schedule and via manual trigger.
  • Introduces a workflow that can be triggered manually via workflow_dispatch.
  • Configures a daily UTC schedule trigger for the sync job.
  • Defines a job that pulls the latest ExtractForNTE translations and updates expected OCR i18n resources.
.github/workflows/<new_ocr_i18n_sync_workflow>.yml
Updated OCR i18n expected JSON resources to align with the latest ExtractForNTE translations.
  • Adjusts fish scene OCR expectation entries to match updated translations.
  • Updates interface status scene OCR expectations for new/changed strings.
  • Aligns scene manager world scene OCR expectations with latest translation keys and values.
  • Refreshes touch pipeline OCR expectation data to match source translation repository.
assets/resource/base/pipeline/Fish/FishScene.json
assets/resource/base/pipeline/Interface/Scene/Status.json
assets/resource/base/pipeline/SceneManager/SceneWorld.json
assets/resource/base/pipeline/Touch.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 25df3f2 into dev May 31, 2026
9 checks passed
@1bananachicken 1bananachicken deleted the chore/i18n-auto-sync branch June 2, 2026 07:01
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