Skip to content
子悦解说 edited this page Oct 6, 2024 · 3 revisions

TransRepo™ is a simple workflow which can update the localization files with GitHub repositories. Ultimate Edition Reborn introduced this feature to make updating localizations easier for translators.

Create a repository

  1. Use Ultimate-Edition-Team/ localization-template as a template to create your localization repository.

  2. If you rename your master branch, replace main with YOUR_NEW_MASTER_BRANCH in files which in .github\workflows.

  3. To make TransRepo ignore the directory when updating the localization file, name your directory with . prefix. For example, .ignored and .github.

Register TransRepo workflow

Contact ZiYueCommentary to register your repository to TransRepo.

Publish your updates

TransRepo will update localization files if the master branch is pushed. After you push commits, the GitHub action will begin to update localization files through TransRepo.

TransRepo will download local.ini and achievements.jsonc from ZiYue Weblate, and store it into the file at the same time.

The file server is configured with Cloudflare CDN. Therefore, the server has a two-hour cache and your changes may not be available immediately.

Update compatible version

TransRepo won't update localization's compatible version, since it can't determine whether localization is fully working.

Before updating the compatible version, you have to be sure that everything is configured properly and working properly.

PixPin_2024-10-06_10-03-41

TransRepo response codes

If the action failed, you need to check what caused the procedure to fail.

Open the detail of the action and see its response code.

PixPin_2024-10-06_10-09-53

Code Description
200 Succeed.
400 Invalid request.
403 The branch which actives the action is not master.
404 The repository is not registered.
418 The repository is registered with a non-UER project.
500 Internal server error.
501 Not push or workflow_dispatch GitHub action.