Skip to content

Commit

Permalink
Add position translation
Browse files Browse the repository at this point in the history
  • Loading branch information
Mariazel Hernández authored and Mariazel Hernández committed Oct 11, 2023
1 parent 779f2a7 commit b84dae4
Show file tree
Hide file tree
Showing 4 changed files with 5,028 additions and 4 deletions.
4 changes: 2 additions & 2 deletions src/web/src/components/EmployeeDetail.vue
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,7 @@
{{ item.formatted_name }}
</h2>
<h3 v-if="checkStatus(item.title)" class="mb-8" style="color: #512a44 !important; font-size: 24px !important">
{{ item.title }}
{{$t('components.positions_api')[item.title] ? $t('components.positions_api')[item.title] : item.title }}
</h3>

<v-card class="my-5 py-1 pb-3 px-5 employee-detail" elevation="1">
Expand All @@ -41,7 +41,7 @@
<h3 class="mb-0">
{{ $t("components.employee_details.organization.department") }} :
<a :href="generateUrl('department', 'n/a', 'n/a')">
{{$t('components.departments_api')[item.department] ? $t('components.departments_api')[item.department] : item.name }}
{{$t('components.departments_api')[item.department] ? $t('components.departments_api')[item.department] : item.department }}
</a>
</h3>
</v-col>
Expand Down
4 changes: 2 additions & 2 deletions src/web/src/components/UI/EmployeesGrid.vue
Original file line number Diff line number Diff line change
Expand Up @@ -22,8 +22,8 @@
<label class="full-name">{{ item.formatted_name }}</label>
</a>
</td>
<td v-if="divisions === false" class="default-cursor"> {{ item.division }} </td>
<td class="default-cursor"> {{ item.title }} </td>
<td class="default-cursor"> {{$t('components.positions_api')[item.title] ? $t('components.positions_api')[item.title] : item.title }} </td>
<td v-if="divisions === false" class="default-cursor"> {{ ($t('components.divisions_api')[item.division]) ? $t('components.divisions_api')[item.division] : item.division }} </td>
<td class="default-cursor"> {{ item.email }}</td>
<td class="default-cursor"> <a :href="getPhone(item.phone_office)"
:class="{ telephone: check === true, 'telephone-desktop': check === false }"> {{
Expand Down
Loading

0 comments on commit b84dae4

Please sign in to comment.