Add translation

This commit is contained in:
Nicola Benaglia 2025-06-21 16:45:33 +02:00
parent b5baa40fee
commit 756f822f7f
10 changed files with 24 additions and 8 deletions

View File

@ -824,7 +824,15 @@ export const Minting = ({ setIsOpenMinting, myAddress, show }) => {
label={t('core:minting.current_tier', { label={t('core:minting.current_tier', {
postProcess: 'capitalizeEachFirstChar', postProcess: 'capitalizeEachFirstChar',
})} })}
value={currentTier(accountInfo?.level) || ''} value={t('core:minting.current_tier_content', {
tier: currentTier(accountInfo?.level)
? currentTier(accountInfo?.level)[0]
: '',
levels: currentTier(accountInfo?.level)
? currentTier(accountInfo?.level)[1]
: '',
postProcess: 'capitalizeEachFirstChar',
})}
/> />
<StatCard <StatCard
label={t('core:minting.total_minter_in_tier', { label={t('core:minting.total_minter_in_tier', {

View File

@ -83,19 +83,19 @@ export const blockReward = (nodeStatus): number => {
} }
}; };
export const currentTier = (level): string | undefined => { export const currentTier = (level): [string, string] | undefined => {
if (level === 0) { if (level === 0) {
return 'Tier 0 (Level 0)'; // TODO translate return ['0', '0'];
} else if (level === 1 || level === 2) { } else if (level === 1 || level === 2) {
return 'Tier 1 (Level 1 + 2)'; return ['1', '1 + 2'];
} else if (level === 3 || level === 4) { } else if (level === 3 || level === 4) {
return 'Tier 2 (Level 3 + 4)'; return ['2', '3 + 4'];
} else if (level === 5 || level === 6) { } else if (level === 5 || level === 6) {
return 'Tier 3 (Level 5 + 6)'; return ['3', '5 + 6'];
} else if (level === 7 || level === 8) { } else if (level === 7 || level === 8) {
return 'Tier 4 (Level 7 + 8)'; return ['4', '7 + 8'];
} else if (level === 9 || level === 10) { } else if (level === 9 || level === 10) {
return 'Tier 5 (Level 9 + 10)'; return ['5', '9 + 10'];
} else { } else {
return undefined; // fallback: should never reach this point return undefined; // fallback: should never reach this point
} }

View File

@ -324,6 +324,7 @@
"current_level": "aktuelles Level", "current_level": "aktuelles Level",
"current_status": "aktueller Status", "current_status": "aktueller Status",
"current_tier": "aktuelle Stufe", "current_tier": "aktuelle Stufe",
"current_tier_content": "{{ tier }} (Stufe {{ levels }})",
"details": "Minting-Details", "details": "Minting-Details",
"next_level": "Mit 24/7-Minting erreichst du <strong>Level {{ level }}</strong> in <strong>{{ count }} Tagen</strong>", "next_level": "Mit 24/7-Minting erreichst du <strong>Level {{ level }}</strong> in <strong>{{ count }} Tagen</strong>",
"rewards_info": "Informationen zu Minting-Belohnungen", "rewards_info": "Informationen zu Minting-Belohnungen",

View File

@ -326,6 +326,7 @@
"current_level": "current level", "current_level": "current level",
"current_status": "current status", "current_status": "current status",
"current_tier": "current tier", "current_tier": "current tier",
"current_tier_content": "{{ tier }} (Levels {{ levels }})",
"details": "minting details", "details": "minting details",
"next_level": "with a 24/7 minting you will reach <strong>level {{ level }}</strong> in <strong>{{ count }} days</strong>", "next_level": "with a 24/7 minting you will reach <strong>level {{ level }}</strong> in <strong>{{ count }} days</strong>",
"rewards_info": "minting rewards info", "rewards_info": "minting rewards info",

View File

@ -325,6 +325,7 @@
"current_level": "nivel actual", "current_level": "nivel actual",
"current_status": "estado actual", "current_status": "estado actual",
"current_tier": "nivel actual", "current_tier": "nivel actual",
"current_tier_content": "{{ tier }} (Nivels {{ levels }})",
"details": "detalles de minting", "details": "detalles de minting",
"next_level": "Con minting 24/7 alcanzarás el <strong>nivel {{ level }}</strong> en <strong>{{ count }} días</strong>", "next_level": "Con minting 24/7 alcanzarás el <strong>nivel {{ level }}</strong> en <strong>{{ count }} días</strong>",
"rewards_info": "información sobre recompensas de minting", "rewards_info": "información sobre recompensas de minting",

View File

@ -325,6 +325,7 @@
"current_level": "niveau actuel", "current_level": "niveau actuel",
"current_status": "statut actuel", "current_status": "statut actuel",
"current_tier": "niveau actuel", "current_tier": "niveau actuel",
"current_tier_content": "{{ tier }} (Niveaux {{ levels }})",
"details": "détails du minting", "details": "détails du minting",
"next_level": "Avec un minting 24/7, vous atteindrez le <strong>niveau {{ level }}</strong> en <strong>{{ count }} jours</strong>", "next_level": "Avec un minting 24/7, vous atteindrez le <strong>niveau {{ level }}</strong> en <strong>{{ count }} jours</strong>",
"rewards_info": "informations sur les récompenses de minting", "rewards_info": "informations sur les récompenses de minting",

View File

@ -324,6 +324,7 @@
"current_level": "livello attuale", "current_level": "livello attuale",
"current_status": "stato attuale", "current_status": "stato attuale",
"current_tier": "fascia attuale", "current_tier": "fascia attuale",
"current_tier_content": "{{ tier }} (Livelli {{ levels }})",
"details": "dettagli sul minting", "details": "dettagli sul minting",
"next_level": "Con un minting 24/7 raggiungerai il <strong>livello {{ level }}</strong> in <strong>{{ count }} giorni</strong>", "next_level": "Con un minting 24/7 raggiungerai il <strong>livello {{ level }}</strong> in <strong>{{ count }} giorni</strong>",
"rewards_info": "informazioni sulle ricompense del minting", "rewards_info": "informazioni sulle ricompense del minting",

View File

@ -325,6 +325,7 @@
"current_level": "現在のレベル", "current_level": "現在のレベル",
"current_status": "現在のステータス", "current_status": "現在のステータス",
"current_tier": "現在のティア", "current_tier": "現在のティア",
"current_tier_content": "{{ tier }}(レベル {{ levels }}",
"details": "ミンティングの詳細", "details": "ミンティングの詳細",
"next_level": "24時間年中無休のミンティングで、<strong>{{ count }}日</strong>以内に<strong>レベル{{ level }}</strong>に到達します", "next_level": "24時間年中無休のミンティングで、<strong>{{ count }}日</strong>以内に<strong>レベル{{ level }}</strong>に到達します",
"rewards_info": "ミンティング報酬情報", "rewards_info": "ミンティング報酬情報",

View File

@ -325,6 +325,7 @@
"current_level": "текущий уровень", "current_level": "текущий уровень",
"current_status": "текущий статус", "current_status": "текущий статус",
"current_tier": "текущий уровень", "current_tier": "текущий уровень",
"current_tier_content": "{{ tier }} (Уровни {{ levels }})",
"details": "детали майнинга", "details": "детали майнинга",
"next_level": "При майнинге 24/7 вы достигнете <strong>{{ level }} уровня</strong> за <strong>{{ count }} дней</strong>", "next_level": "При майнинге 24/7 вы достигнете <strong>{{ level }} уровня</strong> за <strong>{{ count }} дней</strong>",
"rewards_info": "информация о наградах за майнинг", "rewards_info": "информация о наградах за майнинг",

View File

@ -325,6 +325,7 @@
"current_level": "当前等级", "current_level": "当前等级",
"current_status": "当前状态", "current_status": "当前状态",
"current_tier": "当前等级层级", "current_tier": "当前等级层级",
"current_tier_content": "{{ tier }}(等级 {{ levels }}",
"details": "铸造详情", "details": "铸造详情",
"next_level": "全天候铸造将使你在<strong>{{ count }}天</strong>内达到<strong>{{ level }}级</strong>", "next_level": "全天候铸造将使你在<strong>{{ count }}天</strong>内达到<strong>{{ level }}级</strong>",
"rewards_info": "铸造奖励信息", "rewards_info": "铸造奖励信息",