Refactore minting messages in translation files

This commit is contained in:
Nicola Benaglia 2025-06-21 15:31:36 +02:00
parent 4afac86b66
commit cfb438b0bc
10 changed files with 89 additions and 72 deletions

View File

@ -1906,7 +1906,7 @@ function App() {
textTransform: 'uppercase', textTransform: 'uppercase',
}} }}
> >
{t('core:minting_status')} {t('core:minting.status_title')}
</span> </span>
} }
placement="left" placement="left"

View File

@ -82,27 +82,27 @@ export const CoreSyncStatus = () => {
: ''; : '';
let imagePath = syncingImg; let imagePath = syncingImg;
let message = t('core:message.status.synchronizing', { let message = t('core:minting.status.synchronizing', {
postProcess: 'capitalizeFirstChar', postProcess: 'capitalizeFirstChar',
}); });
if (isMintingPossible && !isUsingGateway) { if (isMintingPossible && !isUsingGateway) {
imagePath = syncedMintingImg; imagePath = syncedMintingImg;
message = `${t(`core:message.status.${isSynchronizing ? 'synchronizing' : 'synchronized'}`, { postProcess: 'capitalizeFirstChar' })} ${t('core:message.status.minting')}`; message = `${t(`core:minting.status.${isSynchronizing ? 'synchronizing' : 'synchronized'}`, { postProcess: 'capitalizeFirstChar' })} ${t('core:minting.status.minting')}`;
} else if (isSynchronizing === true && syncPercent === 99) { } else if (isSynchronizing === true && syncPercent === 99) {
imagePath = syncingImg; imagePath = syncingImg;
} else if (isSynchronizing && !isMintingPossible && syncPercent === 100) { } else if (isSynchronizing && !isMintingPossible && syncPercent === 100) {
imagePath = syncingImg; imagePath = syncingImg;
message = `${t('core:message.status.synchronizing', { postProcess: 'capitalizeFirstChar' })} ${!isUsingGateway ? t('core:message.status.not_minting') : ''}`; message = `${t('core:minting.status.synchronizing', { postProcess: 'capitalizeFirstChar' })} ${!isUsingGateway ? t('core:minting.status.not_minting') : ''}`;
} else if (!isSynchronizing && !isMintingPossible && syncPercent === 100) { } else if (!isSynchronizing && !isMintingPossible && syncPercent === 100) {
imagePath = syncedImg; imagePath = syncedImg;
message = `${t('core:message.status.synchronized', { postProcess: 'capitalizeFirstChar' })} ${!isUsingGateway ? t('core:message.status.not_minting') : ''}`; message = `${t('core:minting.status.synchronized', { postProcess: 'capitalizeFirstChar' })} ${!isUsingGateway ? t('core:minting.status.not_minting') : ''}`;
} else if (isSynchronizing && isMintingPossible && syncPercent === 100) { } else if (isSynchronizing && isMintingPossible && syncPercent === 100) {
imagePath = syncingImg; imagePath = syncingImg;
message = `${t('core:message.status.synchronizing', { postProcess: 'capitalizeFirstChar' })} ${!isUsingGateway ? t('core:message.status.minting') : ''}`; message = `${t('core:minting.status.synchronizing', { postProcess: 'capitalizeFirstChar' })} ${!isUsingGateway ? t('core:minting.status.minting') : ''}`;
} else if (!isSynchronizing && isMintingPossible && syncPercent === 100) { } else if (!isSynchronizing && isMintingPossible && syncPercent === 100) {
imagePath = syncedMintingImg; imagePath = syncedMintingImg;
message = `${t('core:message.status.synchronized', { postProcess: 'capitalizeFirstChar' })} ${!isUsingGateway ? t('core:message.status.minting') : ''}`; message = `${t('core:minting.status.synchronized', { postProcess: 'capitalizeFirstChar' })} ${!isUsingGateway ? t('core:minting.status.minting') : ''}`;
} }
return ( return (

View File

@ -303,13 +303,6 @@
"reset_qdn": "Mögen Sie Ihre aktuellen lokalen Änderungen nicht? Möchten Sie auf Ihre gespeicherten QDN -Apps zurücksetzen?", "reset_qdn": "Mögen Sie Ihre aktuellen lokalen Änderungen nicht? Möchten Sie auf Ihre gespeicherten QDN -Apps zurücksetzen?",
"transfer_qort": "would you like to transfer {{ amount }} QORT" "transfer_qort": "would you like to transfer {{ amount }} QORT"
}, },
"status": {
"minting": "(Prägung)",
"not_minting": "(nicht punktieren)",
"no_status": "kein Status",
"synchronized": "synchronisiert",
"synchronizing": "Synchronisierung..."
},
"success": { "success": {
"order_submitted": "Ihre Kaufbestellung wurde eingereicht", "order_submitted": "Ihre Kaufbestellung wurde eingereicht",
"published": "erfolgreich veröffentlicht. Bitte warten Sie ein paar Minuten, bis das Netzwerk die Änderungen vorschreibt.", "published": "erfolgreich veröffentlicht. Bitte warten Sie ein paar Minuten, bis das Netzwerk die Änderungen vorschreibt.",
@ -320,7 +313,16 @@
"voted": "erfolgreich abgestimmt. Bitte warten Sie ein paar Minuten, bis das Netzwerk die Änderungen vorschreibt." "voted": "erfolgreich abgestimmt. Bitte warten Sie ein paar Minuten, bis das Netzwerk die Änderungen vorschreibt."
} }
}, },
"minting_status": "Münzstatus", "minting": {
"status": {
"minting": "(Prägung)",
"not_minting": "(nicht punktieren)",
"no_status": "kein Status",
"synchronized": "synchronisiert",
"synchronizing": "Synchronisierung..."
},
"status_title": "Münzstatus"
},
"name": "Name", "name": "Name",
"name_app": "Name/App", "name_app": "Name/App",
"new_post_in": "new post in {{ title }}", "new_post_in": "new post in {{ title }}",

