Skip to content

Commit

Permalink
Fixed address field in queries, and added translationdata
Browse files Browse the repository at this point in the history
  • Loading branch information
Anubhav-2003 committed Jan 23, 2024
1 parent 2bd110e commit 79bd263
Show file tree
Hide file tree
Showing 6 changed files with 104 additions and 5 deletions.
18 changes: 18 additions & 0 deletions public/locales/fr.json
Original file line number Diff line number Diff line change
Expand Up @@ -127,6 +127,15 @@
"createSampleOrganization": "Créer une organisation d'exemple",
"description": "La description",
"location": "Emplacement",
"address": "Adresse",
"city": "Ville",
"countryCode": "Code Pays",
"line1": "Ligne 1",
"line2": "Ligne 2",
"postalCode": "Code Postal",
"dependentLocality": "Localité Dépendante",
"sortingCode": "Code de Tri",
"state": "État / Province",
"userRegistrationRequired": "enregistrement requis",
"visibleInSearch": "Visible dans la recherche",
"displayImage": "Afficher l'image",
Expand Down Expand Up @@ -484,6 +493,15 @@
"name": "Nom",
"description": "La description",
"location": "emplacement",
"address": "Adresse",
"city": "Ville",
"countryCode": "Code Pays",
"line1": "Ligne 1",
"line2": "Ligne 2",
"postalCode": "Code Postal",
"dependentLocality": "Localité Dépendante",
"sortingCode": "Code de Tri",
"state": "État / Province",
"displayImage": "Afficher l'image",
"userRegistrationRequired": "enregistrement requis",
"isVisibleInSearch": "Visible dans la recherche",
Expand Down
18 changes: 18 additions & 0 deletions public/locales/hi.json
Original file line number Diff line number Diff line change
Expand Up @@ -127,6 +127,15 @@
"createSampleOrganization": " सैंपल संगठन बनाएं",
"description": "विवरण",
"location": "स्थान",
"address": "पता",
"city": "शहर",
"countryCode": "देश कोड",
"line1": "लाइन 1",
"line2": "लाइन 2",
"postalCode": "पोस्टल कोड",
"dependentLocality": "आश्रित स्थान",
"sortingCode": "क्रमबद्ध कोड",
"state": "राज्य / प्रांत",
"userRegistrationRequired": "उपयोगकर्ता पंजीकरण आवश्यक",
"visibleInSearch": "खोज में दृश्यमान",
"displayImage": "प्रदर्शन छवि",
Expand Down Expand Up @@ -483,6 +492,15 @@
"name": "नाम",
"description": "विवरण",
"location": "जगह",
"address": "पता",
"city": "शहर",
"countryCode": "देश कोड",
"line1": "लाइन 1",
"line2": "लाइन 2",
"postalCode": "पोस्टल कोड",
"dependentLocality": "आश्रित स्थान",
"sortingCode": "क्रमबद्ध कोड",
"state": "राज्य / प्रांत",
"displayImage": "प्रदर्शन छवि",
"userRegistrationRequired": "उपयोगकर्ता पंजीकरण आवश्यक",
"isVisibleInSearch": "खोज में दिखाए जा सकते हैं",
Expand Down
18 changes: 18 additions & 0 deletions public/locales/sp.json
Original file line number Diff line number Diff line change
Expand Up @@ -127,6 +127,15 @@
"createSampleOrganization": "Crear organización de muestra",
"description": "Descripción",
"location": "Ubicación",
"address": "Dirección",
"city": "Ciudad",
"countryCode": "Código de País",
"line1": "Línea 1",
"line2": "Línea 2",
"postalCode": "Código Postal",
"dependentLocality": "Localidad Dependiente",
"sortingCode": "Código de Ordenamiento",
"state": "Estado / Provincia",
"userRegistrationRequired": "Registro de usuario requerido",
"visibleInSearch": "Visible en la búsqueda",
"displayImage": "Mostrar imagen",
Expand Down Expand Up @@ -483,6 +492,15 @@
"name": "Nombre",
"description": "Descripción",
"location": "ubicación",
"address": "Dirección",
"city": "Ciudad",
"countryCode": "Código de País",
"line1": "Línea 1",
"line2": "Línea 2",
"postalCode": "Código Postal",
"dependentLocality": "Localidad Dependiente",
"sortingCode": "Código de Ordenamiento",
"state": "Estado / Provincia",
"displayImage": "Mostrar imagen",
"userRegistrationRequired": "Registro de usuario requerido",
"isVisibleInSearch": "Visible en la búsqueda",
Expand Down
18 changes: 18 additions & 0 deletions public/locales/zh.json
Original file line number Diff line number Diff line change
Expand Up @@ -127,6 +127,15 @@
"createSampleOrganization": "创建示范组织",
"description": "描述",
"location": "地點",
"address": "地址",
"city": "城市",
"countryCode": "国家代码",
"line1": "地址行 1",
"line2": "地址行 2",
"postalCode": "邮政编码",
"dependentLocality": "从属地区",
"sortingCode": "排序代码",
"state": "省 / 直辖市",
"isPubluserRegistrationRequiredic": "需要用户注册",
"visibleInSearch": "在搜索中可見",
"displayImage": "顯示圖像",
Expand Down Expand Up @@ -483,6 +492,15 @@
"name": "姓名",
"description": "描述",
"location": "地點",
"address": "地址",
"city": "城市",
"countryCode": "国家代码",
"line1": "地址行 1",
"line2": "地址行 2",
"postalCode": "邮政编码",
"dependentLocality": "从属地区",
"sortingCode": "排序代码",
"state": "省 / 直辖市",
"displayImage": "顯示圖像",
"userRegistrationRequired": "需要用户注册",
"isVisibleInSearch": "在搜索中可见",
Expand Down
33 changes: 30 additions & 3 deletions src/GraphQl/Queries/Queries.ts
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,16 @@ export const ORGANIZATION_LIST = gql`
_id
}
createdAt
address
address {
city
countryCode
dependentLocality
line1
line2
postalCode
sortingCode
state
}
}
}
`;
Expand Down Expand Up @@ -112,7 +121,16 @@ export const USER_LIST = gql`
_id
name
image
address
address {
city
countryCode
dependentLocality
line1
line2
postalCode
sortingCode
state
}
createdAt
creator {
_id
Expand All @@ -127,7 +145,16 @@ export const USER_LIST = gql`
_id
name
image
address
address {
city
countryCode
dependentLocality
line1
line2
postalCode
sortingCode
state
}
createdAt
creator {
_id
Expand Down
4 changes: 2 additions & 2 deletions src/components/UsersTableItem/UsersTableItem.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -317,7 +317,7 @@ const UsersTableItem = (props: Props): JSX.Element => {
{org.name}
</Button>
</td>
<td>{org.address.city}</td>
{org.address && <td>{org.address.city}</td>}
<td>{dayjs(org.createdAt).format('DD-MM-YYYY')}</td>
<td>
<Button
Expand Down Expand Up @@ -494,7 +494,7 @@ const UsersTableItem = (props: Props): JSX.Element => {
{org.name}
</Button>
</td>
<td>{org.address.city}</td>
{org.address && <td>{org.address.city}</td>}
<td>{dayjs(org.createdAt).format('DD-MM-YYYY')}</td>
<td>
<Button
Expand Down

0 comments on commit 79bd263

Please sign in to comment.