Skip to content

Commit

Permalink
translate
Browse files Browse the repository at this point in the history
  • Loading branch information
chendatony31 committed Oct 15, 2018
1 parent 7001b61 commit 5097cd8
Show file tree
Hide file tree
Showing 4 changed files with 28 additions and 18 deletions.
2 changes: 1 addition & 1 deletion index.html
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@
<link rel="stylesheet" href="./static/css/dialog.css">
<script src="./static/js/jquery.min.js"></script>
<script src="./static/js/mDialogMin.js"></script>
<title>airgrab</title>
<title>Airgrab</title>
</head>

<body>
Expand Down
19 changes: 9 additions & 10 deletions src/components/HelloWorld.vue
Original file line number Diff line number Diff line change
Expand Up @@ -51,7 +51,7 @@ export default {
description:
"Infiniverse is a decentralized augmented reality platform and virtual world on top of the real world. Infinicoin lets you register land and transact on the Infiniverse marketplace.",
website: "https://www.infiniverse.net/",
keywords: '1:1 Airgrab, 快照时间12月前',
keywords: '1:1 Airgrab, ' + this.$t('i18nView.infSnapshot'),
contract: "infinicoinio",
claimKey: 'owner',
actionName: "open",
Expand All @@ -67,7 +67,7 @@ export default {
description:
"Play zero house edge, provably fair and truly decentralized games. All EOS Token holders can get their DEOS tokens by 1:1 rate",
website: "https://deosgames.com/",
keywords: '创世账号,快照时间5月25日',
keywords: this.$t('i18nView.genesis') + ',' + this.$t('i18nView.deosSnapshot'),
contract: "thedeosgames",
claimKey: 'owner',
actionName: "claim",
Expand All @@ -83,7 +83,7 @@ export default {
description:
"Payments & Budget Management Decentralized App Leveraging the Blockchain, Cryptocurrency and AI Technologies. Drops happen every 24 hours, Airgrab Today!",
website: "https://www.atidium.io/",
keywords: this.$t('i18nView.creation'),
keywords: this.$t('i18nView.genesis') + ',' + this.$t('i18nView.atdRatio'),
contract: "eosatidiumio",
claimKey: 'owner',
actionName: "signup",
Expand Down Expand Up @@ -131,7 +131,7 @@ export default {
description:
"Trustworthy, cost-free and pair EOS dice betting platform. Sign up for 1000 DICE",
website: "https://betdice.one/",
keywords: '已结束',
keywords: this.$t('i18nView.finished'),
contract: "betdicetoken",
claimKey: 'owner',
actionName: "signup",
Expand All @@ -146,7 +146,7 @@ export default {
logo: 'https://dapp.mytokenpocket.vip/token-logo/EOS_ridlridlcoin_RIDL.png',
description:
"Support Scatter and trustless reputation on blockchain.",
keywords: '已结束',
keywords: this.$t('i18nView.finished'),
website: "https://ridl.get-scatter.com",
contract: "ridlridlcoin",
claimKey: 'claimer',
Expand All @@ -160,7 +160,7 @@ export default {
logo: 'https://dapp.mytokenpocket.vip/token-logo/EOS_trybenetwork_TRYBE.png',
description:
"A tokenized knowledge and content sharing platform. Airgrab now for 50 TRYBE tokens (dropped 11th September). Sign up to the platform for a bonus 100 tokens.",
keywords: '已结束',
keywords: this.$t('i18nView.finished'),
website: "https://trybe.one",
contract: "trybenetwork",
claimKey: 'claimer',
Expand All @@ -175,7 +175,7 @@ export default {
description:
"Sign Up and use your RAM (0.22kb) for receiving 10,000 SEVEN Tokens",
website: "https://www.se7ens.io/",
keywords: '已结束',
keywords: this.$t('i18nView.finished'),
contract: "xxxsevensxxx",
claimKey: 'owner',
actionName: "signup",
Expand All @@ -199,7 +199,6 @@ export default {
}
});
console.log(this.$i18n);
},
methods: {
Expand Down Expand Up @@ -229,11 +228,11 @@ export default {
address: this.currentAddress
}).then(res => {
if (res.result) {
Dialog.init('执行成功');
Dialog.init(this.$t('i18nView.successTip'));
this.getUserInfo();
}
else {
Dialog.init('执行失败');
Dialog.init(this.$t('i18nView.failTip'));
this.getUserInfo();
}
});
Expand Down
16 changes: 11 additions & 5 deletions src/i18n/lang/en.js
Original file line number Diff line number Diff line change
Expand Up @@ -2,11 +2,17 @@ const en = {
i18nView: {
language: 'Language',
account: 'Account',
text: 'AirGrab is a way of distributing candy that consumes the user\'s memory (about 0.25KB per token). After executing AirGrab, we need to wait for the airdrop of the project side. For specific airdrop time, please see the introduction and official website of each project.',
synopsis: 'Synopsis',
keyword: 'Keyword',
creation: 'Creation account, airdrop ratio 1:1',
data: 'Data source of this tool'
text: 'AirGrab is a way of distributing candies that consumes the user\'s RAM (about 0.25KB per kind of token). After AirGrab, we will get the airdrop according to the related team. For specific airdrop time, please see the introduction and official website of each project.',
synopsis: 'Description',
keyword: 'Keywords',
data: 'Data Source',
finished: 'Finished',
infSnapshot: 'Snapshot before Dec',
genesis: 'Genesis account',
atdRatio: 'airdrop ratio 1:1',
deosSnapshot: 'Snapshot May 25',
successTip: 'Succeed',
failTip: 'Failed'
}
};

Expand Down
9 changes: 7 additions & 2 deletions src/i18n/lang/zh.js
Original file line number Diff line number Diff line change
Expand Up @@ -5,9 +5,14 @@ const zh = {
text: 'AirGrab 是一种糖果分发的方式,需要消耗用户的内存(每种代币大概需要0.25KB 左右)。执行AirGrab后需要等待项目方空投。具体空投时间请查看各项目的简介和官网。',
synopsis: '简介',
keyword: '关键字',
creation: '创世账号, 空投比例1:1',
data: '本工具数据来源',

finished: '已结束',
infSnapshot: '快照时间12月前',
genesis: '创世账号',
atdRatio: '空投比例1:1',
deosSnapshot: '快照时间5月25日',
successTip: '执行成功',
failTip: '执行失败'
}
};

Expand Down

0 comments on commit 5097cd8

Please sign in to comment.