Default En
This commit is contained in:
@ -66,7 +66,7 @@ public class MainController implements ServletContextAware {
|
||||
@RequestMapping(value = "/",method = RequestMethod.GET,produces = "application/json;charset=utf-8")
|
||||
@ResponseBody
|
||||
public ResponseEntity<Object> index(
|
||||
@CookieValue(value = "lng", defaultValue = "1") String language_id
|
||||
@CookieValue(value = "lng", defaultValue = "3") String language_id
|
||||
) {
|
||||
Translation trt = new Translation(language_id,jdbcTemplate);
|
||||
try {
|
||||
@ -124,7 +124,7 @@ public class MainController implements ServletContextAware {
|
||||
@GetMapping(value = "/list", produces = "application/json")
|
||||
@ResponseBody
|
||||
public Map<String, String> getTranslations(
|
||||
@CookieValue(value = "lng", defaultValue = "1") String language_id
|
||||
@CookieValue(value = "lng", defaultValue = "3") String language_id
|
||||
) {
|
||||
|
||||
Map<String, String> translations = new HashMap<>();
|
||||
@ -167,7 +167,7 @@ public class MainController implements ServletContextAware {
|
||||
@ResponseBody
|
||||
public String home(
|
||||
Model model,
|
||||
@CookieValue(value = "lng", defaultValue = "1") String language_id
|
||||
@CookieValue(value = "lng", defaultValue = "3") String language_id
|
||||
) {
|
||||
Properties props = new Properties();
|
||||
try {
|
||||
|
||||
Reference in New Issue
Block a user