Skip to content
Discussion options

You must be logged in to vote

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 %}

Replies: 2 comments 2 replies

Comment options

You must be logged in to vote
2 replies
@js2ymmks
Comment options

@squidfunk
Comment options

Answer selected by squidfunk
Comment options

You must be logged in to vote
0 replies
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants