update locale documentation (#12967)

This commit is contained in:
Shelley Vohr 2018-05-17 10:34:54 -07:00 committed by GitHub
parent d2653e8192
commit 83993fede8
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -561,8 +561,9 @@ Overrides the current application's name.
### `app.getLocale()`
Returns `String` - The current application locale. Possible return values are documented
[here](locales.md).
Returns `String` - The current application locale. Possible return values are documented [here](locales.md).
To set the locale, you'll want to use a command line switch at app startup, which may be found [here](https://github.com/electron/electron/blob/master/docs/api/chrome-command-line-switches.md).
**Note:** When distributing your packaged app, you have to also ship the
`locales` folder.