mirror of https://github.com/luizdepra/hugo-coder.git

ShortArrow
26.13.2022 20bc7e67221709d340ce986b1cdf6d23a0e1a750
Update ja-jp translations and add japanese fonts (#746)

### Prerequisites

- [x] ~This pull request fixes a bug.~
- [x] This pull request adds a feature.
- [x] ~This pull request introduces breaking change.~

### Description

Add Japanese font and Update Japanese translations. Like #555 .

### Issues Resolved

- Strings that should be displayed in Japanese fonts are displayed in
Chinese fonts.
- If Japanese is written in Chinese fonts, it is difficult for Japanese
people to read.
- Used different languages for singular and plural. en-us and ja-jp.
- Wrong translation, `auther = "筆者"` is NG.
- `auther = "著者"` is good.
- `writer = "筆者, 執筆者"` is good.
- `powered_by` can usually be understood in English by Japanese people
who need to read that part.

### Checklist

#### General

- [x] Describe what changes are being made
- [x] Explain why and how the changes were necessary and implemented
respectively
- [x] Reference issue with `#<ISSUE_NO>` if applicable

#### Resources

- [x] If you have changed any SCSS code, run `make release` to
regenerate all CSS files

#### Contributors

- [x] Add yourself to `CONTRIBUTORS.md` if you aren't on it already
3 files modified
16 ■■■■■ changed files
CONTRIBUTORS.md 1 ●●●● patch | view | raw | blame | history
assets/scss/_variables.scss 1 ●●●● patch | view | raw | blame | history
i18n/ja.toml 14 ●●●● patch | view | raw | blame | history
CONTRIBUTORS.md
@@ -121,3 +121,4 @@
- [xiaotianxt](https://github.com/xiaotianxt)
- [Nour Agha](https://github.com/nourkagha)
- [Brian Lachniet](https://github.com/blachniet)
- [ShortArrow](https://github.com/ShortArrow)
assets/scss/_variables.scss
@@ -8,6 +8,7 @@
Cantarell,
"Helvetica Neue",
Helvetica,
"游ゴシック",
"PingFang SC",
STXihei,"华文细黑",
"Microsoft YaHei","微软雅黑",
i18n/ja.toml
@@ -1,18 +1,18 @@
[categories]
one = "カテゴリー"
other = "categories"
other = "カテゴリー"
[tags]
one = "タグ"
other = "tags"
other = "タグ"
[series]
one = "シリーズ"
other = "series"
other = "シリーズ"
[authors]
one = "筆者"
other = "authors"
one = "著者"
other = "著者"
[posts]
other = "記事"
@@ -34,7 +34,7 @@
other = "Licensed under"
[powered_by]
other = "利用技術"
other = "Powered by"
[see_also]
other = "関連記事:"
@@ -61,4 +61,4 @@
other = "error"
[link_to_heading]
other = "Link to heading"
other = "見出しへのリンク"