Is there a way to implement Spring internationalization into rest service if I want to setLocale on the parameter i parse from a specific user ticket?
Workflow looks like this: user clicks a link. Service gets user specific ticket and settings. Service parses ticket and gets locale this locale should be set accordingly and then service returns response in a specific language.
All I have found were samples simply transfering locale together with the request. Also I am not getting the point how Spring maps all these names. Do I have to give him the variables and then he maps those names with the language sources given?
Aucun commentaire:
Enregistrer un commentaire