Skip to content

i want know that if support i18n? #5984

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Closed
alansfa opened this issue Jul 5, 2017 · 7 comments
Closed

i want know that if support i18n? #5984

alansfa opened this issue Jul 5, 2017 · 7 comments

Comments

@alansfa
Copy link

alansfa commented Jul 5, 2017

this is a great project.
but i want the static file generated is chinese.

@wing328
Copy link
Contributor

wing328 commented Jul 5, 2017

It should work with double byte characters. What issue did you get?

@wing328 wing328 added this to the Future milestone Jul 5, 2017
@alansfa
Copy link
Author

alansfa commented Jul 7, 2017

@wing328
the meaning of mine is that whether it can generate chinese words with api static file.
thanks.

@bidiu
Copy link

bidiu commented Jul 10, 2017

Maybe you want this:
https://angular.io/guide/i18n

@wing328
Copy link
Contributor

wing328 commented Jul 11, 2017

@lmx1989219 just give it a try and let us know if you encounter issues.

@wing328 wing328 closed this as completed Nov 30, 2017
@shijinkui
Copy link
Contributor

shijinkui commented Mar 5, 2018

In the swagger json support i18n, such as keys: summary, description. The generate doc and function comment can have different languages.

For example:

"200": {
            "description": {
               "cn":"Successful",
               "zh": "成功"
             },
            "schema": {
              "$ref": "#/definitions/SuccessResponse"
            }
 }

@wing328 Do we have such work plan? If have, I can create a new thread.

@wing328
Copy link
Contributor

wing328 commented Mar 5, 2018

@shijinkui looks like it's still not yet supported in the latest version (3.0) of OpenAPI:

OAI/OpenAPI-Specification#274
OAI/OpenAPI-Specification#639

@shijinkui
Copy link
Contributor

@wing328 wing OK. Thanks

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

4 participants