aboutsummaryrefslogtreecommitdiffstats
path: root/src/stores
diff options
context:
space:
mode:
Diffstat (limited to 'src/stores')
-rw-r--r--src/stores/AppStore.js3
-rw-r--r--src/stores/ServicesStore.js4
2 files changed, 4 insertions, 3 deletions
diff --git a/src/stores/AppStore.js b/src/stores/AppStore.js
index 1d706f1ef..180f01af6 100644
--- a/src/stores/AppStore.js
+++ b/src/stores/AppStore.js
@@ -24,6 +24,7 @@ import {
24 electronVersion, 24 electronVersion,
25 osRelease, 25 osRelease,
26 userDataPath, 26 userDataPath,
27 ferdiLocale,
27} from '../environment'; 28} from '../environment';
28import locales from '../i18n/translations'; 29import locales from '../i18n/translations';
29import { onVisibilityChange } from '../helpers/visibility-helper'; 30import { onVisibilityChange } from '../helpers/visibility-helper';
@@ -509,7 +510,7 @@ export default class AppStore extends Store {
509 510
510 _getDefaultLocale() { 511 _getDefaultLocale() {
511 return getLocale({ 512 return getLocale({
512 locale: app.getLocale(), 513 locale: ferdiLocale,
513 locales, 514 locales,
514 defaultLocale, 515 defaultLocale,
515 fallbackLocale: DEFAULT_APP_SETTINGS.fallbackLocale, 516 fallbackLocale: DEFAULT_APP_SETTINGS.fallbackLocale,
diff --git a/src/stores/ServicesStore.js b/src/stores/ServicesStore.js
index 4ccb995ae..2ec6a0a68 100644
--- a/src/stores/ServicesStore.js
+++ b/src/stores/ServicesStore.js
@@ -2,7 +2,6 @@ import { shell } from 'electron';
2import { action, reaction, computed, observable } from 'mobx'; 2import { action, reaction, computed, observable } from 'mobx';
3import { debounce, remove } from 'lodash'; 3import { debounce, remove } from 'lodash';
4import ms from 'ms'; 4import ms from 'ms';
5import { app } from '@electron/remote';
6import { ensureFileSync, pathExistsSync, writeFileSync } from 'fs-extra'; 5import { ensureFileSync, pathExistsSync, writeFileSync } from 'fs-extra';
7import { join } from 'path'; 6import { join } from 'path';
8 7
@@ -18,6 +17,7 @@ import {
18import { workspaceStore } from '../features/workspaces'; 17import { workspaceStore } from '../features/workspaces';
19import { KEEP_WS_LOADED_USID } from '../config'; 18import { KEEP_WS_LOADED_USID } from '../config';
20import { SPELLCHECKER_LOCALES } from '../i18n/languages'; 19import { SPELLCHECKER_LOCALES } from '../i18n/languages';
20import { ferdiVersion } from '../environment';
21 21
22const debug = require('debug')('Ferdi:ServiceStore'); 22const debug = require('debug')('Ferdi:ServiceStore');
23 23
@@ -1149,7 +1149,7 @@ export default class ServicesStore extends Store {
1149 'initialize-recipe', 1149 'initialize-recipe',
1150 { 1150 {
1151 ...shareWithWebview, 1151 ...shareWithWebview,
1152 franzVersion: app.getVersion(), 1152 franzVersion: ferdiVersion,
1153 }, 1153 },
1154 service.recipe, 1154 service.recipe,
1155 ); 1155 );