mirror of
https://github.com/privacyguides/privacyguides.org.git
synced 2025-07-02 09:42:35 +00:00
Support l10n of config strings (#2045)
This commit is contained in:
6
theme/partials/language.html
Normal file
6
theme/partials/language.html
Normal file
@ -0,0 +1,6 @@
|
||||
{% 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 %}
|
Reference in New Issue
Block a user