eleventy-plugin-i18n
eleventy-plugin-i18n copied to clipboard
Eleventy plugin to assist with internationalization and dictionary translations
Hi there, I like this plugin but ran into issues: I wanted to be able to add localised strings from context. My reasoning behind not adding those strings into a...
As proposed in #23 I extended this plugin instead of providing a custom implementation: easier to see what's going on! This adds the ability to extend the dictionary on a...
Looking for a way to have missing translations fall back to English until they are added. Take this structure for example: ``` ├─ src └─ en-GB ├─ about.njk └─ index.njk...
Context I've been setting up an MVP for a site to test Eleventy functionalities, out of which separate folders output content is required. Without the i18n plugin, the following code...
Hi @adamduncan! First of all, thank you for your plugin! Works great :) Quiet mode is a need for me, so I'm proposing simplest flag to have an ability to...
Hi, is there a way to suppress 'fallback' warnings?
Hello, I wrote this little bit of code to allow a function to be passed in the `translations` property. With the help of the events triggered by 11ty, I can...
Flagged by @unconfident in #4. Existing implementation makes use of `page.url` to deduce locale. It was already a bit of a flimsy premise, but will throw an error if authors...
Hi! First of all, thank you so much for this plugin, great job! I have encountered an issue, that when I use the i18n filter with liquid templates, eleventy throws...
This code leads to problems in some situations when permalink is customized by the user. https://github.com/adamduncan/eleventy-plugin-i18n/blob/e1053383eb179adc2f512dac8a3a698a8b509a7d/i18n.js#L20-L22 Here are couple of examples: **1. permalink changed to a file in top level...