[ 
https://issues.apache.org/jira/browse/OLINGO-1457?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
 ]

Mahdi Ansari updated OLINGO-1457:
---------------------------------
    Description: 
I made an odata service with olingo2, jpa and spring-boot based on this [GitHub 
repository|https://github.com/jpenninkhof/odata-boilerplate].

The question is how can I add {{I18n}} functionality to the data?

For example if I store data in a column of type {{Varchar}} like this:
  
{code:java}
{"en":"Cologne","de":"Köln"}{code}
 

How can retrieve {{Cologne}} when user passed {{en}} as locale and {{Köln}} 
when user passed {{de}} as the locale. For example via a HTTP GET variable!

  was:
I made an odata service with olingo2, jpa and spring-boot based on this [GitHub 
repository|https://github.com/jpenninkhof/odata-boilerplate].

The question is how can I add {{I18n}} functionality to the data?

For example if I store data in a column of type {{Varchar}} like this:
  



{"en":"Cologne","de":"Köln"}

 

How can retrieve {{Cologne}} when user passed {{en}} as locale and {{Köln}} 
when user passed {{de}} as the locale. For example via a HTTP GET variable!


> How can I implement i18n with JPA/Olingo and spring boot?
> ---------------------------------------------------------
>
>                 Key: OLINGO-1457
>                 URL: https://issues.apache.org/jira/browse/OLINGO-1457
>             Project: Olingo
>          Issue Type: Question
>          Components: odata2-jpa
>    Affects Versions: V2 2.0.11
>            Reporter: Mahdi Ansari
>            Priority: Major
>
> I made an odata service with olingo2, jpa and spring-boot based on this 
> [GitHub repository|https://github.com/jpenninkhof/odata-boilerplate].
> The question is how can I add {{I18n}} functionality to the data?
> For example if I store data in a column of type {{Varchar}} like this:
>   
> {code:java}
> {"en":"Cologne","de":"Köln"}{code}
>  
> How can retrieve {{Cologne}} when user passed {{en}} as locale and {{Köln}} 
> when user passed {{de}} as the locale. For example via a HTTP GET variable!



--
This message was sent by Atlassian Jira
(v8.3.4#803005)

Reply via email to