Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Japanese version #432

Merged
merged 3 commits into from
May 5, 2021
Merged
Show file tree
Hide file tree
Changes from 2 commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -117,6 +117,7 @@ The translation files are located under `i18n/`, in [Gettext PO format](https://

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

### Supporting other languages

Expand Down
12 changes: 12 additions & 0 deletions components/LandingPage/SectionNews.js
Original file line number Diff line number Diff line change
Expand Up @@ -146,6 +146,18 @@ const NEWS = {
'https://g0v.news/df9ca1460995',
],
],
ja: [
[
'2020-02-06 NHK',
'台湾 フェイクニュース最前線',
'https://www.nhk.or.jp/kokusaihoudou/archive/2020/02/0206.html',
],
[
'2020-01-14 NHK',
'米中攻防 最前線で何が ~台湾総統選の裏で~',
'https://www.nhk.or.jp/gendai/articles/4371/',
],
],
}[process.env.LOCALE];

const useStyles = makeStyles(theme => ({
Expand Down
1 change: 0 additions & 1 deletion components/LandingPage/Stats.js
Original file line number Diff line number Diff line change
Expand Up @@ -85,7 +85,6 @@ const useStyles = makeStyles(theme => ({
color: theme.palette.secondary[500],
padding: '0 27px',
width: '25%',
whiteSpace: process.env.LOCALE === 'en_US' ? 'initial' : 'nowrap',
textAlign: 'center',

'& a': {
Expand Down
1 change: 1 addition & 0 deletions hooks/build
Original file line number Diff line number Diff line change
Expand Up @@ -3,3 +3,4 @@
# Variables on docker cloud: https://docs.docker.com/docker-hub/builds/advanced/
docker build --build-arg APP_ID=RUMORS_SITE --build-arg LOCALE=en_US -t $IMAGE_NAME-en .
docker build --build-arg APP_ID=RUMORS_SITE --build-arg LOCALE=zh_TW -t $IMAGE_NAME-tw .
docker build --build-arg APP_ID=RUMORS_SITE --build-arg LOCALE=ja -t $IMAGE_NAME-ja .
1 change: 1 addition & 0 deletions hooks/push
Original file line number Diff line number Diff line change
Expand Up @@ -3,3 +3,4 @@
# Variables on docker cloud: https://docs.docker.com/docker-hub/builds/advanced/
docker push $IMAGE_NAME-en
docker push $IMAGE_NAME-tw
docker push $IMAGE_NAME-ja
Loading