Skip to content

Instantly share code, notes, and snippets.

View haozes's full-sized avatar

haozes haozes

View GitHub Profile
@haozes
haozes / update_whatsnew.py
Last active October 29, 2023 09:10
Update App Connect whats new info
# need install asconnect: pip install asconnect, and openai: pip install openai
import asconnect
import os
import openai
#api key: https://developer.apple.com/documentation/appstoreconnectapi/creating_api_keys_for_app_store_connect_api
APPCONN_APIKEY_ID = "xxxxx"
APPCONN_ISSUER_ID = "xxxxxxx"
APPCONN_KEY_FILE = "xxxxx.p8"
@haozes
haozes / android_proj_trans.js
Created February 21, 2023 00:14
翻译一条多语言文本,并写入 android strings.xml 多语言文件
/**
* 翻译一条多语言文本,并写入 android strings.xml 多语言文件
* (如果没有路由器翻墙,可能需要使用proxychains 执行)
* //https://github.com/iamtraction/google-translate
* 1. npm install --save @iamtraction/google-translate
* 2. pc node ./android_proj_trans.js
*/
//https://github.com/iamtraction/google-translate
// npm install --save @iamtraction/google-translate
@haozes
haozes / ios_proj_trans.js
Created February 21, 2023 00:13
翻译一条多语言文本,并写入 XCode strings 多语言文件
/**
* 翻译一条多语言文本,并写入 XCode strings 多语言文件
* (如果没有路由器翻墙,可能需要使用proxychains 执行)
* //https://github.com/iamtraction/google-translate
* 1. npm install --save @iamtraction/google-translate
* 2. pc node ./ios_proj_trans.js
*/
const fs = require('fs');