You are viewing a plain text version of this content. The canonical link for it is here.
Posted to notifications@shenyu.apache.org by "yu199195 (via GitHub)" <gi...@apache.org> on 2023/05/05 03:37:09 UTC

[GitHub] [shenyu] yu199195 opened a new issue, #4613: [Volunteer] Support Admin Internationalization

yu199195 opened a new issue, #4613:
URL: https://github.com/apache/shenyu/issues/4613

   ### Volunteer help
   
   ## Background
   Shenyu is a native API gateway for service proxy, protocol translation and API governance. It can manage and maintain the API through Shenyu-admin, and support internationalization in Chinese and English. Unfortunately, Shenyu-admin is only internationalized on the front end. The message prompt returned by the back-end interface is still in English. Therefore, we need to implement internationalization support for the back-end interface.This will lay a good foundation for shenyu to move towards more language support.
   
   ## Relevant skills
   Related skills spring resources
   Spring Internationalization
   Front-end react framework
   API reference
   ```
               java.util.Locale;
               org.springframework.context.MessageSource;
               org.springframework.context.support.ResourceBundleMessageSource; 
   Interface effect example
               ## zh request example
               POST http://localhost:9095/plugin
               Content-Type: application/json
               Location: cn-zh
               X-Access-Token: xxx
               {
               "name": "test-create-plugin",
               "role": "test-create-plugin",
               "enabled": true,
               "sort": 100
               }
               Respone
               {
               "code": 600,
               "message": "未登录"
               }
               
               ### en request example
               POST http://localhost:9095/plugin
               Content-Type: application/json
               Location: en
               X-Access-Token: xxx
               {
               "name": "test-create-plugin",
               "role": "test-create-plugin",
               "enabled": true,
               "sort": 100
               }
               Respone
               {
               "code": 600,
               "message": "token is error"
               } 
   ```
   
   ## Task List
   1.The task discussed with the tutor how to achieve the internationalization of shenyu-admin background
   2.Some prompt message translation
   3.Get through the internationalization of front-end, obtain the client region information through http protocol, support the 4.language of the corresponding region.
   5.Leave the extension of other multi-language internationalization support interface, so as to facilitate the localization transformation of subsequent users.
   
   Difficulty: Major
   Potential mentors:
   Keguo Li, mail: likeguo@apache.org
   Project Devs, mail: dev@shenyu.apache.org


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: notifications-unsubscribe@shenyu.apache.org.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org


[GitHub] [shenyu] peng-heng commented on issue #4613: [Volunteer] Support Admin Internationalization

Posted by "peng-heng (via GitHub)" <gi...@apache.org>.
peng-heng commented on issue #4613:
URL: https://github.com/apache/shenyu/issues/4613#issuecomment-1550777319

   I want to try to do it.


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: notifications-unsubscribe@shenyu.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org


[GitHub] [shenyu] peng-heng commented on issue #4613: [Volunteer] Support Admin Internationalization

Posted by "peng-heng (via GitHub)" <gi...@apache.org>.
peng-heng commented on issue #4613:
URL: https://github.com/apache/shenyu/issues/4613#issuecomment-1550974021

   ![image](https://github.com/apache/shenyu/assets/11962364/75e25f01-c239-4673-875b-93b3bfe986d4)
    please fix this test case. e2e / e2e (postgres) (pull_request)  will filed.


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: notifications-unsubscribe@shenyu.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org


[GitHub] [shenyu] December-Pb commented on issue #4613: [Volunteer] Support Admin Internationalization

Posted by "December-Pb (via GitHub)" <gi...@apache.org>.
December-Pb commented on issue #4613:
URL: https://github.com/apache/shenyu/issues/4613#issuecomment-1565950514

   Is this task still open? I noticed there are already 3 commits.


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: notifications-unsubscribe@shenyu.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org