From 9112b90712832e5778fafd90a74f5f62271afff8 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Elis=C3=A9e=20Maurer?= Date: Sun, 24 Jan 2016 22:08:58 +0100 Subject: [PATCH 1/2] github-electron: Add app.getLocale() --- github-electron/github-electron.d.ts | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/github-electron/github-electron.d.ts b/github-electron/github-electron.d.ts index a02a1edb6..ef870d5af 100644 --- a/github-electron/github-electron.d.ts +++ b/github-electron/github-electron.d.ts @@ -1022,6 +1022,10 @@ declare module Electron { * name by Electron. */ getName(): string; + /** + * @returns The current application locale. + **/ + getLocale(): string; /** * Resolves the proxy information for url, the callback would be called with * callback(proxy) when the request is done. From 014238e73c35b368ada23c9d8e5c5a7930f084b7 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Elis=C3=A9e=20Maurer?= Date: Mon, 25 Jan 2016 13:01:52 +0100 Subject: [PATCH 2/2] github-electron: Add test for app.getLocale() --- github-electron/github-electron-main-tests.ts | 3 +++ 1 file changed, 3 insertions(+) diff --git a/github-electron/github-electron-main-tests.ts b/github-electron/github-electron-main-tests.ts index cf0bee0ec..1d672cc25 100644 --- a/github-electron/github-electron-main-tests.ts +++ b/github-electron/github-electron-main-tests.ts @@ -111,6 +111,9 @@ app.on('ready', () => { mainWindow.webContents.printToPDF({}, (err, data) => {}); }); +// Locale +app.getLocale(); + // Desktop environment integration // https://github.com/atom/electron/blob/master/docs/tutorial/desktop-environment-integration.md