fix genlocale

This commit is contained in:
Ftps 2023-08-29 20:34:14 +09:00
parent 50944921ae
commit d880f0d19f
2 changed files with 4 additions and 3 deletions

View File

@ -14,7 +14,8 @@ jobs:
- name: Run locale generation
run: |
python3 i18n/scan_i18n.py
python3 i18n/locale_diff.py
cd i18n
python3 locale_diff.py
- name: Commit back
if: ${{ !github.head_ref }}

View File

@ -3,10 +3,10 @@ import os
from collections import OrderedDict
# Define the standard file name
standard_file = "i18n/locale/zh_CN.json"
standard_file = "locale/zh_CN.json"
# Find all JSON files in the directory
dir_path = "i18n/locale/"
dir_path = "locale/"
languages = [
os.path.join(dir_path, f)
for f in os.listdir(dir_path)