【macOS】【本地化】 单独设置一个App的语言

    在开发macOS的App项目中,进行本地化的时候,这是一个很实用的命令。

之前,都是在系统设置中,设置为目标语言,然后重启macOS系统。全过程一般需要一分钟左右。

而用下面这个命令,不需要重启macOS系统,可以轻松搞定单个App的语言设置。

可以在本地化支持多语言项目开发与测试中,节省很多时间。

我们的项目,需要支持16种语言,尤其是当文档组翻译完项目的字符串之后,尤其是测试组发现了本地化的Bug之后,这个命令就显得尤为重要了。

 

= = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = 

【macOS 单独给一个App进行语言设置】

defaults write com.microsoft.Word AppleLanguages '("zh_CN")'

= = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = 

defaults write com.polycom.PolycomCompanion AppleLanguages '("zh_CN")'

defaults write com.polycom.PolycomCompanion AppleLanguages '("pl")'

ar = Arabic

cs = Czech

da = Danish

de = German

el = Greek

en = English (US)

es = Spanish

fi = Finnish

fr = French

he = Hebrew

hu = Hungarian

id = Indonesian

it = Italian

ja = Japanese

ko = Korean

nl = Netherlands

no = Norwegian

pl = Polish

pt_PT = Portuguese

pt = Portuguese Brazil

ru = Russian

sk = Slovak

sv = Swedish

th = Thai

tr = Turkish

zh_CN = Chinese Simplified

zh_TW = Chinese Taiwan

你可能感兴趣的:(Mac,app,Apple,Dev,Apple,OS,X使用技巧,macOS,苹果电脑软件开发)