From 6d02d8b6d0c21d0c614dd89051e1f353ecd59885 Mon Sep 17 00:00:00 2001 From: muhammedaltug Date: Wed, 11 Jan 2023 11:38:45 +0300 Subject: [PATCH 1/3] refresh app state when language change --- .../packages/core/src/lib/services/localization.service.ts | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/npm/ng-packs/packages/core/src/lib/services/localization.service.ts b/npm/ng-packs/packages/core/src/lib/services/localization.service.ts index 2ab3fbf73f..20425460e8 100644 --- a/npm/ng-packs/packages/core/src/lib/services/localization.service.ts +++ b/npm/ng-packs/packages/core/src/lib/services/localization.service.ts @@ -1,7 +1,7 @@ import { registerLocaleData } from '@angular/common'; import { Injectable, Injector, isDevMode, Optional, SkipSelf } from '@angular/core'; -import { BehaviorSubject, combineLatest, from, Observable, of, Subject } from 'rxjs'; -import { filter, map, mapTo, switchMap } from 'rxjs/operators'; +import { BehaviorSubject, combineLatest, from, Observable, Subject } from 'rxjs'; +import { filter, map, switchMap } from 'rxjs/operators'; import { ABP } from '../models/common'; import { LocalizationWithDefault } from '../models/localization'; import { @@ -133,7 +133,7 @@ export class LocalizationService { filter( lang => this.configState.getDeep('localization.currentCulture.cultureName') !== lang, ), - switchMap(lang => this.configState.refreshLocalization(lang).pipe(map(()=> lang))), + switchMap(lang => this.configState.refreshAppState().pipe(map(() => lang))), switchMap(lang => from(this.registerLocale(lang).then(() => lang))), ) .subscribe(lang => this._languageChange$.next(lang)); From 6e6520f0c6be09a3ab529de3a0bd052b70d7638b Mon Sep 17 00:00:00 2001 From: selman koc <64414348+skoc10@users.noreply.github.com> Date: Thu, 19 Jan 2023 09:24:10 +0300 Subject: [PATCH 2/3] Update common.props --- common.props | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/common.props b/common.props index f8b7c620c2..7c61191a7b 100644 --- a/common.props +++ b/common.props @@ -1,7 +1,7 @@ latest - 7.0.0 + 7.0.1 $(NoWarn);CS1591;CS0436 https://abp.io/assets/abp_nupkg.png https://abp.io/ From 2be2ceb66a98ba96147bfd1cc07b69cac61854bf Mon Sep 17 00:00:00 2001 From: muhammedaltug Date: Thu, 19 Jan 2023 12:38:27 +0300 Subject: [PATCH 3/3] add date key --- .../Volo/Abp/AuditLogging/Localization/en.json | 1 + .../Volo/Abp/AuditLogging/Localization/tr.json | 1 + 2 files changed, 2 insertions(+) diff --git a/modules/audit-logging/src/Volo.Abp.AuditLogging.Domain.Shared/Volo/Abp/AuditLogging/Localization/en.json b/modules/audit-logging/src/Volo.Abp.AuditLogging.Domain.Shared/Volo/Abp/AuditLogging/Localization/en.json index b37e3793c0..0a445a3b8c 100644 --- a/modules/audit-logging/src/Volo.Abp.AuditLogging.Domain.Shared/Volo/Abp/AuditLogging/Localization/en.json +++ b/modules/audit-logging/src/Volo.Abp.AuditLogging.Domain.Shared/Volo/Abp/AuditLogging/Localization/en.json @@ -14,6 +14,7 @@ "HasException": "Has Exception", "IpAddress": "IP Address", "Time": "Time", + "Date": "Date", "Duration": "Duration", "Detail": "Detail", "Overall": "Overall", diff --git a/modules/audit-logging/src/Volo.Abp.AuditLogging.Domain.Shared/Volo/Abp/AuditLogging/Localization/tr.json b/modules/audit-logging/src/Volo.Abp.AuditLogging.Domain.Shared/Volo/Abp/AuditLogging/Localization/tr.json index 72b93ad2f4..0a607401aa 100644 --- a/modules/audit-logging/src/Volo.Abp.AuditLogging.Domain.Shared/Volo/Abp/AuditLogging/Localization/tr.json +++ b/modules/audit-logging/src/Volo.Abp.AuditLogging.Domain.Shared/Volo/Abp/AuditLogging/Localization/tr.json @@ -43,6 +43,7 @@ "PropertyTypeFullName": "Property Türü", "ServiceName": "Servis", "Time": "Tarih", + "Date": "Tarih", "Url": "Url", "UserName": "Kullanıcı adı", "TenantImpersonator": "Kiracı Taklitçisi",