Internationalization isn't working with single-types


I’m using the new internationalization feature. It works perfectly with collection-types but not with single-types.

works : http://localhost:1337/articles?_locale=en
doesn’t work: http://localhost:1337/homepage?_locale=en

Both content have localization enabled and have translation in english (both published)

I don’t know how to work around this. Is there anyone having the same probleme and found a solution ?


I found a solution:

in my controller homepage.js I replaced:

entity = await;

by :

entity = await{...ctx.query});