View File

@ -237,7 +237,6 @@
"mentioned": "mentioned", "mentioned": "mentioned",
"message_with_image": "this message already has an image", "message_with_image": "this message already has an image",
"minimal_qort_balance": "having at least {{ quantity }} QORT in your balance (4 qort balance for chat, 1.25 for name, 0.75 for some transactions)", "minimal_qort_balance": "having at least {{ quantity }} QORT in your balance (4 qort balance for chat, 1.25 for name, 0.75 for some transactions)",
"minting_next_level": "with a 24/7 minting you will reach level {{ level }} in <strong>{{ count }} days</strong>",
"most_recent_payment": "{{ count }} most recent payment", "most_recent_payment": "{{ count }} most recent payment",
"name_available": "{{ name }} is available", "name_available": "{{ name }} is available",
"name_benefits": "benefits of a name", "name_benefits": "benefits of a name",
@ -305,13 +304,7 @@
"reset_qdn": "don't like your current local changes? Would you like to reset to your saved QDN pinned apps?", "reset_qdn": "don't like your current local changes? Would you like to reset to your saved QDN pinned apps?",
"transfer_qort": "would you like to transfer {{ amount }} QORT" "transfer_qort": "would you like to transfer {{ amount }} QORT"
}, },
"status": {
"minting": "(minting)",
"not_minting": "(not minting)",
"no_status": "no status",
"synchronized": "synchronized",
"synchronizing": "synchronizing..."
},
"success": { "success": {
"order_submitted": "your buy order was submitted", "order_submitted": "your buy order was submitted",
"published": "successfully published. Please wait a couple minutes for the network to propogate the changes.", "published": "successfully published. Please wait a couple minutes for the network to propogate the changes.",
@ -322,7 +315,17 @@
"voted": "successfully voted. Please wait a couple minutes for the network to propogate the changes." "voted": "successfully voted. Please wait a couple minutes for the network to propogate the changes."
} }
}, },
"minting_status": "minting status", "minting": {
"next_level": "with a 24/7 minting you will reach <strong>level {{ level }}</strong> in <strong>{{ count }} days</strong>",
"status": {
"minting": "(minting)",
"not_minting": "(not minting)",
"no_status": "no status",
"synchronized": "synchronized",
"synchronizing": "synchronizing..."
},
"status_title": "minting status"
},
"name": "name", "name": "name",
"name_app": "name/App", "name_app": "name/App",
"new_post_in": "new post in {{ title }}", "new_post_in": "new post in {{ title }}",

View File

