Create update-i18n.yaml (#2342)

* Create update-i18n.yaml

* i18n changes

* fixes of fail in no changes and auto crlf

* i18n changes

* clear en.json

* i18n changes

* only in workflow_dispatch

* Update i18n

* fix

---------

Co-authored-by: github-actions[bot] <41898282+github-actions[bot]@users.noreply.github.com>
This commit is contained in:
steve green
2024-06-07 16:43:23 +08:00
committed by GitHub
parent d1b533cbfa
commit 64711109a6
16 changed files with 17754 additions and 11084 deletions

33
.github/workflows/update-i18n.yaml vendored Normal file
View File

@@ -0,0 +1,33 @@
name: Update i18n data
on:
workflow_dispatch:
jobs:
build:
runs-on: ubuntu-latest
permissions: # Job-level permissions configuration starts here
contents: write # 'write' access to repository contents
steps:
- name: disable auto crlf
uses: steve02081504/disable-autocrlf@v1
- uses: actions/checkout@v4
with:
ref: ${{ github.head_ref }}
fetch-depth: 0 # otherwise, there would be errors pushing refs to the destination repository.
- name: Create local changes
run: |
aria2c https://raw.githubusercontent.com/SillyTavern/SillyTavern-i18n/main/generate.py
aria2c https://raw.githubusercontent.com/SillyTavern/SillyTavern-i18n/main/requirements.txt
pip install -r ./requirements.txt
python ./generate.py "" --sort-keys
rm -f ./generate.py ./requirements.txt
- name: add all
run: git add -A
- name: push
uses: actions-go/push@master
with:
author-email: 41898282+github-actions[bot]@users.noreply.github.com
author-name: github-actions[bot]
commit-message: 'i18n changes'
remote: origin

File diff suppressed because it is too large Load Diff

File diff suppressed because it is too large Load Diff

File diff suppressed because it is too large Load Diff

File diff suppressed because it is too large Load Diff

File diff suppressed because it is too large Load Diff

File diff suppressed because it is too large Load Diff

File diff suppressed because it is too large Load Diff

File diff suppressed because it is too large Load Diff

File diff suppressed because it is too large Load Diff

File diff suppressed because it is too large Load Diff

File diff suppressed because it is too large Load Diff

File diff suppressed because it is too large Load Diff

File diff suppressed because it is too large Load Diff

View File

@@ -1383,6 +1383,7 @@
"Warning:": "警告:",
"This action is irreversible.": "此操作不可逆。",
"Type the user's handle below to confirm:": "在下面输入用户的名称以确认:",
"Import Characters": "导入角色",
"Enter the URL of the content to import": "输入要导入的内容的URL",
"Supported sources:": "支持的来源:",
"char_import_1": "Chub 角色直链或ID",
@@ -1394,6 +1395,8 @@
"char_import_6": "被允许的PNG直链请参阅",
"char_import_7": "",
"char_import_8": "RisuRealm 角色(直链)",
"Supports importing multiple characters.": "支持导入多个角色。",
"Write each URL or ID into a new line.": "将每个 URL 或 ID 写入新行。",
"Export for character": "导出角色",
"Export prompts for this character, including their order.": "导出此角色的提示,包括其顺序。",
"Export all": "全部导出",

File diff suppressed because it is too large Load Diff