Move to smartling for translation services

This commit is contained in:
Scott Nonnenberg
2022-09-27 14:01:06 -07:00
committed by GitHub
parent 620067342a
commit 5957c111cf
73 changed files with 1394 additions and 64465 deletions

View File

@@ -1740,7 +1740,7 @@ app.on('ready', async () => {
);
}
GlobalErrors.updateLocale(locale.messages);
GlobalErrors.updateLocale(locale);
// If the sql initialization takes more than three seconds to complete, we
// want to notify the user that things are happening
@@ -1888,7 +1888,7 @@ app.on('ready', async () => {
setupMenu();
systemTrayService = new SystemTrayService({ messages: locale.messages });
systemTrayService = new SystemTrayService({ i18n: locale.i18n });
systemTrayService.setMainWindow(mainWindow);
systemTrayService.setEnabled(
shouldMinimizeToSystemTray(await systemTraySettingCache.get())
@@ -1931,7 +1931,7 @@ function setupMenu(options?: Partial<CreateTemplateOptionsType>) {
// overrides
...options,
};
const template = createTemplate(menuOptions, getLocale().messages);
const template = createTemplate(menuOptions, getLocale().i18n);
const menu = Menu.buildFromTemplate(template);
Menu.setApplicationMenu(menu);