adamduncan / eleventy-plugin-i18n

Eleventy plugin to assist with internationalization and dictionary translations
MIT License
103 stars 10 forks source link

Fix parsing locale from context #5

Open unconfident opened 3 years ago

unconfident commented 3 years ago

Fixes #4 by parsing context locale from page.filePathStem instead of page.url.

This should be considered a breaking change, especially because of regexp.

Also because filePathStem is used required minimum supported 11ty version is 0.9.0+ Nvm, it's already described in peerDependencies as ^0.11.0 so nothing changes here