{% import "partials/language/" + config.theme.language + ".html" as lang %} {% import "partials/language/en.html" as oops %} {% macro t(key) %}{{ { "search.language": ( config.extra.search | default({}) ).language | default(config.theme.language, true), "search.tokenizer": ( config.extra.search | default({}) ).tokenizer | default("", true), }[key] or lang.t(key) or oops.t(key) }}{% endmacro %}