mirror of
https://github.com/flipped-aurora/gin-vue-admin.git
synced 2026-10-04 09:10:57 +00:00
+ 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:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user