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
Very useful plugin. I gave it a go to see if I could integrate it with my theme gem so users don't have to copy a file with all of the UI text's translation.
Here's what I tried:
Add spec.add_runtime_dependency "jekyll-data", "~> 0.4" to my theme's gemspec
Went into my theme gem's /test folder ran bundle update and verified jekyll-data installed and was added to Gemfile.lock
Changed locale: en in /test/config.yml to fr to test if the UI text strings change from English to French.
From the theme gem's root ran bundle exec rake preview to fire up a test site at http://localhost:4000/test
Observed no change to the UI text.
If I copy _data/ui-text.yml to /test/_data/ui-text.yml the French translations appear. I also tried adding gem "jekyll-data" to the Gemfile in /test and that made no difference.
Thank you for trying the plugin and opening this ticket @mmistakes .
looks like I was wrong about runtime_dependency plugin not needing to be added to the site's _config.yml
My apologies..
adding jekyll-data to the gems: array in your test site's _config.yml should resolve this.
Another way to check if Jekyll reads _data folder is by serving with the --verbose switch. Though, in your theme's case, the humongous data hash is probably going to cascade relevant information.
Very useful plugin. I gave it a go to see if I could integrate it with my theme gem so users don't have to copy a file with all of the UI text's translation.
Here's what I tried:
spec.add_runtime_dependency "jekyll-data", "~> 0.4"
to my theme's gemspec/test
folder ranbundle update
and verifiedjekyll-data
installed and was added toGemfile.lock
locale: en
in/test/config.yml
tofr
to test if the UI text strings change from English to French.bundle exec rake preview
to fire up a test site athttp://localhost:4000/test
If I copy
_data/ui-text.yml
to/test/_data/ui-text.yml
the French translations appear. I also tried addinggem "jekyll-data"
to theGemfile
in/test
and that made no difference.https://github.com/mmistakes/minimal-mistakes/tree/feature/jekyll-data
The text was updated successfully, but these errors were encountered: