added a workaround to be able to create/edit an entity while the current locale is not the default locale