Electron mac sdk default language ?


#1

how to set default language ?

setCustomBundlePath api does not work!
what’s param of the setPreferLanguage api ?
getLanguageArray return empty array !

mark: latest sdk


#2
  1. The setCustomBundlePath api has deprecated
  2. Call getLanguageArray api will return the supported languages array, return empty means your app support no language
  3. Before call setPreferLanguage, you need call getLanguageArray first. The param is the supported language in languages array.
  4. Note, you need put the resource files in the standard path “***.app/Contents/Resources” and the file name need be Localizable.strings