@masterteam/properties 0.0.55 → 0.0.56

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -1744,6 +1744,9 @@ class LocationConfiguration {
1744
1744
  facade = inject(PropertiesFacade);
1745
1745
  transloco = inject(TranslocoService);
1746
1746
  countries = this.facade.countries;
1747
+ activeLang = toSignal(this.transloco.langChanges$, {
1748
+ initialValue: this.transloco.getActiveLang(),
1749
+ });
1747
1750
  formConfig = computed(() => ({
1748
1751
  sections: [
1749
1752
  {
@@ -1759,7 +1762,7 @@ class LocationConfiguration {
1759
1762
  key: 'country',
1760
1763
  type: 'select',
1761
1764
  label: this.transloco.translate('properties.form.selectCountry'),
1762
- optionLabel: 'name',
1765
+ optionLabel: this.activeLang() === 'ar' ? 'name_ar' : 'name',
1763
1766
  optionValue: 'name',
1764
1767
  options: this.countries(),
1765
1768
  filter: true,