Recurring Deposit products with i18n

This commit is contained in:
Jose Alberto Hernandez
2024-04-20 12:37:00 -06:00
committed by Jose Alberto Hernandez
parent 64758cb847
commit 6ef471d7c0
49 changed files with 889 additions and 724 deletions
+7 -10
View File
@@ -126,15 +126,14 @@ export class WebAppComponent implements OnInit {
*
* 3) Page Title
*
* 4) Theme
*
* 5) Alerts
* 4) Alerts
*/
ngOnInit() {
this.themingService.theme.subscribe((value: string) => {
this.cssClass = value;
});
this.themingService.setInitialDarkMode();
this.themingService.setDarkMode((this.settingsService.themeDarkEnabled === 'true'));
// Setup logger
if (environment.production) {
@@ -144,7 +143,11 @@ export class WebAppComponent implements OnInit {
// Setup translations
this.translateService.addLangs(environment.supportedLanguages.split(','));
this.translateService.use(environment.defaultLanguage);
if (this.settingsService.language) {
this.translateService.use(this.settingsService.languageCode);
} else {
this.translateService.use(environment.defaultLanguage);
}
this.i18nService = new I18nService(this.translateService);
@@ -185,12 +188,6 @@ export class WebAppComponent implements OnInit {
localStorage.setItem('mifosXLocation', JSON.stringify(activities));
});
// Setup theme
const theme = this.themeStorageService.getTheme();
if (theme) {
this.themeStorageService.installTheme(theme);
}
// Setup alerts
this.alertService.alertEvent.subscribe((alertEvent: Alert) => {
this.snackBar.open(`${alertEvent.message}`, 'Close', {