diff --git a/github-electron/github-electron-main-tests.ts b/github-electron/github-electron-main-tests.ts index 2d6385d63..e88926d58 100644 --- a/github-electron/github-electron-main-tests.ts +++ b/github-electron/github-electron-main-tests.ts @@ -108,6 +108,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 diff --git a/github-electron/github-electron.d.ts b/github-electron/github-electron.d.ts index a945ea847..4351b5aa1 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.