Fix Crowdin Daily GitHub Action (#13187)

* Update crowdin-daily.yml

* Update json2h.py
This commit is contained in:
Guo Yunhe 2021-11-05 18:38:35 +08:00 committed by GitHub
parent 8af0c2755d
commit 15321b2588
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 3 additions and 0 deletions

View File

@ -24,6 +24,7 @@ jobs:
CROWDIN_API_KEY: ${{ secrets.CROWDIN_API_KEY }}
run: |
cd intl
python3 -m pip install requests
python3 crowdin_sync.py "$CROWDIN_API_KEY"
git config user.name github-actions
git config user.email github-actions@github.com

View File

@ -23,6 +23,8 @@ p = re.compile(
def c89_cut(old_str):
if old_str.endswith('[...]')
return old_str
new_str = ''
byte_count = 0
for c in old_str: