Skip to content

Commit

Permalink
Merge pull request #676 from CrisisCleanup/localizations
Browse files Browse the repository at this point in the history
Update localizations
  • Loading branch information
tabiodun authored Feb 7, 2024
2 parents a7824ed + 457a4bf commit 493dd99
Show file tree
Hide file tree
Showing 6 changed files with 19 additions and 16 deletions.
21 changes: 12 additions & 9 deletions src/components/WorksiteFeed.vue
Original file line number Diff line number Diff line change
Expand Up @@ -27,23 +27,26 @@
/>
</div>
<div class="text-crisiscleanup-dark-500">
{{ completionPercentage }}% {{ $t('~~Complete') }}
{{ completionPercentage }}% {{ $t('worksiteFeed.complete') }}
</div>
</div>
</div>
<div v-if="claimedByOrg" class="mb-5">
<div class="bg-primary-light w-fit py-1 px-4 rounded-full">
{{ $t('~~Claimed By Your Org') }}
{{ $t('caseView.claimed_by_my_org') }}
</div>
</div>
<div class="text-crisiscleanup-dark-400 mb-3">
<div class="font-bold">{{ $t('~~Contact') }}</div>
<div class="font-bold">{{ $t('worksiteFeed.contact') }}</div>
<div>
<font-awesome-icon icon="user" :alt="$t('~~User')" />
<font-awesome-icon icon="user" :alt="$t('worksiteFeed.user')" />
{{ currentFeedItem.name }}
</div>
<div>
<font-awesome-icon icon="phone" :alt="$t('~~Phone Number')" />
<font-awesome-icon
icon="phone"
:alt="$t('formLabels.phone1')"
/>
<a
:href="`tel:${currentFeedItem.phone1}`"
class="ml-1 underline text-crisiscleanup-dark-blue"
Expand All @@ -53,7 +56,7 @@
</div>
</div>
<div class="mb-3">
<div class="font-bold">{{ $t('~~Work Types') }}</div>
<div class="font-bold">{{ $t('formLabels.work_types') }}</div>
<div class="flex flex-wrap">
<template
v-for="workType in currentFeedItem.work_types"
Expand Down Expand Up @@ -140,22 +143,22 @@
class="h-10 text-white bg-crisiscleanup-dark-400 hover:bg-gray-400 px-3 py-2 rounded-l-md border border-r-0 border-gray-400 transition duration-300 ease-in-out focus:outline-none"
>
<font-awesome-icon :icon="['fas', 'arrow-left']" class="mr-1" />
{{ $t('~~PREV') }}
{{ $t('worksiteFeed.prev') }}
</base-button>

<base-button
class="bg-primary-light px-5 py-2 border border-black transition duration-300 ease-in-out focus:outline-none rounded h-12"
:action="() => $emit('loadCase', currentFeedItem)"
>
{{ $t('~~VIEW') }}
{{ $t('worksiteFeed.view') }}
</base-button>

<base-button
:action="nextFeedItem"
:disabled="currentFeedItemIndex === worksites.length - 1"
class="h-10 text-white bg-crisiscleanup-dark-400 hover:bg-gray-400 px-3 py-2 rounded-r-md border border-l-0 border-gray-400 transition duration-300 ease-in-out focus:outline-none"
>
{{ $t('~~NEXT') }}
{{ $t('worksiteFeed.next') }}
<font-awesome-icon :icon="['fas', 'arrow-right']" class="ml-1" />
</base-button>
</div>
Expand Down
2 changes: 1 addition & 1 deletion src/components/modals/InviteUsers.vue
Original file line number Diff line number Diff line change
Expand Up @@ -89,7 +89,7 @@
:model-value="organizationDoesNotExist"
@update:model-value="organizationDoesNotExist = $event"
>
{{ $t('~~Organization is not listed') }}
{{ $t('inviteTeammates.org_not_listed') }}
</base-checkbox>
</div>
</div>
Expand Down
2 changes: 1 addition & 1 deletion src/components/phone/Agent.vue
Original file line number Diff line number Diff line change
Expand Up @@ -75,7 +75,7 @@
data-testid="notPlayingNiceCheckbox"
class="p-0.5 ml-3 text-[["
><span class="whitespace-nowrap">{{
$t('~~Not Playing Nice?')
$t('phoneDashboard.not_playing_nice')
}}</span></base-checkbox
>
<base-select
Expand Down
2 changes: 1 addition & 1 deletion src/pages/admin/AdminRAG.vue
Original file line number Diff line number Diff line change
Expand Up @@ -309,7 +309,7 @@ const configTabs: Tab[] = [{ key: 'conversation' }, { key: 'files' }];
class="flex justify-center py-2 transition-all cursor-pointer conversation__new"
>
<ccu-icon
:alt="$t('~~New Conversation')"
:alt="$t('adminRAG.new_conversation')"
type="active"
with-text
size="lg"
Expand Down
2 changes: 1 addition & 1 deletion src/pages/lists/AddToList.vue
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@
v-if="userLists.length === 0"
class="italic text-crisiscleanup-dark-100"
>
{{ $t('~~No lists found.') }}
{{ $t('list.no_lists_found') }}
</div>
</div>
</template>
Expand Down
6 changes: 3 additions & 3 deletions src/pages/lists/List.vue
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,7 @@
searchable
item-key="id"
label="name"
:placeholder="$t('~~Select Incident')"
:placeholder="$t('actions.select_incident')"
/>

<!-- Save Changes Button -->
Expand All @@ -41,7 +41,7 @@
variant="solid"
class="w-full p-3"
:action="updateList"
>{{ $t('~~Save Changes') }}</BaseButton
>{{ $t('actions.save') }}</BaseButton
>
</form>

Expand Down Expand Up @@ -110,7 +110,7 @@
class="mt-2 w-full p-3"
:disabled="!selectedItemId"
:action="() => addItem(selectedItemId)"
>{{ $t('~~Add Item') }}</BaseButton
>{{ $t('actions.add') }}</BaseButton
>
</div>
Expand Down

0 comments on commit 493dd99

Please sign in to comment.