update locale documentation (#12967)
This commit is contained in:
parent
d2653e8192
commit
83993fede8
1 changed files with 3 additions and 2 deletions
|
@ -561,8 +561,9 @@ Overrides the current application's name.
|
||||||
|
|
||||||
### `app.getLocale()`
|
### `app.getLocale()`
|
||||||
|
|
||||||
Returns `String` - The current application locale. Possible return values are documented
|
Returns `String` - The current application locale. Possible return values are documented [here](locales.md).
|
||||||
[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
|
**Note:** When distributing your packaged app, you have to also ship the
|
||||||
`locales` folder.
|
`locales` folder.
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue