Skip to content
Merged
Show file tree
Hide file tree
Changes from all 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
3 changes: 2 additions & 1 deletion LANGS.md
Original file line number Diff line number Diff line change
Expand Up @@ -3,4 +3,5 @@
- [Türkiye](tr/)
- [Français](fr/)
- [Indonesian](id/)
- [Español](es/)
- [Español](es/)
- [Deutsch](de/)
18 changes: 12 additions & 6 deletions _layouts/website/languages.html
Original file line number Diff line number Diff line change
Expand Up @@ -45,12 +45,18 @@ <h2><i class="fas fa-language"></i> {{ "LANGS_CHOOSE"|t }}</h2>
<h3>{{ lang.title }}</h3>
</div>
<div class="card-actions">
<a href="{{ (lang.id + "/README.md")|contentURL }}" class="action-btn preview">
<i class="fas fa-eye"></i> Preview
</a>
<a href="https://github.com/sumn2u/learn-javascript/raw/main/books/book_{{ lang.id }}.pdf" class="action-btn download">
<i class="fas fa-download"></i> PDF
</a>
{% if lang.id == 'de' %}
<a href="{{ (lang.id + "/README.md")|contentURL }}" class="action-btn preview">
<i class="fas fa-eye"></i> Preview
</a>
{% else %}
<a href="{{ (lang.id + "/README.md")|contentURL }}" class="action-btn preview">
<i class="fas fa-eye"></i> Preview
</a>
<a href="https://github.com/sumn2u/learn-javascript/raw/main/books/book_{{ lang.id }}.pdf" class="action-btn download">
<i class="fas fa-download"></i> PDF
</a>
{% endif %}
</div>
</div>
{% endfor %}
Expand Down
4 changes: 4 additions & 0 deletions book.json
Original file line number Diff line number Diff line change
Expand Up @@ -92,6 +92,10 @@
{
"config": "es",
"text": "Español"
},
{
"config": "de",
"text": "Deutsch"
}
]
}
Expand Down
4 changes: 4 additions & 0 deletions np/book.json
Original file line number Diff line number Diff line change
Expand Up @@ -85,6 +85,10 @@
{
"config": "es",
"text": "Español"
},
{
"config": "de",
"text": "Deutsch"
}
]
}
Expand Down
4 changes: 4 additions & 0 deletions tr/book.json
Original file line number Diff line number Diff line change
Expand Up @@ -86,6 +86,10 @@
{
"config": "es",
"text": "Español"
},
{
"config": "de",
"text": "Deutsch"
}
]
}
Expand Down