I’m new to Cockpit and the question might be simply to solve for you, but I didn’t manage to be sucessful so far.
I’ve installed Cockpit v2.13.4 with sqlite DB.
Our use case is quite simple, we just need some collections with a few localized fields.
So I’ve create a collection with two fields, one of them localised and I’ve created three locales (de, de_CH, en).
I’m trying to query the items via GET /api/content/items/{model} in the playground which is working with the response:
When I’m doing the same with GET /api/content/items/{model}?locale=en or any other locale, the response is the same and doesn’t contain the localised value even though I’ve entered localised values for all three configured locales.
If it keeps returning the default text, there’s two possibilities that comes to mind.
Maybe : You call the API with locale=en is it the right code you created ? If ever you created a localization with en_GB you have to make to API code with en_GB.
Did you figure out what was the issue ?
I checked again your api return, it seems that your text field got a caps. Have you tried with full lowercase named fields ?