-
hello I have a problem with "Previous/Next" in the footer being converted to Japanese when Japanese is specified. I would like to keep this part in English, so please tell me how to do that. I feel that it would be more natural to leave the navigation in English, without converting it to Japanese.
|
Beta Was this translation helpful? Give feedback.
Replies: 2 comments 2 replies
-
You can use custom translations, something like: <!-- Import translations for language and fallback -->
{% import "partials/languages/ja.html" as language %}
{% import "partials/languages/en.html" as fallback %}
<!-- Define custom translations -->
{% macro override(key) %}{{ {
"footer.previous": "Previous",
"footer.next": "Next"
}[key] }}{% endmacro %}
<!-- Re-export translations -->
{% macro t(key) %}{{
override(key) or language(key) or fallback.t(key)
}}{% endmacro %} |
Beta Was this translation helpful? Give feedback.
-
Thank you for your always prompt response.
overrides\partials\languages\ja.html
On the other hand, with the first method you recommended, I get an error when I run. I have not been able to figure out the cause of this for a long time. This method seemed smarter to me and I would like to master it. Anyway, Now that I understand how to do the customization guide, let's assume that I have solved the problem for the moment. |
Beta Was this translation helpful? Give feedback.
You can use custom translations, something like: