Browse Source
Merge pull request #8610 from abpframework/fix/8070
fix: currentLang returning null when sessionState is not ready
pull/8617/head
Mehmet Erim
6 years ago
committed by
GitHub
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with
1 additions and
1 deletions
-
npm/ng-packs/packages/core/src/lib/services/localization.service.ts
|
|
|
@ -22,7 +22,7 @@ export class LocalizationService { |
|
|
|
* Returns currently selected language |
|
|
|
*/ |
|
|
|
get currentLang(): string { |
|
|
|
return this.latestLang; |
|
|
|
return this.latestLang || this.sessionState.getLanguage(); |
|
|
|
} |
|
|
|
|
|
|
|
get languageChange$(): Observable<string> { |
|
|
|
|