Skip to content

Commit b0ab5e7

Browse files
authored
Localize alert banner (#440)
* Localize banner
1 parent b96fd8d commit b0ab5e7

File tree

3 files changed

+26
-14
lines changed

3 files changed

+26
-14
lines changed

frontend/src/i18n/locales/en-us.json

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,10 @@
1111
"sending-funds": "Sending Funds",
1212
"send-first": "Get the address, ENS, or CNS name of the person you're sending funds to",
1313
"send-second": "Complete the form on the <span class=\"text-bold\">Send</span> page"
14-
}
14+
},
15+
"banner": "Umbra is part of Gitcoin's Alpha matching round. Please consider {supporting} development. {LearnMore}",
16+
"supporting": "supporting",
17+
"learn-more": "Learn More."
1518
},
1619
"Home-action-card": {
1720
"send": "Send",

frontend/src/i18n/locales/zh-cn.json

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,10 @@
1111
"sending-funds": "发送资金",
1212
"send-first": "获取您要向其汇款的人员的地址、ENS 或 CNS 姓名",
1313
"send-second": "填写<span class=\"text-bold\">发送</span>页面上的表单"
14-
}
14+
},
15+
"banner": "Umbra正在Gitcoin Alpha轮里匹配捐赠。请考虑{supporting}开发。{LearnMore}。",
16+
"supporting": "支持",
17+
"learn-more": "了解更多"
1518
},
1619
"Home-action-card": {
1720
"send": "发送",

frontend/src/layouts/BaseLayout.vue

Lines changed: 18 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -1,18 +1,24 @@
11
<template>
22
<div>
33
<div class="alert-banner text-bold text-center q-py-md">
4-
Umbra is part of Gitcoin's Alpha matching round. Please consider
5-
<a
6-
class="alert-banner-hyperlink"
7-
href="https://grant-explorer.gitcoin.co/#/round/1/0xd95a1969c41112cee9a2c931e849bcef36a16f4c/0x9fb5b0d0698dc64cbd3a01c5205ebc5ef609e7d20c21ce20ee2c73905a8309a0-0xd95a1969c41112cee9a2c931e849bcef36a16f4c"
8-
target="_blank"
9-
>
10-
supporting
11-
</a>
12-
development.
13-
<a class="alert-banner-hyperlink" href="https://twitter.com/UmbraCash/status/1615833060385370112" target="_blank">
14-
Learn more.
15-
</a>
4+
<i18n path="Home.banner" tag="span">
5+
<template v-slot:supporting>
6+
<a
7+
class="alert-banner-hyperlink"
8+
href="https://grant-explorer.gitcoin.co/#/round/1/0xd95a1969c41112cee9a2c931e849bcef36a16f4c/0x9fb5b0d0698dc64cbd3a01c5205ebc5ef609e7d20c21ce20ee2c73905a8309a0-0xd95a1969c41112cee9a2c931e849bcef36a16f4c"
9+
target="_blank"
10+
>{{ $t('Home.supporting') }}</a
11+
>
12+
</template>
13+
<template v-slot:LearnMore>
14+
<a
15+
class="alert-banner-hyperlink"
16+
href="https://twitter.com/UmbraCash/status/1615833060385370112"
17+
target="_blank"
18+
>{{ $t('Home.learn-more') }}</a
19+
>
20+
</template>
21+
</i18n>
1622
</div>
1723
<q-layout view="hhh lpr ffr" style="z-index: 0">
1824
<q-header class="q-mx-md q-mt-md" style="color: #000000; background-color: rgba(0, 0, 0, 0)">

0 commit comments

Comments
 (0)