@ -304,13 +304,6 @@
"reset_qdn": "¿No te gustan tus cambios locales actuales? ¿Le gustaría restablecer a sus aplicaciones guardadas de QDN guardadas?", "reset_qdn": "¿No te gustan tus cambios locales actuales? ¿Le gustaría restablecer a sus aplicaciones guardadas de QDN guardadas?",
"transfer_qort": "would you like to transfer {{ amount }} QORT" "transfer_qort": "would you like to transfer {{ amount }} QORT"
}, },
"status": {
"minting": "(acuñado)",
"not_minting": "(no acuñar)",
"no_status": "sin estado",
"synchronized": "sincronizado",
"synchronizing": "sincronización..."
},
"success": { "success": {
"order_submitted": "Su pedido de compra fue enviado", "order_submitted": "Su pedido de compra fue enviado",
"published": "publicado con éxito. Espere un par de minutos para que la red propoque los cambios.", "published": "publicado con éxito. Espere un par de minutos para que la red propoque los cambios.",
@ -321,7 +314,16 @@
"voted": "votado con éxito. Espere un par de minutos para que la red propoque los cambios." "voted": "votado con éxito. Espere un par de minutos para que la red propoque los cambios."
} }
}, },
"minting_status": "estado de acuñación", "minting": {
"status": {
"minting": "(acuñado)",
"not_minting": "(no acuñar)",
"no_status": "sin estado",
"synchronized": "sincronizado",
"synchronizing": "sincronización..."
},
"status_title": "estado de acuñación"
},
"name": "nombre", "name": "nombre",
"name_app": "nombre/aplicación", "name_app": "nombre/aplicación",
"new_post_in": "new post in {{ title }}", "new_post_in": "new post in {{ title }}",

View File

@ -304,13 +304,6 @@
"reset_qdn": "Vous n'aimez pas vos changements locaux actuels? Souhaitez-vous réinitialiser avec vos applications QDN enregistrées?", "reset_qdn": "Vous n'aimez pas vos changements locaux actuels? Souhaitez-vous réinitialiser avec vos applications QDN enregistrées?",
"transfer_qort": "would you like to transfer {{ amount }} QORT" "transfer_qort": "would you like to transfer {{ amount }} QORT"
}, },
"status": {
"minting": "(Coupure)",
"not_minting": "(pas de la frappe)",
"no_status": "pas de statut",
"synchronized": "synchronisé",
"synchronizing": "synchronisation..."
},
"success": { "success": {
"order_submitted": "Votre commande d'achat a été soumise", "order_submitted": "Votre commande d'achat a été soumise",
"published": "publié avec succès. Veuillez patienter quelques minutes pour que le réseau propage les modifications.", "published": "publié avec succès. Veuillez patienter quelques minutes pour que le réseau propage les modifications.",
@ -321,7 +314,16 @@
"voted": "voté avec succès. Veuillez patienter quelques minutes pour que le réseau propage les modifications." "voted": "voté avec succès. Veuillez patienter quelques minutes pour que le réseau propage les modifications."
} }
}, },
"minting_status": "statut de frappe", "minting": {
"status": {
"minting": "(Coupure)",
"not_minting": "(pas de la frappe)",
"no_status": "pas de statut",
"synchronized": "synchronisé",
"synchronizing": "synchronisation..."
},
"status_title": "statut de frappe"
},
"name": "nom", "name": "nom",
"name_app": "nom / application", "name_app": "nom / application",
"new_post_in": "new post in {{ title }}", "new_post_in": "new post in {{ title }}",

View File

@ -303,13 +303,6 @@
"reset_qdn": "non ti piacciono le attuali modifiche locali? Vorresti ripristinare le app QDN salvate?", "reset_qdn": "non ti piacciono le attuali modifiche locali? Vorresti ripristinare le app QDN salvate?",
"transfer_qort": "vuoi trasferire {{ amount }} QORT?" "transfer_qort": "vuoi trasferire {{ amount }} QORT?"
}, },
"status": {
"minting": "(minting)",
"not_minting": "(non minting)",
"no_status": "nessun stato",
"synchronized": "sincronizzato",
"synchronizing": "sincronizzazione..."
},
"success": { "success": {
"order_submitted": "l'ordine di acquisto è stato inviato", "order_submitted": "l'ordine di acquisto è stato inviato",
"published": "pubblicato con successo. Si prega di attendere un paio di minuti affinché la rete propaghi le modifiche.", "published": "pubblicato con successo. Si prega di attendere un paio di minuti affinché la rete propaghi le modifiche.",
@ -320,7 +313,16 @@
"voted": "votato con successo. Si prega di attendere un paio di minuti affinché la rete propaghi le modifiche." "voted": "votato con successo. Si prega di attendere un paio di minuti affinché la rete propaghi le modifiche."
} }
}, },
"minting_status": "stato minting", "minting": {
"status": {
"minting": "(minting)",
"not_minting": "(non minting)",
"no_status": "nessun stato",
"synchronized": "sincronizzato",
"synchronizing": "sincronizzazione..."
},
"status_title": "stato minting"
},
"name": "nome", "name": "nome",
"name_app": "nome/app", "name_app": "nome/app",
"new_post_in": "nuovo post in {{ title }}", "new_post_in": "nuovo post in {{ title }}",

View File

