fix genlocale
This commit is contained in:
parent
50944921ae
commit
d880f0d19f
3
.github/workflows/genlocale.yml
vendored
3
.github/workflows/genlocale.yml
vendored
@ -14,7 +14,8 @@ jobs:
|
|||||||
- name: Run locale generation
|
- name: Run locale generation
|
||||||
run: |
|
run: |
|
||||||
python3 i18n/scan_i18n.py
|
python3 i18n/scan_i18n.py
|
||||||
python3 i18n/locale_diff.py
|
cd i18n
|
||||||
|
python3 locale_diff.py
|
||||||
|
|
||||||
- name: Commit back
|
- name: Commit back
|
||||||
if: ${{ !github.head_ref }}
|
if: ${{ !github.head_ref }}
|
||||||
|
@ -3,10 +3,10 @@ import os
|
|||||||
from collections import OrderedDict
|
from collections import OrderedDict
|
||||||
|
|
||||||
# Define the standard file name
|
# 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
|
# Find all JSON files in the directory
|
||||||
dir_path = "i18n/locale/"
|
dir_path = "locale/"
|
||||||
languages = [
|
languages = [
|
||||||
os.path.join(dir_path, f)
|
os.path.join(dir_path, f)
|
||||||
for f in os.listdir(dir_path)
|
for f in os.listdir(dir_path)
|
||||||
|
Loading…
Reference in New Issue
Block a user