$ # Get the application bundle identifier
$ mdls -name kMDItemCFBundleIdentifier /Applications/QQ.app
kMDItemCFBundleIdentifier: "com.tencent.qq"
$ # Set the application language code (ISO 639-2)
$ defaults write com.tencent.qq AppleLanguages '("zh\_CN")'
References Link to heading
- segmentfault.com/a/1190000021394857
- developer.apple.com/library/archive/documentation/MacOSX/Conceptual/BPInternational/LanguageandLocaleIDs/LanguageandLocaleIDs.html
- developer.apple.com/library/archive/documentation/Cocoa/Conceptual/UserDefaults/AboutPreferenceDomains/AboutPreferenceDomains.html
- en.wikipedia.org/wiki/List_of_ISO_639-2_codes