sveltia / sveltia-cms

Alternative to Netlify/Decap CMS. Fast, lightweight, Git-based headless CMS. Modern UX, first-class i18n support, open source & free. Made with Svelte.
MIT License
955 stars 49 forks source link

Duplicated list with Type Widgets don't duplicate themself when adding a new language #234

Open AntoineBx opened 1 month ago

AntoineBx commented 1 month ago

Hello Kioshino, I know it is quite a specific request. But when adding a new language, my field with widget: "object" & i18n: "duplicate" don't duplicate themself on already existing content. For exemple here i created the spanish language after creating my homePage.

The problem is that the button addPageSection is greyed out because it is a duplicate field : Capture d'écran 2024-10-25 100507

kyoshino commented 1 month ago

Will check!

kyoshino commented 1 month ago

Testing this locally, but the list items are duplicated as expected when I enable a new locale with the Enable Spanish button. How did you add a new locale?

image Screenshot 2024-10-25 at 10 35 20 AM
AntoineBx commented 1 month ago

Okay sorry, i was not specific enough in my demand. I use a list with Type Widgets. With just a list it is working

kyoshino commented 1 month ago

Got it! I’ll test again and come up with a solution.