Site locale syntax does not work with Jekyll 4 #2720
-
Environment
Expected behaviorWhen I set the locale to another language, such as France, it does not display France as expected, still in English, even I stopped and started the Jekyll server again. I dug into the template a little bit and find out that this syntax:
will return nill, instead of a locale string. Steps to reproduce the behaviorinstall minimal-mistakes on Jekyll 4 (starting from |
Beta Was this translation helpful? Give feedback.
Replies: 5 comments
-
Check the docs: From |
Beta Was this translation helpful? Give feedback.
-
Thanks, @iBug, in my repo, I did not keep any copy of data files. When I mentioned the syntax and the template, I just want to show the issue behind that. |
Beta Was this translation helpful? Give feedback.
-
At some point I removed the jekyll-data plugin as a dependency. I had a reason but don't remember what it was. I could be wrong on that as I haven't tested. I seem to remember Jekyll core adding this as a feature and that could be why I removed the plugin, or not. |
Beta Was this translation helpful? Give feedback.
-
@quanengineering Sorry I didn't notice I copied the text from an older revision of the repository (possibly forgot to To be clear: It's now recommended that you copy |
Beta Was this translation helpful? Give feedback.
-
Thanks @iBug, and @mmistakes. |
Beta Was this translation helpful? Give feedback.
Check the docs:
From
v4.5.0
onwards, the default language files are read-in automatically via thejekyll-data
plugin if it's installed. For sites hosted with GitHub Pages, you still need to copy the_data/ui-text.yml
file because thejekyll-data
plugin is unsupported on GitHub Pages.