From 1018cdc225f53c8891e32989fcae5591dea90dc6 Mon Sep 17 00:00:00 2001 From: Shelley Vohr Date: Thu, 8 Feb 2018 11:49:28 -0500 Subject: [PATCH] move locale doc to command line switches --- docs/api/app.md | 6 ------ docs/api/chrome-command-line-switches.md | 4 ++++ 2 files changed, 4 insertions(+), 6 deletions(-) diff --git a/docs/api/app.md b/docs/api/app.md index 78f22127fd79..04ba49b729d7 100644 --- a/docs/api/app.md +++ b/docs/api/app.md @@ -530,12 +530,6 @@ Returns `String` - The current application locale. Possible return values are do **Note:** On Windows you have to call it after the `ready` events gets emitted. -### `app.setLocale(locale)` - -* `locale` String - -Set the locale of the app (must be called before the `ready` event). - ### `app.addRecentDocument(path)` _macOS_ _Windows_ * `path` String diff --git a/docs/api/chrome-command-line-switches.md b/docs/api/chrome-command-line-switches.md index f3e189fdf43c..09c24f6c195b 100644 --- a/docs/api/chrome-command-line-switches.md +++ b/docs/api/chrome-command-line-switches.md @@ -28,6 +28,10 @@ Disables the disk cache for HTTP requests. Disable HTTP/2 and SPDY/3.1 protocols. +## --lang + +Set a custom locale. + ## --inspect=`port` and --inspect-brk=`port` Debug-related flags, see the [Debugging the Main Process][debugging-main-process] guide for details.