Browse Source
Merge pull request #25869 from abpframework/auto-merge/rel-10-6/4730
Merge branch dev with rel-10.6
pull/25870/head
Volosoft Agent
2 months ago
committed by
GitHub
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
1 changed files with
1 additions and
1 deletions
-
npm/ng-packs/packages/core/src/lib/providers/cookie-language.provider.ts
|
|
|
@ -14,7 +14,7 @@ export function setLanguageToCookie() { |
|
|
|
const cookieLanguageKey = injector.get(COOKIE_LANGUAGE_KEY); |
|
|
|
sessionState.getLanguage$().subscribe(language => { |
|
|
|
const cookieValue = encodeURIComponent(`c=${language}|uic=${language}`); |
|
|
|
document.cookie = `${cookieLanguageKey}=${cookieValue}`; |
|
|
|
document.cookie = `${cookieLanguageKey}=${cookieValue}; path=/`; |
|
|
|
}); |
|
|
|
} |
|
|
|
|
|
|
|
|