You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
In my theme's sidebar.html.twig, I've this: {% 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.
The text was updated successfully, but these errors were encountered:
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.
QSaman
added a commit
to QSaman/ebon_hawk
that referenced
this issue
Jun 8, 2020
I don't want my spanish page to show english tags.
This is how I've fixed this;
taxonomies: [category,tag,tages] # added tages for spanish tags
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.
The text was updated successfully, but these errors were encountered: