@masterteam/properties 0.0.55 → 0.0.57

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.
@@ -23,7 +23,9 @@
23
23
  "typeUser": "مستخدم",
24
24
  "typeNumber": "رقم",
25
25
  "typeCurrency": "عملة",
26
- "typeLookup": "قائمة"
26
+ "typeLookup": "قائمة",
27
+ "yes": "نعم",
28
+ "no": "لا"
27
29
  },
28
30
  "form": {
29
31
  "cancelButton": "إلغاء",
@@ -108,4 +110,4 @@
108
110
  "statusFormula": "المعادلة"
109
111
  }
110
112
  }
111
- }
113
+ }
@@ -23,7 +23,9 @@
23
23
  "typeUser": "User",
24
24
  "typeNumber": "Number",
25
25
  "typeCurrency": "Currency",
26
- "typeLookup": "Lookup"
26
+ "typeLookup": "Lookup",
27
+ "yes": "Yes",
28
+ "no": "No"
27
29
  },
28
30
  "form": {
29
31
  "createNewProperty": "Create New Property",
@@ -108,4 +110,4 @@
108
110
  "statusFormula": "Formula"
109
111
  }
110
112
  }
111
- }
113
+ }
@@ -1136,8 +1136,14 @@ class PropertiesList {
1136
1136
  type: 'select',
1137
1137
  label: this.transloco.translate('properties.list.columnCalculated'),
1138
1138
  options: [
1139
- { label: 'Yes', value: true },
1140
- { label: 'No', value: false },
1139
+ {
1140
+ label: this.transloco.translate('properties.list.yes'),
1141
+ value: true,
1142
+ },
1143
+ {
1144
+ label: this.transloco.translate('properties.list.no'),
1145
+ value: false,
1146
+ },
1141
1147
  ],
1142
1148
  },
1143
1149
  },
@@ -1744,6 +1750,9 @@ class LocationConfiguration {
1744
1750
  facade = inject(PropertiesFacade);
1745
1751
  transloco = inject(TranslocoService);
1746
1752
  countries = this.facade.countries;
1753
+ activeLang = toSignal(this.transloco.langChanges$, {
1754
+ initialValue: this.transloco.getActiveLang(),
1755
+ });
1747
1756
  formConfig = computed(() => ({
1748
1757
  sections: [
1749
1758
  {
@@ -1759,7 +1768,7 @@ class LocationConfiguration {
1759
1768
  key: 'country',
1760
1769
  type: 'select',
1761
1770
  label: this.transloco.translate('properties.form.selectCountry'),
1762
- optionLabel: 'name',
1771
+ optionLabel: this.activeLang() === 'ar' ? 'name_ar' : 'name',
1763
1772
  optionValue: 'name',
1764
1773
  options: this.countries(),
1765
1774
  filter: true,