Closed privatemaker closed 9 months ago
Yeah, Sveltia should just skip nonexistent *.en.md
files. The fix is coming.
I couldn’t reproduce the exact issue, which might be related to the relation widget, but I have fixed some issues with missing default locale content. The fix is now in. Please test on your side and let me know if it works!
As usual, thanks for super fast investigation + fix 😄
... might be related to the relation widget
Possible. That widget is being used in this collection. what you pushed fixes Sveltia CMS from failing fatally. However, it does not show listings whereby only one language type file exists, example:
file1.de.md
file1.en.md
file2.de.md
The item list shows only file1
and not file2
Hmm, I thought I’d fixed the entry listing issue as well. Will check again.
Not sure how to reproduce the issue. By the way, do you have any reason you can’t (or don’t) have file2.en.md
? Sveltia CMS creates the file anyway even if (there are no required fields and) the content is empty.
If you really need to omit the file, I could implement something like https://github.com/decaporg/decap-cms/issues/6932
That said, disabling the default locale, not a translation, may still cause some issues.
I’m closing the issue as the original fatal error has been solved. Feel free to open a new issue to follow up!
Makes sense to close the issue 👍🏻
do you have any reason you can’t (or don’t) have file2.en.md
There are a few cases in my Hugo deployments where this is likely a case:
For situations 1. and 2. yah, it's an issue as one can't fill in the gaps with current UI. For situation 3. the suggested implementation in Decap looks perfect!
For situation 3. the suggested implementation in Decap looks perfect!
Okay, I’ll get this done next week.
I made it: https://github.com/sveltia/sveltia-cms#disable-non-default-locale-content
One of my clients may want to use it, so it’s a good addition ☺️
Nice :smile: thanks for implementing this. I still can't get Sveltia CMS to show entries for items with non-uniform items, but I will keep testing this out!
I have Sveltia configured with the following
i18n
options:My files are organized:
The error which is showing up in my console which makes entire Sveltia CMS fail fully is:
The only thing I thought might cause this was my
articles/
files were allde
while default lang isen
but after a few attempts to reconfigure and harmonize thing the issue persists. Switching default language does not help either.After testing the exact same config.yaml + Hugo site content with
decap-cms@3.0.9
it seems to load fine there