@ -304,13 +304,6 @@
"reset_qdn": "あなたの現在のローカルの変更が気に入らない保存したQDNピン留めアプリにリセットしますか", "reset_qdn": "あなたの現在のローカルの変更が気に入らない保存したQDNピン留めアプリにリセットしますか",
"transfer_qort": "would you like to transfer {{ amount }} QORT" "transfer_qort": "would you like to transfer {{ amount }} QORT"
}, },
"status": {
"minting": "(鋳造)",
"not_minting": "(造りではありません)",
"no_status": "ステータスなし",
"synchronized": "同期",
"synchronizing": "同期..."
},
"success": { "success": {
"order_submitted": "購入注文が提出されました", "order_submitted": "購入注文が提出されました",
"published": "正常に公開されました。ネットワークが変更を提案するまで数分待ってください。", "published": "正常に公開されました。ネットワークが変更を提案するまで数分待ってください。",
@ -321,7 +314,16 @@
"voted": "正常に投票しました。ネットワークが変更を提案するまで数分待ってください。" "voted": "正常に投票しました。ネットワークが変更を提案するまで数分待ってください。"
} }
}, },
"minting_status": "ミントステータス", "minting": {
"status": {
"minting": "(鋳造)",
"not_minting": "(造りではありません)",
"no_status": "ステータスなし",
"synchronized": "同期",
"synchronizing": "同期..."
},
"status_title": "ミントステータス"
},
"name": "名前", "name": "名前",
"name_app": "名前/アプリ", "name_app": "名前/アプリ",
"new_post_in": "new post in {{ title }}", "new_post_in": "new post in {{ title }}",

View File

@ -304,13 +304,6 @@
"reset_qdn": "Не нравятся ваши текущие локальные изменения? Хотели бы вы сбросить в сохраненные приложения QDN?", "reset_qdn": "Не нравятся ваши текущие локальные изменения? Хотели бы вы сбросить в сохраненные приложения QDN?",
"transfer_qort": "would you like to transfer {{ amount }} QORT" "transfer_qort": "would you like to transfer {{ amount }} QORT"
}, },
"status": {
"minting": "(добыча)",
"not_minting": "(не шахта)",
"no_status": "нет статуса",
"synchronized": "синхронизированный",
"synchronizing": "синхронизация..."
},
"success": { "success": {
"order_submitted": "Ваш заказ на покупку был отправлен", "order_submitted": "Ваш заказ на покупку был отправлен",
"published": "успешно опубликовано. Пожалуйста, подождите пару минут, пока сеть прокатит изменения.", "published": "успешно опубликовано. Пожалуйста, подождите пару минут, пока сеть прокатит изменения.",
@ -321,7 +314,16 @@
"voted": "успешно проголосовал. Пожалуйста, подождите пару минут, пока сеть прокатит изменения." "voted": "успешно проголосовал. Пожалуйста, подождите пару минут, пока сеть прокатит изменения."
} }
}, },
"minting_status": "Статус майтинга", "minting": {
"status": {
"minting": "(добыча)",
"not_minting": "(не шахта)",
"no_status": "нет статуса",
"synchronized": "синхронизированный",
"synchronizing": "синхронизация..."
},
"status_title": "Статус майтинга"
},
"name": "имя", "name": "имя",
"name_app": "имя/приложение", "name_app": "имя/приложение",
"new_post_in": "new post in {{ title }}", "new_post_in": "new post in {{ title }}",

View File

@ -304,13 +304,6 @@
"reset_qdn": "不喜欢您当前的本地更改吗您想重置保存的QDN固定应用吗", "reset_qdn": "不喜欢您当前的本地更改吗您想重置保存的QDN固定应用吗",
"transfer_qort": "would you like to transfer {{ amount }} QORT" "transfer_qort": "would you like to transfer {{ amount }} QORT"
}, },
"status": {
"minting": "(铸造)",
"not_minting": "(不是铸造)",
"no_status": "没有状态",
"synchronized": "同步",
"synchronizing": "同步..."
},
"success": { "success": {
"order_submitted": "您的买入订单已提交", "order_submitted": "您的买入订单已提交",
"published": "成功出版。请等待几分钟,以使网络传播更改。", "published": "成功出版。请等待几分钟,以使网络传播更改。",
@ -321,7 +314,16 @@
"voted": "成功投票。请等待几分钟,以使网络传播更改。" "voted": "成功投票。请等待几分钟,以使网络传播更改。"
} }
}, },
"minting_status": "铸造状态", "minting": {
"status": {
"minting": "(铸造)",
"not_minting": "(不是铸造)",
"no_status": "没有状态",
"synchronized": "同步",
"synchronizing": "同步..."
},
"status_title": "铸造状态"
},
"name": "姓名", "name": "姓名",
"name_app": "名称/应用", "name_app": "名称/应用",
"new_post_in": "new post in {{ title }}", "new_post_in": "new post in {{ title }}",