lumeland / lume

🔥 Static site generator for Deno 🦕
https://lume.land
MIT License
1.86k stars 85 forks source link

Modification of the translation system #301

Closed AugustinMauroy closed 1 year ago

AugustinMauroy commented 1 year ago

how it is now

https://lume.land/plugins/multilanguage/

how it could be

This change would make the work easier for the translators.

What I propose is simply that we have a json that contains the list of languages ex:En, Fr, Es, De and the date format. This file would be the config of the translation. Then to translate a content file you have to create a file adding the language ex:about.en.md => about.fr.md.

Crowdin

with this relatively simple system we could add a crowdin integration.

oscarotero commented 1 year ago

I like the idea of Lume detecting that two files are different language versions of the same page (like about.en.md and about.fr.md). I will work on that. Thanks!