Skip to content

Commit bc98ee6

Browse files
committed
added deutsch support
1 parent b39b2ca commit bc98ee6

File tree

5 files changed

+26
-7
lines changed

5 files changed

+26
-7
lines changed

LANGS.md

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,4 +3,5 @@
33
- [Türkiye](tr/)
44
- [Français](fr/)
55
- [Indonesian](id/)
6-
- [Español](es/)
6+
- [Español](es/)
7+
- [Deutsch](de/)

_layouts/website/languages.html

Lines changed: 12 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -45,12 +45,18 @@ <h2><i class="fas fa-language"></i> {{ "LANGS_CHOOSE"|t }}</h2>
4545
<h3>{{ lang.title }}</h3>
4646
</div>
4747
<div class="card-actions">
48-
<a href="{{ (lang.id + "/README.md")|contentURL }}" class="action-btn preview">
49-
<i class="fas fa-eye"></i> Preview
50-
</a>
51-
<a href="https://github.com/sumn2u/learn-javascript/raw/main/books/book_{{ lang.id }}.pdf" class="action-btn download">
52-
<i class="fas fa-download"></i> PDF
53-
</a>
48+
{% if lang.id == 'de' %}
49+
<a href="{{ (lang.id + "/README.md")|contentURL }}" class="action-btn preview">
50+
<i class="fas fa-eye"></i> Preview
51+
</a>
52+
{% else %}
53+
<a href="{{ (lang.id + "/README.md")|contentURL }}" class="action-btn preview">
54+
<i class="fas fa-eye"></i> Preview
55+
</a>
56+
<a href="https://github.com/sumn2u/learn-javascript/raw/main/books/book_{{ lang.id }}.pdf" class="action-btn download">
57+
<i class="fas fa-download"></i> PDF
58+
</a>
59+
{% endif %}
5460
</div>
5561
</div>
5662
{% endfor %}

book.json

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -92,6 +92,10 @@
9292
{
9393
"config": "es",
9494
"text": "Español"
95+
},
96+
{
97+
"config": "de",
98+
"text": "Deutsch"
9599
}
96100
]
97101
}

np/book.json

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -85,6 +85,10 @@
8585
{
8686
"config": "es",
8787
"text": "Español"
88+
},
89+
{
90+
"config": "de",
91+
"text": "Deutsch"
8892
}
8993
]
9094
}

tr/book.json

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -86,6 +86,10 @@
8686
{
8787
"config": "es",
8888
"text": "Español"
89+
},
90+
{
91+
"config": "de",
92+
"text": "Deutsch"
8993
}
9094
]
9195
}

0 commit comments

Comments
 (0)