Skip to content

Commit 92e22a3

Browse files
committed
Add Japanese translation of the Rails Doctrine
This translation is based entirely on the original Japanese version that takahashim posted on the Japanese tech site Qiita: https://qiita.com/takahashim/items/85380dff5eec3bd99a6c I spoke with takahashim about contributing this to the rails/website repository during RubyKaigi 2025. Since takahashim is currently busy, I've opened this PR on his behalf. For that reason, I've credited Masayoshi Takahashi as the translator. There are a few differences from takahashim's original translation: - The nine themes are not accompanied by the English text. This is to keep things consistent with other language editions. - I didn't wrap code in `<code>` tags in the text, in line with the current version of "The Rails Doctrine" on rails/website. If needed, this formatting can be added in a separate PR to improve readability. Here are some translator notes. Please feel free to provide any feedback if updates are needed: - The Japanese title remains "The Rails Doctrine" to match the original translation. - The translator's name is shown as Masayoshi Takahashi, using the same name format as on GitHub. Let me know if you'd prefer it to appear in kanji instead. Lastly, the change in `_language.scss` is to adjust the height of the language dropdown to accommodate the addition of Japanese. The order of the dropdown items is based on language codes.
1 parent dc649cc commit 92e22a3

File tree

9 files changed

+301
-1
lines changed

9 files changed

+301
-1
lines changed

_sass/modules/_language.scss

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -33,7 +33,7 @@
3333

3434
ul {
3535
box-shadow: 0 15px 70px 5px rgba($color-black, 0.15), 0 1px 1px rgba($color-black, 0.04);
36-
height: 256px;
36+
height: 286px;
3737
}
3838

3939
}

doctrine/de.html

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -41,6 +41,9 @@ <h1>Die Rails-Doktrin.</h1>
4141
<li>
4242
<a href="/doctrine/fr"><span>Français</span></a>
4343
</li>
44+
<li>
45+
<a href="/doctrine/ja"><span>日本語</span></a>
46+
</li>
4447
<li>
4548
<a href="/doctrine/ru"><span>Russian</span></a>
4649
</li>

doctrine/es.html

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -26,6 +26,7 @@ <h1>La Doctrina Rails.</h1>
2626
<li><a href="/doctrine/de"><span>Deutsch</span></a></li>
2727
<li><a href="/doctrine"><span>English</span></a></li>
2828
<li><a href="/doctrine/fr"><span>Français</span></a></li>
29+
<li><a href="/doctrine/ja"><span>日本語</span></a></li>
2930
<li><a href="/doctrine/ru"><span>Russian</span></a></li>
3031
<li><a href="/doctrine/zh_cn"><span>简体中文</span></a></li>
3132
<li><a href="/doctrine/zh_tw"><span>繁體中文</span></a></li>

doctrine/fr.html

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -26,6 +26,7 @@ <h1>La doctrine Rails.</h1>
2626
<li><a href="/doctrine"><span>English</span></a></li>
2727
<li><a href="/doctrine/de"><span>Deutsch</span></a></li>
2828
<li><a href="/doctrine/es"><span>Español</span></a></li>
29+
<li><a href="/doctrine/ja"><span>日本語</span></a></li>
2930
<li><a href="/doctrine/ru"><span>Russian</span></a></li>
3031
<li><a href="/doctrine/zh_cn"><span>简体中文</span></a></li>
3132
<li><a href="/doctrine/zh_tw"><span>繁體中文</span></a></li>

doctrine/index.html

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -26,6 +26,7 @@ <h1>The Rails Doctrine.</h1>
2626
<li><a href="/doctrine/de"><span>Deutsch</span></a></li>
2727
<li><a href="/doctrine/es"><span>Español</span></a></li>
2828
<li><a href="/doctrine/fr"><span>Français</span></a></li>
29+
<li><a href="/doctrine/ja"><span>日本語</span></a></li>
2930
<li><a href="/doctrine/ru"><span>Russian</span></a></li>
3031
<li><a href="/doctrine/zh_cn"><span>简体中文</span></a></li>
3132
<li><a href="/doctrine/zh_tw"><span>繁體中文</span></a></li>

doctrine/ja.html

Lines changed: 291 additions & 0 deletions
Large diffs are not rendered by default.

doctrine/ru.html

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -28,6 +28,7 @@ <h1>Rails Соглашение</h1>
2828
<li><a href="/doctrine/de"><span>Deutsch</span></a></li>
2929
<li><a href="/doctrine/es"><span>Español</span></a></li>
3030
<li><a href="/doctrine/fr"><span>Français</span></a></li>
31+
<li><a href="/doctrine/ja"><span>日本語</span></a></li>
3132
<li><a href="/doctrine/zh_cn"><span>简体中文</span></a></li>
3233
<li><a href="/doctrine/zh_tw"><span>繁體中文</span></a></li>
3334
</ul>

doctrine/zh_cn.html

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -27,6 +27,7 @@ <h1>Rails 信条</h1>
2727
<li><a href="/doctrine/de"><span>Deutsch</span></a></li>
2828
<li><a href="/doctrine/es"><span>Español</span></a></li>
2929
<li><a href="/doctrine/fr"><span>Français</span></a></li>
30+
<li><a href="/doctrine/ja"><span>日本語</span></a></li>
3031
<li><a href="/doctrine/ru"><span>Russian</span></a></li>
3132
<li><a href="/doctrine/zh_tw"><span>繁體中文</span></a></li>
3233
</ul>

doctrine/zh_tw.html

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -28,6 +28,7 @@ <h1>Rails 基本主義</h1>
2828
<li><a href="/doctrine/de"><span>Deutsch</span></a></li>
2929
<li><a href="/doctrine/es"><span>Español</span></a></li>
3030
<li><a href="/doctrine/fr"><span>Français</span></a></li>
31+
<li><a href="/doctrine/ja"><span>日本語</span></a></li>
3132
<li><a href="/doctrine/ru"><span>Russian</span></a></li>
3233
<li><a href="/doctrine/zh_cn"><span>简体中文</span></a></li>
3334
</ul>

0 commit comments

Comments
 (0)