getzola / zola

A fast static site generator in a single binary with everything built-in. https://www.getzola.org
https://www.getzola.org
MIT License
12.96k stars 919 forks source link

get_section - merge missing translations from other languages #2531

Open jptrzy opened 2 weeks ago

jptrzy commented 2 weeks ago

Is there a way to get_section where missing translations are used from other languages.

It is possible in hugo.

I described an example workaround here.

Expected Behavior

Files

content/articles/index.md
content/articles/index.en.md
content/articles/index.pl.md

content/articles/A.pl.md
content/articles/A.en.md
content/articles/B.en.md
content/articles/C.pl.md

While checking PL list of articles get_section should return: A.pl.md B.en.md C.pl.md

While checking EN list of articles get_section should return: A.en.md B.en.md C.pl.md

Current Behavior

With the same files as above.

While checking PL list of articles get_section will return: A.pl.md C.pl.md

While checking EN list of articles get_section will return: A.en.md B.en.md

Environment

Zola version: 0.18.0

Keats commented 1 week ago

Not currently

jptrzy commented 1 week ago

Can I try implementing this feature?

Keats commented 1 week ago

How do you envision it working? As in, how would it look in Zola