I set the config correctly
mount = :"en-gb"
locales = [ :"en-gb", :"fr-be" ]
# I18n
# @see https://middlemanapp.com/advanced/localization/
# @see http://www.rubydoc.info/github/svenfuchs/i18n/I18n
activate :i18n do | i |
i.locales = locales
i.mount_at_root = mount
# i.path = "/:locale/"
# i.lang_map = { :'en-gb' => 'en-gb', :'fr-be' => 'fr-be' }
end
In the blog extension the path is set
blog.tag_template = "template/tag.html"
blog.taglink = "{lang}/tag/:tag.html"
Now from the home page I click on a tag and it links through to the correct tag page. i.e. http://localhost:4567/fr-be/tag/tester.html
So you would expect as the locale is in the URL the page would have the correct locale assigned.
However the locale on the template page is set as
Locale
en-gb en-gb
So subsequently the articles pulled in on the Tag pages have the incorrect links when showing the associated tags.
Any help appreciated
Ian
I have created this in Stack overflow - copying here also
https://forum.middlemanapp.com/search?q=tag%20pages%20lang