export the active culture as an observable part

This commit is contained in:
Jacob Overgaard
2024-02-21 12:59:55 +01:00
parent 8cdb6832d8
commit 236c8248fa

View File

@@ -11,6 +11,7 @@ export class UmbAppLanguageContext extends UmbBaseController implements UmbApi {
#languages: Array<UmbLanguageDetailModel> = [];
#appLanguage = new UmbObjectState<UmbLanguageDetailModel | undefined>(undefined);
appLanguage = this.#appLanguage.asObservable();
appLanguageCulture = this.#appLanguage.asObservablePart((x) => x?.unique);
constructor(host: UmbControllerHost) {
super(host);