i18n: update add en src/modules/[chain]/cosmwasm/

const radioContent = [}; > not changes

Author: Salman Wahib <hello@sxlmnwb.xyz>
Co-authored-by: liangping <18786721@qq.com>
This commit is contained in:
Salman Wahib 2023-06-21 01:08:00 +07:00
parent 488a9c2d37
commit 665ea0c17b
3 changed files with 43 additions and 23 deletions

View File

@ -113,14 +113,14 @@ const result = ref('');
<div>
<div class="bg-base-100 px-4 pt-3 pb-4 rounded mb-4 shadow">
<h2 class="card-title truncate w-full">
Contract List of Code: {{ props.code_id }}
{{ $t('cosmwasm.contract_list_code') }}: {{ props.code_id }}
</h2>
<div class="overflow-x-auto">
<table class="table table-compact w-full mt-4">
<thead>
<tr>
<th style="position: relative; z-index: 2">Contract List</th>
<th>Actions</th>
<th style="position: relative; z-index: 2">{{ $t('cosmwasm.contract_list') }}</th>
<th>{{ $t('account.action') }}</th>
</tr>
</thead>
<tbody>
@ -135,34 +135,34 @@ const result = ref('');
@click="showInfo(v)"
for="modal-contract-detail"
class="btn btn-primary btn-xs text-xs mr-2"
>Contract</label
>{{ $t('cosmwasm.btn_contract') }}</label
>
<label
@click="showFunds(v)"
for="modal-contract-funds"
class="btn btn-primary btn-xs text-xs mr-2"
>Funds</label
>{{ $t('cosmwasm.btn_funds') }}</label
>
<label
class="btn btn-primary btn-xs text-xs mr-2"
for="modal-contract-states"
@click="showState(v)"
>
States
{{ $t('cosmwasm.btn_states') }}
</label>
<label
for="modal-contract-query"
class="btn btn-primary btn-xs text-xs mr-2"
@click="showQuery(v)"
>
Query
{{ $t('cosmwasm.btn_query') }}
</label>
<label
for="wasm_execute_contract"
class="btn btn-primary btn-xs text-xs"
@click="dialog.open('wasm_execute_contract', { contract: v })"
>
Execute
{{ $t('cosmwasm.btn_execute') }}
</label>
</td>
</tr>
@ -182,7 +182,7 @@ const result = ref('');
codeId: props.code_id,
})
"
>Instantiate Contract</label
>{{ $t('cosmwasm.instantiate_contract') }}</label
>
</div>
</div>
@ -193,7 +193,7 @@ const result = ref('');
<label class="modal-box !w-11/12 !max-w-5xl relative p-2" for="">
<div>
<div class="flex items-center justify-between px-3 pt-2">
<div class="text-lg">Contract Detail</div>
<div class="text-lg">{{ $t('cosmwasm.contract_detail') }}</div>
<label
@click="infoDialog = false"
for="modal-contract-detail"
@ -213,7 +213,7 @@ const result = ref('');
<label class="modal-box relative p-2" for="">
<div>
<div class="flex items-center justify-between px-3 pt-2">
<div class="text-lg">Contract Balances</div>
<div class="text-lg">{{ $t('cosmwasm.contract_balances') }}</div>
<label
for="modal-contract-funds"
class="btn btn-sm btn-circle"
@ -224,7 +224,7 @@ const result = ref('');
<li v-for="b in balances.balances" >
<a class="flex justify-between"><span>{{ format.formatToken(b) }}</span> {{ b.amount }} </a>
</li>
<li v-if="balances.pagination?.total === '0'" class="my-10 text-center"> No Escrowed Assets</li>
<li v-if="balances.pagination?.total === '0'" class="my-10 text-center">{{ $t('cosmwasm.no_escrowed_assets') }}</li>
</ul>
</div>
</label>
@ -235,7 +235,7 @@ const result = ref('');
<label class="modal-box !w-11/12 !max-w-5xl" for="">
<div>
<div class="flex items-center justify-between px-3 pt-2 mb-4">
<div class="text-lg">Contract States</div>
<div class="text-lg">{{ $t('cosmwasm.contract_states') }}</div>
<label
for="modal-contract-states"
class="btn btn-sm btn-circle"
@ -271,7 +271,7 @@ const result = ref('');
<label class="modal-box !w-11/12 !max-w-5xl" for="">
<div>
<div class="flex items-center justify-between px-3 pt-2 mb-4">
<div class="text-lg font-semibold">Query Contract</div>
<div class="text-lg font-semibold">{{ $t('cosmwasm.query_contract') }}</div>
<label
for="modal-contract-query"
class="btn btn-sm btn-circle"
@ -315,7 +315,7 @@ const result = ref('');
class="btn btn-primary px-4 text-white"
@click="queryContract()"
>
Query Contract
{{ $t('cosmwasm.query_contract') }}
</button>
</div>
</div>

View File

@ -24,15 +24,15 @@ pageload(1)
</script>
<template>
<div class="bg-base-100 px-4 pt-3 pb-4 rounded mb-4 shadow">
<h2 class="card-title truncate w-full">Cosmos Wasm Smart Contracts</h2>
<h2 class="card-title truncate w-full">{{ $t('cosmwasm.title') }}</h2>
<div class="overflow-x-auto">
<table class="table table-compact w-full mt-4 text-sm">
<thead>
<tr>
<th>Code Id</th>
<th>Code Hash</th>
<th>Creator</th>
<th>Permissions</th>
<th>{{ $t('cosmwasm.code_id') }}</th>
<th>{{ $t('cosmwasm.code_hash') }}</th>
<th>{{ $t('cosmwasm.creator') }}</th>
<th>{{ $t('cosmwasm.permissions') }}</th>
</tr>
</thead>
<tbody>
@ -55,9 +55,7 @@ pageload(1)
</table>
<div class="flex justify-between">
<PaginationBar :limit="pageRequest.limit" :total="codes.pagination?.total" :callback="pageload" />
<label for="wasm_store_code" class="btn btn-primary my-5" @click="dialog.open('wasm_store_code', {})">Upload
Smart
Contract</label>
<label for="wasm_store_code" class="btn btn-primary my-5" @click="dialog.open('wasm_store_code', {})">{{ $t('cosmwasm.btn_up_sc') }}</label>
</div>
</div>
</div>

View File

@ -97,5 +97,27 @@
"tips": "Tips",
"tips_description_1": "This tool is useful for validators to monitor who is onboard during an upgrade",
"tips_description_2": "If you want to change the default rpc endpoint. make sure that `https` and `CORS` are enabled on your server."
},
"cosmwasm": {
"title": "Cosmos Wasm Smart Contracts",
"code_id": "Code Id",
"code_hash": "Code Hash",
"creator": "Creator",
"permissions": "Permissions",
"btn_up_sc": "Upload Smart Contract",
"contract_list_code": "Contract List of Code",
"contract_list": "Contract List",
"btn_contract": "Contract",
"btn_funds": "Funds",
"btn_states": "States",
"btn_fees": "Fees",
"btn_query": "Query",
"btn_execute": "Execute",
"instantiate_contract": "Instantiate Contract",
"contract_detail": "Contract Detail",
"contract_balances": "Contract Balances",
"no_escrowed_assets": "No Escrowed Assets",
"contract_states": "Contract States",
"query_contract": "Query Contract"
}
}