treewide: enable Italian language

This commit is contained in:
lifehackerhansol 2023-12-19 12:59:00 -08:00
parent 8431a791bc
commit 6bed2fb4cf
No known key found for this signature in database
GPG key ID: 80FB184AFC0B3B0E
2 changed files with 8 additions and 1 deletions

View file

@ -197,7 +197,7 @@ exclude: [
_pages/fr_FR, _pages/fr_FR,
_pages/he_IL, _pages/he_IL,
_pages/hu_HU, _pages/hu_HU,
_pages/it_IT, # _pages/it_IT,
_pages/ja_JP, _pages/ja_JP,
_pages/ko_KR, _pages/ko_KR,
_pages/nl_NL, _pages/nl_NL,
@ -331,3 +331,9 @@ defaults:
type: pages type: pages
values: values:
permalink: /index:output_ext permalink: /index:output_ext
- scope:
path: "_pages/it_IT"
type: pages
values:
permalink: /it_IT/:basename:output_ext
lang: it

View file

@ -54,6 +54,7 @@
{% assign langless_url = "" %} {% assign langless_url = "" %}
{% endif %} {% endif %}
<li class="masthead__menu-item"><a href="{{ site.url }}/{{ langless_url }}">English</a></li> <li class="masthead__menu-item"><a href="{{ site.url }}/{{ langless_url }}">English</a></li>
<li class="masthead__menu-item"><a href="{{ site.url }}/it_IT/{{ langless_url }}">Italiano</a></li>
</ul> </ul>
<button class="greedy-nav__toggle hidden" type="button"> <button class="greedy-nav__toggle hidden" type="button">
<span class="visually-hidden">{{ site.data.ui-text[site.locale].menu_label | default: "Toggle menu" }}</span> <span class="visually-hidden">{{ site.data.ui-text[site.locale].menu_label | default: "Toggle menu" }}</span>