Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix(bridge-ui): add missing labels to i18n #16633

Merged
merged 5 commits into from
Apr 4, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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"
}
}
Loading