Skip to content

Commit 52a44fa

Browse files
trop[bot]ckerr
authored andcommitted
update locale documentation (electron#13027)
1 parent 5acb7a0 commit 52a44fa

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

docs/api/app.md

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -531,8 +531,9 @@ Overrides the current application's name.
531531

532532
### `app.getLocale()`
533533

534-
Returns `String` - The current application locale. Possible return values are documented
535-
[here](locales.md).
534+
Returns `String` - The current application locale. Possible return values are documented [here](locales.md).
535+
536+
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).
536537

537538
**Note:** When distributing your packaged app, you have to also ship the
538539
`locales` folder.

0 commit comments

Comments
 (0)