Skip to content

Commit

Permalink
chore: add users selected currency in the session logs
Browse files Browse the repository at this point in the history
  • Loading branch information
N3TC4T committed Oct 12, 2023
1 parent 551578f commit 7573edf
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions src/app.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -48,7 +48,7 @@ class Application {

constructor() {
this.storage = new DataStorage();
this.logger = services.LoggerService.createLogger('Application');
this.logger = services.LoggerService.createLogger('App');
this.initialized = false;
}

Expand Down Expand Up @@ -237,11 +237,11 @@ class Application {

// if there is a language set in the settings load the setting base on the settings
if (core?.language) {
this.logger.debug(`Locale set to: ${core.language.toUpperCase()}`);
this.logger.debug(`Settings [Locale]/[Currency]: ${core.language.toUpperCase()}/${core.currency}`);
Localize.setLocale(core.language, core.useSystemSeparators ? localeSettings : undefined);
} else {
// app is not initialized yet, set to default device locale
this.logger.debug('Locale is not initialized, setting base on device languageCode');
this.logger.debug('Locale is not initialized, setting base on device settings');
const locale = Localize.setLocale(localeSettings.languageCode, localeSettings);
CoreRepository.saveSettings({ language: locale });
}
Expand Down

0 comments on commit 7573edf

Please sign in to comment.