- generate Localizable.strings to target directory in ios project
- Python 3
- pip install
| Json | Rex | Date |
|---|---|---|
| json | re | datetime |
# 讀取檔案
source_directory: generated json from backend dir(../Backend_CaiLiFang.Locale.Resx/Json/ios)
# 目標檔案
project_directory: iOS project dir
python3 json_convert.py
header_1_export_file_name = 'Localizable' + '-' + language.value + '.strings'
header_2_from_where = 'from Backend_CaiLiFang.Locale.Resx'
header_3_created_by = 'auto generated'
header_4_create_date = datetime.datetime.now().strftime('%Y/%-m/%-d')
header_5_create_year = datetime.datetime.now().strftime('%Y')
header_6_copyright = 'JohnsonTechInc.'
-
python3 install, click me for ref
-
install modules
python3 -m pip install module_name --userpython3 -m pip install --upgrade module_name --user
- install jupyter
pip3 install jupyter