Skip to content

Commit

Permalink
Improved: code for translation in find details and added translation …
Browse files Browse the repository at this point in the history
…for that statis text
  • Loading branch information
Ritika-Patel08 committed Jan 10, 2024
1 parent 60299ad commit dd769d5
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 1 deletion.
1 change: 1 addition & 0 deletions src/locales/en.json
Original file line number Diff line number Diff line change
Expand Up @@ -197,6 +197,7 @@
"Logging in": "Logging in",
"Logging out": "Logging out",
"Login": "Login",
"logins":"{facilitytype} logins",
"Login failed": "Login failed",
"Logout": "Logout",
"Longitude": "Longitude",
Expand Down
2 changes: 1 addition & 1 deletion src/views/FacilityDetails.vue
Original file line number Diff line number Diff line change
Expand Up @@ -256,7 +256,7 @@
<ion-card>
<ion-card-header>
<ion-card-title>
{{ facilityTypes[current.facilityTypeId]?.description ? translate(`${facilityTypes[current.facilityTypeId]?.description} logins`) : '' }}
{{ facilityTypes[current.facilityTypeId]?.description ? translate(`${facilityTypes[current.facilityTypeId]?.description} logins`) : translate('logins',{ facilitytype:`${current.facilityTypeId}` }) }}
</ion-card-title>
<ion-button v-if="current.facilityLogins?.length" @click="createFacilityLoginModal()" fill="clear">
<ion-icon :icon="addCircleOutline" slot="end" />
Expand Down

0 comments on commit dd769d5

Please sign in to comment.