Implementing MongoDB i18n with Spring Data
问题 I'm looking for an elegant solution for persisting localized data in MongoDB in my Spring application. In the example below there is a basic solution for persisting localized data for the field description . As already suggested in how-to-do-i18n-with-mongodb the schema for localized data is "description": [{ "locale": "es", "value": "someESvalue" }, { "locale": "en", "value": "someENvalue" }] Given that, the entity looks like this: @Document(collection = "foo") public class Foo implements