eleventy icon indicating copy to clipboard operation
eleventy copied to clipboard

locale_url / locale_links are use less if you build websites from data

Open Dexus opened this issue 9 months ago • 2 comments

Operating system

windows 11

Eleventy

3.0.0

Describe the bug

See #3718

After looking through the code of the I18n plugin, I have seen that I currently have no way to create i18n links for data generated pages. I would need the feature to create i18n pages/links for pages created from the same file as well.

If I now want to create multilingual pages from another CMS or data source, I can try to enable this via https://www.11ty.dev/docs/data-eleventy-supplied/#frozen-data, but then I still miss the information because the plugins are loaded too early and no longer have any influence on the actual generation.

Reproduction steps

See #3718

Expected behavior

locale_links working with data generated pages.

Reproduction URL

https://github.com/deepnest-next/deepnest.net/blob/devel/_includes/footer.njk

Screenshots

No response

Dexus avatar Mar 24 '25 08:03 Dexus

Dear Dexus,

I am German native and understand the issue. Do you mind to update the description section to use English so more people are able to help you?

Ryuno-Ki avatar Mar 24 '25 08:03 Ryuno-Ki

Dear Dexus,

I am German native and understand the issue. Do you mind to update the description section to use English so more people are able to help you?

Thanks for the hint, sometimes in the multilingual world you lose the awareness that you should just write in English.

Dexus avatar Mar 24 '25 09:03 Dexus