Add Japanese translations and implement I18N support

- Add Japanese translations for documentation
- Implement I18N framework
- Update mkdocs.yml for multi-language support

This commit significantly enhances the project's internationalization.
This commit is contained in:
Toshiyuki Yoshida 2024-09-26 10:36:54 +09:00
parent 4d84c491f1
commit a50566472f
No known key found for this signature in database
GPG key ID: 94EEDC12CA884526
89 changed files with 20420 additions and 681 deletions

View file

@ -0,0 +1,23 @@
{% if config.theme.language %}
<div
class="rst-versions"
data-toggle="rst-versions"
role="note"
aria-label="versions"
>
<span class="rst-current-version" data-toggle="rst-current-version">
<span class="fa fa-book"> Language </span>
{{ config.theme.language }}
<span class="fa fa-caret-down"></span>
</span>
<div class="rst-other-versions">
{% for lang in config.extra.alternate %} {% if lang.lang !=
config.theme.language %}
<dl>
<dt>{{ lang.name }}</dt>
<dd><a href="{{ lang.link }}">{{ lang.name }}</a></dd>
</dl>
{% endif %} {% endfor %}
</div>
</div>
{% endif %}