privacyguides.org/theme/partials/language.html
2023-02-27 13:54:55 -06:00

7 lines
408 B
HTML

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