mirror of
https://github.com/wassname/DefinitelyTyped.git
synced 2026-08-20 12:00:53 +08:00
Merge pull request #7765 from elisee/patch-2
github-electron: Add app.getLocale()
This commit is contained in:
@@ -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
|
||||
|
||||
|
||||
Vendored
+4
@@ -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.
|
||||
|
||||
Reference in New Issue
Block a user