privacyguides.org/theme/partials/language.html

7 lines
408 B
HTML
Raw Normal View History

2023-02-27 13:36:42 -05:00
{% import "partials/languages/" ~ config.theme.language ~ ".html" as lang %}
{% import "partials/languages/en.html" as fallback %}
{% import "overrides/strings." ~ config.theme.language ~ ".html" as customlang with context %}
{% import "overrides/strings.en.html" as customfallback %}
{% macro t(key) %}{{ lang.t(key) or fallback.t(key) or customlang.t(key) or customfallback.t(key) or key }}{% endmacro %}