fix issues in Persian version

This commit is contained in:
2025-06-08 11:50:50 +02:00
parent 6a50c9d850
commit 7df30a5b89
4 changed files with 20 additions and 2 deletions

View File

@ -84,6 +84,10 @@ const categoryOrder = {
comfort: ["cex", "kyc_light", "atomic", "no_kyc", "dex"],
privacy: ["atomic", "dex", "no_kyc", "kyc_light", "cex"],
}
if (currentLanguage === "fa") {
categoryOrder.comfort = ["cex", "no_kyc", "dex", "atomic"]
categoryOrder.privacy = ["atomic", "dex", "no_kyc", "cex"]
}
const sortCategories = (mode) => {
const exchanges = document.querySelector("#exchanges")
@ -152,3 +156,17 @@ const observer = new IntersectionObserver((entries) => {
})
})
elements.forEach((el) => observer.observe(el))
// exceptions
if (currentLanguage === "fa") {
const krakenLink = document.querySelector('a[href="https://kraken.com"]')
if (krakenLink) {
krakenLink.href = "https://nobitex.ir/"
krakenLink.textContent = "Nobitex Exchange"
}
krakenLink.nextElementSibling.remove()
document.getElementById("kyc_light").remove()
document.getElementById("kyc_light-desc").remove()
document.getElementById("kyc_light-providers").remove()
}

Binary file not shown.

Binary file not shown.

View File

@ -127,7 +127,7 @@
<h3 id="kyc_light" data-i18n="kyc-light"></h3>
<p id="kyc_light-desc"></p>
<div class="exchange-category">
<div id="kyc_light-providers" class="exchange-category">
<ul>
<li><a href="https://cakewallet.com" target="_blank">Cake Wallet</a> &amp;
<a href="https://dfx.swiss" target="_blank">DFX.swiss</a>
@ -139,7 +139,7 @@
<p id="cex-desc"></p>
<div class="exchange-category">
<ul>
<li><a href="https://kraken.com" target="_blank">Kraken Exchange</a> (US, CH)</li>
<li><a href="https://kraken.com" target="_blank">Kraken Exchange</a> <span>(US, CH)</span></li>
</ul>
</div>
</div>