Skip to content

Commit

Permalink
Extract all missed locales
Browse files Browse the repository at this point in the history
  • Loading branch information
CedrikNikita committed May 27, 2020
1 parent 7be1ed6 commit a0eff42
Show file tree
Hide file tree
Showing 18 changed files with 78 additions and 51 deletions.
1 change: 1 addition & 0 deletions src/aepp/App.vue
@@ -1,3 +1,4 @@
<!-- eslint-disable vue-i18n/no-raw-text -->
<template>
<div>
<p data-cy="wallet-found" v-if="wallet.found">Wallet found</p>
Expand Down
2 changes: 1 addition & 1 deletion src/options/App.vue
@@ -1,6 +1,6 @@
<template>
<div>
<p>Superhero is Open-source! Visit <a href="superhero.com">Superhero.com</a></p>
<p>{{ $t('options.text') }}<a href="superhero.com">Superhero.com</a></p>
</div>
</template>

Expand Down
44 changes: 18 additions & 26 deletions src/phishing/App.vue
Expand Up @@ -3,32 +3,24 @@
<ae-main>
<ae-panel class="text-center">
<img src="../icons/icon_128.png" alt="Superhero logo" />
<h1><ae-icon fill="primary" face="round" name="info" />Superhero Phishing Detection</h1>
<p>
This domain is currently on the Superhero domain warning list. This means that based on
information available to us, Superhero believes this domain could currently compromise
your security and, as an added safety feature, Superhero has restricted access to the
site. To override this, please read the rest of this warning for instructions on how to
continue at your own risk.
</p>
<p>
There are many reasons sites can appear on our warning list, and our warning list compiles
from other widely used industry lists. Such reasons can include known fraud or security
risks, such as domains that test positive on the <a>Superhero Phishing Detector</a>.
Domains on these warning lists may include outright malicious websites and legitimate
websites that have been compromised by a malicious actor.
</p>
<p>
Note that this warning list is compiled on a voluntary basis. This list may be inaccurate
or incomplete. Just because a domain does not appear on this list is not an implicit
guarantee of that domain's safety. As always, your transactions are your own
responsibility. If you wish to interact with any domain on our warning list, you can do so
by <a @click.prevent="continueHost">continuing at your own risk</a>.
</p>
<p>
If you think this domain is incorrectly flagged or if a blocked legitimate website has
resolved its security issues,<a> please file an issue</a>.
</p>
<h1><ae-icon fill="primary" face="round" name="info" />{{ $t('phishing.detection') }}</h1>
<i18n
v-for="(item, index) in $t('phishing.sections').length"
:key="index"
:path="`phishing.sections[${index}].text`"
tag="p"
>
<template v-slot:insertion>
<a>
{{ $t(`phishing.sections[${index}].insertion`) }}
</a>
</template>
<template v-slot:continueHost>
<a @click.prevent="continueHost">
{{ $t(`phishing.sections[${index}].continueHost`) }}
</a>
</template>
</i18n>
</ae-panel>
</ae-main>
</div>
Expand Down
1 change: 0 additions & 1 deletion src/popup/locales/de.json
Expand Up @@ -168,7 +168,6 @@
"registerName": "Registrieren Sie einen neuen Namen",
"registeredNames": "Ihre registrierten Namen",
"seeAllRegisteredNames": "Alle registrierten Namen anzeigen",
"OkButton": "OK",
"noNames": "Keine Namen gefunden",
"activeAuctions": "Alle aktiven Auktionen",
"auctionInfo": "Auktionsinfo",
Expand Down
43 changes: 37 additions & 6 deletions src/popup/locales/en.json
@@ -1,4 +1,5 @@
{
"ok": "OK",
"onboarding": {
"step_1": {
"title": "Your Account Info",
Expand Down Expand Up @@ -110,8 +111,7 @@
"msg": "Tip/Claim functionality works only on Mainnet"
},
"cancel": "Cancel",
"confirm": "Confirm",
"ok": "OK"
"confirm": "Confirm"
},
"transaction": {
"type": {
Expand Down Expand Up @@ -409,11 +409,13 @@
"registerName": "Register new name",
"registeredNames": "Your registered names",
"seeAllRegisteredNames": "See all registered names",
"OkButton": "OK",
"noNames": "No names found",
"activeAuctions": "All active auctions",
"auctionInfo": "Auction info",
"noAuctions": "No auctions found",
"expiresIn": "Expires in",
"expiresInColon": "Expires in: ",
"blocks": "blocks",
"yourNamesBtn": "Your names",
"allActiveAuctionsBtn": "All active auctions",
"AddNewBtn": "Add new",
Expand Down Expand Up @@ -444,6 +446,7 @@
"term3": "Privacy Policy",
"termsAndConditions": "Terms of Use",
"heading": "Social network with a mission",
"webVersion": "Or use a web version",
"securingAccount": "Securing your account",
"generateWallet": "Generate New Wallet",
"importWallet": "Retrieve existing account",
Expand Down Expand Up @@ -680,7 +683,6 @@
},
"tipPage": {
"back": "Back",
"OkButton": "OK",
"noImage": "No Image",
"domainVerified": "Verified",
"domainNotVerified": "Not verified",
Expand Down Expand Up @@ -710,6 +712,7 @@
"to": "to",
"amountPlaceholder": "Enter amount",
"amountLabel": "Amount",
"empty": "Empty",
"availableLabel": "Available",
"confirm": "Confirm",
"cancel": "Cancel",
Expand Down Expand Up @@ -853,6 +856,10 @@
"message": "Message"
},
"network": {
"url": "URL:",
"edit": "Edit",
"delete": "Delete",
"middleware": "Middleware:",
"allNetworks": "Your networks",
"cancel": "Cancel",
"addNetwork": "Connect to another node",
Expand All @@ -872,6 +879,30 @@
"details": "Technical details:",
"cancel": "Cancel",
"donate": "Donate Data"
}
}
},
},
"phishing": {
"detection": "Superhero Phishing Detection",
"sections": [
{
"text": "This domain is currently on the Superhero domain warning list. This means that based on information available to us, Superhero believes this domain could currently compromise your security and, as an added safety feature, Superhero has restricted access to the site. To override this, please read the rest of this warning for instructions on how to continue at your own risk."
},
{
"text": "There are many reasons sites can appear on our warning list, and our warning list compiles from other widely used industry lists. Such reasons can include known fraud or security risks, such as domains that test positive on the {insertion}. Domains on these warning lists may include outright malicious websites and legitimate websites that have been compromised by a malicious actor.",
"insertion": "Superhero Phishing Detector"
},
{
"text": "Note that this warning list is compiled on a voluntary basis. This list may be inaccurate or incomplete. Just because a domain does not appear on this list is not an implicit guarantee of that domain's safety. As always, your transactions are your own responsibility. If you wish to interact with any domain on our warning list, you can do so by {continueHost}.",
"continueHost": "continuing at your own risk"
},
{
"text": "If you think this domain is incorrectly flagged or if a blocked legitimate website has resolved its security issues, {insertion}.",
"insertion": " please file an issue"
}
]
},
"options": {
"text": "Superhero is Open-source! Visit "
},
"redirecting": "Redirecting"
}
1 change: 0 additions & 1 deletion src/popup/locales/es.json
Expand Up @@ -168,7 +168,6 @@
"registerName": "Registrar nuevo nombre",
"registeredNames": "Sus nombres registrados",
"seeAllRegisteredNames": "Ver todos los nombres registrados",
"OkButton": "OK",
"noNames": "No se encontraron nombres",
"activeAuctions": "Todas las subastas activas",
"allActiveAuctionsBtn": "Todas las subastas activas",
Expand Down
1 change: 0 additions & 1 deletion src/popup/locales/fr.json
Expand Up @@ -168,7 +168,6 @@
"registerName": "Enregistrer un nouveau nom",
"registeredNames": "Vos noms enregistrés",
"seeAllRegisteredNames": "Voir tous les noms enregistrés",
"OkButton": "OK",
"noNames": "Aucun nom trouvé",
"activeAuctions": "Toutes les enchères actives",
"auctionInfo": "Informations sur les enchères",
Expand Down
1 change: 0 additions & 1 deletion src/popup/locales/it.json
Expand Up @@ -168,7 +168,6 @@
"registerName": "Registra un nuovo nome",
"registeredNames": "I tuoi nomi registrati",
"seeAllRegisteredNames": "Vedi tutti i nomi registrati",
"OkButton": "OK",
"noNames": "Nessun nome trovato",
"activeAuctions": "Tutte le aste attive",
"auctionInfo": "Informazioni sull'asta",
Expand Down
1 change: 0 additions & 1 deletion src/popup/locales/ru.json
Expand Up @@ -168,7 +168,6 @@
"registerName": "Register new name",
"registeredNames": "Your registered names",
"seeAllRegisteredNames": "See all registered names",
"OkButton": "OK",
"noNames": "No names found",
"activeAuctions": "All active auctions",
"auctionInfo": "Auction info",
Expand Down
2 changes: 1 addition & 1 deletion src/popup/router/components/AmountSend.vue
Expand Up @@ -10,7 +10,7 @@
:label="$t('pages.tipPage.amountLabel')"
/>
<div class="ml-15 text-left" style="margin-right:auto">
<p class="label hidden">Empty</p>
<p class="label hidden">{{ $t('pages.tipPage.empty') }}</p>
<span class="secondary-text f-14 block l-1" data-cy="amount">
{{ $t('pages.appVUE.aeid') }}
</span>
Expand Down
2 changes: 1 addition & 1 deletion src/popup/router/components/Modals/ClaimSuccess.vue
Expand Up @@ -7,7 +7,7 @@
<span style="color: #2a9cff;">{{ $t('pages.claim.claimed') }}</span>
</div>
<div slot="footer">
<Button @click="resolve">OK</Button>
<Button @click="resolve">{{ $t('ok') }}</Button>
</div>
</Modal>
</template>
Expand Down
2 changes: 1 addition & 1 deletion src/popup/router/components/Modals/Default.vue
Expand Up @@ -3,7 +3,7 @@
<div v-if="title" slot="header">{{ title || $t(`modals.${type}.title`) }}</div>
<div slot="body">{{ msg || $t(`modals.${type}.msg`) }}</div>
<div slot="footer">
<Button @click="resolve">OK</Button>
<Button @click="resolve">{{ $t('ok') }}</Button>
</div>
</Modal>
</template>
Expand Down
2 changes: 1 addition & 1 deletion src/popup/router/components/Modals/TipUrlStatus.vue
Expand Up @@ -6,7 +6,7 @@
</template>
<div slot="body">{{ content.msg }}</div>
<div slot="footer">
<Button class="ok-button" @click="resolve">{{ $t('modals.ok') }}</Button>
<Button class="ok-button" @click="resolve">{{ $t('ok') }}</Button>
</div>
</Modal>
</template>
Expand Down
2 changes: 1 addition & 1 deletion src/popup/router/pages/Index.vue
Expand Up @@ -11,7 +11,7 @@
<a href="https://play.google.com/store/apps/details?id=com.superhero.cordova"
><img src="../../../icons/google-play.svg" alt="Google Play"
/></a>
<span>Or use a web version</span>
<span>{{ $t('pages.index.webVersion') }}</span>
</div>
<CheckBox v-if="!termsAgreed" v-model="terms" data-cy="checkbox" class="checkbox">
<div class="primary-text">
Expand Down
8 changes: 6 additions & 2 deletions src/popup/router/pages/Names.vue
Expand Up @@ -116,7 +116,10 @@
<UserAvatar class="subAccountIcon" :name="info.name" />
<div class="auctionInfo">
<div class="name">{{ info.name }}</div>
<div class="expiration">Expires in {{ info.expiration }} blocks</div>
<div class="expiration">
{{ $t('pages.namingSystemPage.expiresIn') }}{{ info.expiration }}
{{ $t('pages.namingSystemPage.blocks') }}
</div>
</div>
</ae-list-item>
</ae-list>
Expand All @@ -130,7 +133,8 @@
</button>
</div>
<div>
<span>Expires in: </span><b>{{ moreAuInfo.info.expiration }} </b>blocks<br />
<span>{{ $t('pages.namingSystemPage.expiresInColon') }}</span>
<b>{{ moreAuInfo.info.expiration }} </b>{{ $t('pages.namingSystemPage.blocks') }}<br />
<hr />
<span>{{ $t('pages.namingSystemPage.currentBid') }}</span>
<ae-list-item style="border:none" fill="neutral">
Expand Down
10 changes: 6 additions & 4 deletions src/popup/router/pages/Networks.vue
Expand Up @@ -11,20 +11,22 @@
/>
<div class="mr-auto text-left">
<p class="f-16" data-cy="network-name">{{ n.name }}</p>
<p class="f-12 url" data-cy="network-url"><b>Url:</b> {{ n.url }}</p>
<p class="f-12 url" data-cy="network-url">
<b>{{ $t('pages.network.url') }}</b> {{ n.url }}
</p>
<p class="f-12 url" data-cy="network-middleware">
<b>Middleware:</b> {{ n.middlewareUrl }}
<b>{{ $t('pages.network.middleware') }}</b> {{ n.middlewareUrl }}
</p>
</div>
<ae-dropdown direction="right" v-if="!n.system" data-cy="more">
<ae-icon name="more" size="20px" slot="button" />
<li @click="setNetworkEdit(n, index)" data-cy="edit">
<ae-icon name="edit" />
Edit
{{ $t('pages.network.edit') }}
</li>
<li @click="deleteNetwork(n, index)" data-cy="delete">
<ae-icon name="delete" />
Delete
{{ $t('pages.network.delete') }}
</li>
</ae-dropdown>
</ListItem>
Expand Down
4 changes: 3 additions & 1 deletion src/popup/router/pages/SignTransaction.vue
Expand Up @@ -12,7 +12,9 @@
<div class="flex flex-align-center accountTo">
<ae-icon name="square" />
<span class="spendAccountAddr">{{
data.type == 'contractCreate' ? 'New contract' : 'AENS'
data.type == 'contractCreate'
? $t('pages.signTransaction.newContract')
: $t('pages.signTransaction.aens')
}}</span>
</div>
</ae-list-item>
Expand Down
2 changes: 1 addition & 1 deletion src/redirect/App.vue
Expand Up @@ -3,7 +3,7 @@
<div id="info">
<Logo class="logo" />
<div class="loader" v-if="!error"></div>
<p v-if="!error">Redirecting</p>
<p v-if="!error">{{ $t('redirecting') }}</p>
<p v-if="error">{{ error }}</p>
</div>
</div>
Expand Down

0 comments on commit a0eff42

Please sign in to comment.