Skip to content

Commit

Permalink
fix(bridge-ui): add missing labels to i18n (#16633)
Browse files Browse the repository at this point in the history
Co-authored-by: Korbinian <[email protected]>
  • Loading branch information
datznt and KorbinianK authored Apr 4, 2024
1 parent 2581772 commit 3854467
Show file tree
Hide file tree
Showing 4 changed files with 12 additions and 5 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -90,7 +90,7 @@
{#if displayedRecipient}
{shortenAddress(displayedRecipient, 8, 10)}
{#if displayedRecipient !== $account?.address}
<span class="text-primary-link">| Customized</span>
<span class="text-primary-link">| {$t('common.customized')}</span>
{/if}
{:else}
{$t('recipient.placeholder')}
Expand Down
6 changes: 4 additions & 2 deletions packages/bridge-ui/src/components/Paginator/Paginator.svelte
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
<script lang="ts">
import { createEventDispatcher } from 'svelte';
import { t } from 'svelte-i18n';
import { Icon } from '$components/Icon';
Expand Down Expand Up @@ -41,7 +42,7 @@
<!-- Button to go to previous page -->
<button class={btnClass} on:click={() => goToPage(currentPage - 1)}> <Icon type="chevron-left" /></button>
{/if}
Page
{$t('paginator.page')}
<input
type="number"
class="form-control mx-1 text-center rounded-md py-1 px-8"
Expand All @@ -50,7 +51,8 @@
max={totalPages}
on:keydown={handleKeydown}
on:blur={() => goToPage(currentPage)} />
of {totalPages}
{$t('paginator.of')}
{totalPages}
<!-- Button to go to next page -->
{#if !isLastPage}
<button class={btnClass} on:click={() => goToPage(currentPage + 1)}><Icon type="chevron-right" /></button>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -49,7 +49,7 @@
</div>
<div class="h-sep mt-[20px] mb-0" />
<div class="w-full px-[24px] my-[20px]">
<ActionButton priority="primary" on:click={closeMenu}>See results</ActionButton>
<ActionButton priority="primary" on:click={closeMenu}>{$t('common.see_results')}</ActionButton>
</div>
</div>
<button class="overlay-backdrop" on:click={closeMenu} />
Expand Down
7 changes: 6 additions & 1 deletion packages/bridge-ui/src/i18n/en.json
Original file line number Diff line number Diff line change
Expand Up @@ -246,7 +246,8 @@
"symbol": "Symbol",
"to": "To",
"token_id": "Token ID",
"token_standard": "Token standard"
"token_standard": "Token standard",
"see_results": "See results"
},
"custom_recipient": {
"placeholder": "Add custom recipient"
Expand Down Expand Up @@ -564,5 +565,9 @@
"connecting": "Connecting",
"disconnected": "Disconnected"
}
},
"paginator": {
"page": "Page",
"of": "of"
}
}

0 comments on commit 3854467

Please sign in to comment.