Merge pull request #7765 from elisee/patch-2

github-electron: Add app.getLocale()
This commit is contained in:
Horiuchi_H
2016-01-26 11:22:02 +09:00
2 changed files with 7 additions and 0 deletions
@@ -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
+4
View File
@@ -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.