Skip to content

Commit 3ae6359

Browse files
authored
Merge pull request #432 from cofacts/ja
Japanese version
2 parents 48304a1 + b003334 commit 3ae6359

File tree

7 files changed

+1241
-6
lines changed

7 files changed

+1241
-6
lines changed

README.md

+1
Original file line numberDiff line numberDiff line change
@@ -117,6 +117,7 @@ The translation files are located under `i18n/`, in [Gettext PO format](https://
117117

118118
- `en_US.po`: Since the language used in code is already English, this empty translation file exists to simplify settings.
119119
- `zh_TW.po`: Traditional Chinese translation.
120+
- `ja.po`: Japanese translation.
120121

121122
### Supporting other languages
122123

components/LandingPage/SectionCanDo.js

+5-5
Original file line numberDiff line numberDiff line change
@@ -52,7 +52,7 @@ const useStyles = makeStyles(theme => ({
5252
},
5353
text: {
5454
fontWeight: 500,
55-
fontSize: LANG === 'en-US' ? 32 : 34,
55+
fontSize: 32,
5656
lineHeight: 1.45,
5757
letterSpacing: '0.25px',
5858
color: 'white',
@@ -90,12 +90,12 @@ const useStyles = makeStyles(theme => ({
9090
cardContainer: {
9191
display: 'flex',
9292
justifyContent: 'space-between',
93-
alignItems: 'center',
9493
maxWidth: 1050,
9594
margin: '0 auto',
9695

9796
[theme.breakpoints.down('sm')]: {
9897
flexDirection: 'column',
98+
alignItems: 'center',
9999
},
100100
},
101101
card: {
@@ -105,7 +105,6 @@ const useStyles = makeStyles(theme => ({
105105
alignItems: 'center',
106106
width: 'calc(50% - 30px)',
107107
maxWidth: 480,
108-
height: LANG === 'en-US' ? 520 : 425,
109108
borderRadius: 8,
110109

111110
[theme.breakpoints.down('md')]: {
@@ -131,6 +130,7 @@ const useStyles = makeStyles(theme => ({
131130
},
132131
},
133132
or: {
133+
alignSelf: 'center',
134134
[theme.breakpoints.down('sm')]: {
135135
margin: '12px 0',
136136
},
@@ -184,11 +184,11 @@ const useStyles = makeStyles(theme => ({
184184
},
185185
},
186186
lineContent: {
187-
marginTop: 32,
187+
margin: '32px 0',
188188
padding: '0 14px',
189189

190190
[theme.breakpoints.down('sm')]: {
191-
marginTop: 17,
191+
margin: '16px 0',
192192
padding: 0,
193193
},
194194
},

components/LandingPage/SectionNews.js

+12
Original file line numberDiff line numberDiff line change
@@ -146,6 +146,18 @@ const NEWS = {
146146
'https://g0v.news/df9ca1460995',
147147
],
148148
],
149+
ja: [
150+
[
151+
'2020-02-06 NHK',
152+
'台湾 フェイクニュース最前線',
153+
'https://www.nhk.or.jp/kokusaihoudou/archive/2020/02/0206.html',
154+
],
155+
[
156+
'2020-01-14 NHK',
157+
'米中攻防 最前線で何が ~台湾総統選の裏で~',
158+
'https://www.nhk.or.jp/gendai/articles/4371/',
159+
],
160+
],
149161
}[process.env.LOCALE];
150162

151163
const useStyles = makeStyles(theme => ({

components/LandingPage/Stats.js

-1
Original file line numberDiff line numberDiff line change
@@ -85,7 +85,6 @@ const useStyles = makeStyles(theme => ({
8585
color: theme.palette.secondary[500],
8686
padding: '0 27px',
8787
width: '25%',
88-
whiteSpace: process.env.LOCALE === 'en_US' ? 'initial' : 'nowrap',
8988
textAlign: 'center',
9089

9190
'& a': {

hooks/build

+1
Original file line numberDiff line numberDiff line change
@@ -3,3 +3,4 @@
33
# Variables on docker cloud: https://docs.docker.com/docker-hub/builds/advanced/
44
docker build --build-arg APP_ID=RUMORS_SITE --build-arg LOCALE=en_US -t $IMAGE_NAME-en .
55
docker build --build-arg APP_ID=RUMORS_SITE --build-arg LOCALE=zh_TW -t $IMAGE_NAME-tw .
6+
docker build --build-arg APP_ID=RUMORS_SITE --build-arg LOCALE=ja -t $IMAGE_NAME-ja .

hooks/push

+1
Original file line numberDiff line numberDiff line change
@@ -3,3 +3,4 @@
33
# Variables on docker cloud: https://docs.docker.com/docker-hub/builds/advanced/
44
docker push $IMAGE_NAME-en
55
docker push $IMAGE_NAME-tw
6+
docker push $IMAGE_NAME-ja

0 commit comments

Comments
 (0)