+ Add translation support for backend by passing selected language in request header.

+ Add a new translation middleware.
+ Translated all /api/v1/system/* modules.
+ Translated /api/v1/autocode/auto_code_example.go
+ Increasing server timeout from 20 sec to 30 sec.
+ Fix Chinese translation for confirmation button.
+ Add selected language option to user store.
This commit is contained in:
Mohamed Hassan
2022-02-14 14:39:10 +02:00
parent 59843f1997
commit 2bd337fa38
36 changed files with 599 additions and 273 deletions
+1
View File
@@ -40,6 +40,7 @@ service.interceptors.request.use(
'Content-Type': 'application/json',
'x-token': userStore.token,
'x-user-id': userStore.userInfo.ID,
'Accept-Language': userStore.language, // added by mohame hassan to allow store selected language for multilanguage support.
...config.headers
}
return config