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
It has contentful source as an example as well. Could it be specific to this CMS? You can use this PR in your package.json if it fixes your issue as described in comments to this PR.
Using {{$i18n.locale}} in a page file gives the correct locale. However, using {{$i18n.locale}} in a template file always returns the default locale.
I am using Contentful (@gridsome/source-contentful) to generate template pages with localized data.
Expected behavior
I would expect {{$i18n.locale}} to behave the same in all gridsome file types (layouts, templates, pages).
Environment:
-gridsome-plugin-i18n version 1.6.0
gridsome.config.js
The text was updated successfully, but these errors were encountered: