mirror of
https://github.com/Qortal/Qortal-Hub.git
synced 2025-06-26 17:11:22 +00:00
Add translations
This commit is contained in:
parent
b5a058291c
commit
17a568674f
@ -150,6 +150,12 @@
|
|||||||
"permission_server_remove": "do you give this application permission to remove a server?",
|
"permission_server_remove": "do you give this application permission to remove a server?",
|
||||||
"permission_set_current_server": "do you give this application permission to set the current server?",
|
"permission_set_current_server": "do you give this application permission to set the current server?",
|
||||||
"permission_transfer_asset": "do you give this application permission to transfer the following asset?",
|
"permission_transfer_asset": "do you give this application permission to transfer the following asset?",
|
||||||
|
"permission_sell_name_transaction": "do you give this application permission to create a sell name transaction?",
|
||||||
|
"permission_sell_name_transaction_detail": "sell {{ name }} for {{ price }} QORT",
|
||||||
|
"permission_sell_name_cancel": "do you give this application permission to cancel the selling of a name?",
|
||||||
|
"permission_buy_name": "do you give this application permission to buy a name?",
|
||||||
|
"permission_buy_name_detail": "buying {{ name }} for {{ price }} QORT",
|
||||||
|
"permission_sign_fee": "do you give this application permission to sign the required fees for all your trade offers?",
|
||||||
"poll": "poll: {{ name }}",
|
"poll": "poll: {{ name }}",
|
||||||
"provide_recipient_group_id": "please provide a recipient or groupId",
|
"provide_recipient_group_id": "please provide a recipient or groupId",
|
||||||
"request_create_poll": "you are requesting to create the poll below:",
|
"request_create_poll": "you are requesting to create the poll below:",
|
||||||
|
@ -6197,8 +6197,17 @@ export const sellNameRequest = async (data, isFromExtension) => {
|
|||||||
const fee = await getFee('SELL_NAME');
|
const fee = await getFee('SELL_NAME');
|
||||||
const resPermission = await getUserPermission(
|
const resPermission = await getUserPermission(
|
||||||
{
|
{
|
||||||
text1: `Do you give this application permission to create a sell name transaction?`,
|
text1: i18n.t('question:permission_sell_name_transaction', {
|
||||||
highlightedText: `Sell ${name} for ${sellPrice} QORT`,
|
postProcess: 'capitalizeFirstChar',
|
||||||
|
}),
|
||||||
|
highlightedText: i18n.t(
|
||||||
|
'question:permission_sell_name_transaction_detail',
|
||||||
|
{
|
||||||
|
name: name,
|
||||||
|
price: sellPrice,
|
||||||
|
postProcess: 'capitalizeFirstChar',
|
||||||
|
}
|
||||||
|
),
|
||||||
fee: fee.fee,
|
fee: fee.fee,
|
||||||
},
|
},
|
||||||
isFromExtension
|
isFromExtension
|
||||||
@ -6250,8 +6259,13 @@ export const cancelSellNameRequest = async (data, isFromExtension) => {
|
|||||||
const fee = await getFee('CANCEL_SELL_NAME');
|
const fee = await getFee('CANCEL_SELL_NAME');
|
||||||
const resPermission = await getUserPermission(
|
const resPermission = await getUserPermission(
|
||||||
{
|
{
|
||||||
text1: `Do you give this application permission to cancel the selling of a name?`,
|
text1: i18n.t('question:permission_sell_name_cancel', {
|
||||||
highlightedText: `Name: ${name}`,
|
postProcess: 'capitalizeFirstChar',
|
||||||
|
}),
|
||||||
|
highlightedText: i18n.t('question:name', {
|
||||||
|
name: name,
|
||||||
|
postProcess: 'capitalizeFirstChar',
|
||||||
|
}),
|
||||||
fee: fee.fee,
|
fee: fee.fee,
|
||||||
},
|
},
|
||||||
isFromExtension
|
isFromExtension
|
||||||
@ -6287,26 +6301,33 @@ export const buyNameRequest = async (data, isFromExtension) => {
|
|||||||
});
|
});
|
||||||
throw new Error(errorMsg);
|
throw new Error(errorMsg);
|
||||||
}
|
}
|
||||||
|
|
||||||
const name = data.nameForSale;
|
const name = data.nameForSale;
|
||||||
|
|
||||||
const validApi = await getBaseApi();
|
const validApi = await getBaseApi();
|
||||||
|
|
||||||
const response = await fetch(validApi + '/names/' + name);
|
const response = await fetch(validApi + '/names/' + name);
|
||||||
const nameData = await response.json();
|
const nameData = await response.json();
|
||||||
|
|
||||||
if (!nameData?.isForSale)
|
if (!nameData?.isForSale)
|
||||||
throw new Error(
|
throw new Error(
|
||||||
i18n.t('question:message.error.name_not_for_sale', {
|
i18n.t('question:message.error.name_not_for_sale', {
|
||||||
postProcess: 'capitalizeFirstChar',
|
postProcess: 'capitalizeFirstChar',
|
||||||
})
|
})
|
||||||
);
|
);
|
||||||
|
|
||||||
const sellerAddress = nameData.owner;
|
const sellerAddress = nameData.owner;
|
||||||
const sellPrice = +nameData.salePrice;
|
const sellPrice = +nameData.salePrice;
|
||||||
|
|
||||||
const fee = await getFee('BUY_NAME');
|
const fee = await getFee('BUY_NAME');
|
||||||
const resPermission = await getUserPermission(
|
const resPermission = await getUserPermission(
|
||||||
{
|
{
|
||||||
text1: `Do you give this application permission to buy a name?`,
|
text1: i18n.t('question:permission_buy_name', {
|
||||||
highlightedText: `Buying ${name} for ${sellPrice} QORT`,
|
postProcess: 'capitalizeFirstChar',
|
||||||
|
}),
|
||||||
|
highlightedText: i18n.t('question:permission_buy_name_detail', {
|
||||||
|
name: name,
|
||||||
|
price: sellPrice,
|
||||||
|
postProcess: 'capitalizeFirstChar',
|
||||||
|
}),
|
||||||
fee: fee.fee,
|
fee: fee.fee,
|
||||||
},
|
},
|
||||||
isFromExtension
|
isFromExtension
|
||||||
@ -6331,7 +6352,9 @@ export const buyNameRequest = async (data, isFromExtension) => {
|
|||||||
export const signForeignFees = async (data, isFromExtension) => {
|
export const signForeignFees = async (data, isFromExtension) => {
|
||||||
const resPermission = await getUserPermission(
|
const resPermission = await getUserPermission(
|
||||||
{
|
{
|
||||||
text1: `Do you give this application permission to sign the required fees for all your trade offers?`,
|
text1: i18n.t('question:permission_sign_fee', {
|
||||||
|
postProcess: 'capitalizeFirstChar',
|
||||||
|
}),
|
||||||
},
|
},
|
||||||
isFromExtension
|
isFromExtension
|
||||||
);
|
);
|
||||||
|
Loading…
x
Reference in New Issue
Block a user