Open spamrakuen opened 6 years ago
There's actually no strings in the plugin. The taxonomy comes directly from Grav, and each page in each translation can have it's own translated taxonomy types. Basically, as you have done already.
You shouldn't need to pass in the translated taxonomy as it should already be translated for the current language.
It works but creates each language url (en_tag
, fr_tag
etc) instead of tag
. The usual tag
in URL doesn't work.
I don't want my spanish page to show english tags.
This is how I've fixed this;
enabled: true route: '/blog' language: en: __taxonomy: 'tag' es: __taxonomy: 'tages'
(where __ is a tab)
{% include 'partials/taxonomylist.html.twig' with {'base_url':new_base_url, 'taxonomy':config.plugins.taxonomylist.language[grav.language.getLanguage()].taxonomy} %}
This way, the plugin becomes multilanguage.