ELECTRON-519: support Japanese localization for menus, dialogs and windows (#401)

- add basic localisation implementation for menu items
- add more strings to support localisation on menus
- add more strings to support localisation on menus
- add all menu items for localisation
- refactor i18n code
- Add localization for screen picker, basic auth and notification settings child windows
- Add localization bridge
- add i18n support to more strings
- update translations
- add events to change language and redo menu template
- move config update logic to windowMgr
- fix linting issues and refactor
- add snipping tool messages
This commit is contained in:
Vishwas Shashidhar
2018-06-19 20:26:04 +05:30
committed by GitHub
parent fd39d680a0
commit a26a1d609c
23 changed files with 859 additions and 295 deletions

View File

@@ -303,6 +303,18 @@ function createAPI() {
*/
setIsInMeeting: function (isInMeeting) {
throttledSetIsInMeetingStatus(isInMeeting);
},
/**
* Sets the language which updates the application locale
* @param {string} locale - language identifier and a region identifier
* Ex: en-US, ja-JP
*/
setLocale: function (locale) {
local.ipcRenderer.send(apiName, {
cmd: apiCmds.setLocale,
locale,
});
}
};