This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# 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" |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/** | |
* 翻译一条多语言文本,并写入 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 |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/** | |
* 翻译一条多语言文本,并写入 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'); |