Skip to content

Commit

Permalink
Remove URLs from locales
Browse files Browse the repository at this point in the history
  • Loading branch information
AtanasKrondev authored and kenodressel committed Jun 16, 2021
1 parent b06ea14 commit a7d3928
Show file tree
Hide file tree
Showing 5 changed files with 56 additions and 68 deletions.
19 changes: 5 additions & 14 deletions src/locales/en.json
Original file line number Diff line number Diff line change
Expand Up @@ -652,20 +652,11 @@
]
},
"GetAe": {
"Platforms": [
{
"Text": "BTC/{ae} ETH/{ae}",
"Link": "https://jelly.market/"
},
{
"Text": "Discover more {ae} exchanges",
"Link": "https://coinmarketcap.com/en/currencies/aeternity/"
},
{
"Text": "Testnet {ae} tokens",
"Link": "https://faucet.aepps.com/"
}
]
"Platforms": {
"Jelly": "BTC/{ae} ETH/{ae}",
"CoinMarketCap": "Discover more {ae} exchanges",
"Faucet": "Testnet {ae} tokens"
}
},
"WordListing": {
"Asset": "Name",
Expand Down
19 changes: 5 additions & 14 deletions src/locales/es.json
Original file line number Diff line number Diff line change
Expand Up @@ -710,20 +710,11 @@
]
},
"GetAe": {
"Platforms": [
{
"Text": "BTC/{ae} ETH/{ae}",
"Link": "https://jelly.market/"
},
{
"Text": "Discover more {ae} exchanges",
"Link": "https://coinmarketcap.com/en/currencies/aeternity/"
},
{
"Text": "Testnet {ae} tokens",
"Link": "https://faucet.aepps.com/"
}
]
"Platforms": {
"Jelly": "BTC/{ae} ETH/{ae}",
"CoinMarketCap": "Discover more {ae} exchanges",
"Faucet": "Testnet {ae} tokens"
}
},
"WordListing": {
"Asset": "Name",
Expand Down
19 changes: 5 additions & 14 deletions src/locales/fr.json
Original file line number Diff line number Diff line change
Expand Up @@ -649,20 +649,11 @@
]
},
"GetAe": {
"Platforms": [
{
"Text": "BTC/{ae} ETH/{ae}",
"Link": "https://jelly.market/"
},
{
"Text": "Discover more {ae} exchanges",
"Link": "https://coinmarketcap.com/en/currencies/aeternity/"
},
{
"Text": "Testnet {ae} tokens",
"Link": "https://faucet.aepps.com/"
}
]
"Platforms": {
"Jelly": "BTC/{ae} ETH/{ae}",
"CoinMarketCap": "Discover more {ae} exchanges",
"Faucet": "Testnet {ae} tokens"
}
},
"WordListing": {
"Asset": "Name",
Expand Down
19 changes: 5 additions & 14 deletions src/locales/zh.json
Original file line number Diff line number Diff line change
Expand Up @@ -540,20 +540,11 @@
]
},
"GetAe": {
"Platforms": [
{
"Text": "BTC/{ae} ETH/{ae}",
"Link": "https://jelly.market/"
},
{
"Text": "Discover more {ae} exchanges",
"Link": "https://coinmarketcap.com/en/currencies/aeternity/"
},
{
"Text": "Testnet {ae} tokens",
"Link": "https://faucet.aepps.com/"
}
]
"Platforms": {
"Jelly": "BTC/{ae} ETH/{ae}",
"CoinMarketCap": "Discover more {ae} exchanges",
"Faucet": "Testnet {ae} tokens"
}
},
"WordListing": {
"Asset": "Name",
Expand Down
48 changes: 36 additions & 12 deletions src/views/WordBazaarGetAe.vue
Original file line number Diff line number Diff line change
@@ -1,14 +1,40 @@
<template>
<div class="get-ae">
<div
v-for="(vendor,index) in platforms"
:key="index"
class="card"
@click="goTo($t(`components.GetAe.Platforms[${index}].Link`))"
@click="goTo('https://jelly.market/')"
>
<Component :is="vendor.logo" />
<LogoJellySwap />
<i18n
:path="`components.GetAe.Platforms[${index}].Text`"
path="components.GetAe.Platforms.Jelly"
tag="p"
>
<template #ae>
<span class="abbreviation">{{ $t('AE') }}</span>
</template>
</i18n>
</div>
<div
class="card"
@click="goTo('https://coinmarketcap.com/en/currencies/aeternity/')"
>
<LogoCoinMarketCap />
<i18n
path="components.GetAe.Platforms.CoinMarketCap"
tag="p"
>
<template #ae>
<span class="abbreviation">{{ $t('AE') }}</span>
</template>
</i18n>
</div>
<div
class="card"
@click="goTo('https://faucet.aepps.com/')"
>
<LogoFaucet />
<i18n
path="components.GetAe.Platforms.Faucet"
tag="p"
>
<template #ae>
Expand All @@ -25,13 +51,11 @@ import LogoCoinMarketCap from '../assets/logoCoinMarketCap.svg?icon-component';
import LogoFaucet from '../assets/logoFaucet.svg?icon-component';
export default {
data: () => ({
platforms: [
{ logo: LogoJellySwap },
{ logo: LogoCoinMarketCap },
{ logo: LogoFaucet },
],
}),
components: {
LogoJellySwap,
LogoCoinMarketCap,
LogoFaucet,
},
methods: {
goTo(link) { window.open(link); },
},
Expand Down

0 comments on commit a7d3928

Please sign in to comment.