You are viewing a plain text version of this content. The canonical link for it is here.
Posted to notifications@apisix.apache.org by GitBox <gi...@apache.org> on 2021/09/23 00:22:56 UTC

[GitHub] [apisix-website] Baoyuantop opened a new issue #623: About the i18n of blogs

Baoyuantop opened a new issue #623:
URL: https://github.com/apache/apisix-website/issues/623


   **Actual Behaviour**
   
   Currently, our blogs are mixed in English and Chinese. All blogs are displayed whether in English or Chinese. This often brings confusion and inconvenience to users of different languages.
   
   **Expected Behaviour**
   
   When the current environment is in English, only English blogs are displayed, and in the Chinese environment, only Chinese blogs are displayed.
   
   After analysis, we can use the [`draft`](https://docusaurus.io/zh-CN/docs/api/plugins/@docusaurus/plugin-content-blog#markdown-frontmatter) property of the markdown file to solve, It means that the current document is still in draft and will not be displayed in the blog.
   
   So because we default to the English environment, add the `draft` property to all Chinese blogs in the `website/blog` directory.
   
   After that, copy all the blog files to the `website/i18n/zh/docusaurus-plugin-content-blog` directory, and then add the `draft` property to all English blogs.
   
   **Note**: draft will still be displayed in development mode, but after build, it works ~
   
   What do you think?
   


-- 
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@apisix.apache.org

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



[GitHub] [apisix-website] juzhiyuan closed issue #623: About the i18n of blogs

Posted by GitBox <gi...@apache.org>.
juzhiyuan closed issue #623:
URL: https://github.com/apache/apisix-website/issues/623


   


-- 
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@apisix.apache.org

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



[GitHub] [apisix-website] bzp2010 commented on issue #623: About the i18n of blogs

Posted by GitBox <gi...@apache.org>.
bzp2010 commented on issue #623:
URL: https://github.com/apache/apisix-website/issues/623#issuecomment-925450305


   > > Hi, @Baoyuantop https://www.docusaurus.cn/docs/i18n/introduction#translation-files-location Here is a guide to supporting i18n, which I think we should use to solve the problem
   > 
   > OK, I'll try this method.
   
   At the same time, you can also find it in the PR list. I remember some contributors did 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@apisix.apache.org

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



[GitHub] [apisix-website] bzp2010 commented on issue #623: About the i18n of blogs

Posted by GitBox <gi...@apache.org>.
bzp2010 commented on issue #623:
URL: https://github.com/apache/apisix-website/issues/623#issuecomment-925447651


   > Hi, @Baoyuantop https://www.docusaurus.cn/docs/i18n/introduction#translation-files-location Here is a guide to supporting i18n, which I think we should use to solve the problem
   
   +1 agree


-- 
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@apisix.apache.org

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



[GitHub] [apisix-website] liuxiran commented on issue #623: About the i18n of blogs

Posted by GitBox <gi...@apache.org>.
liuxiran commented on issue #623:
URL: https://github.com/apache/apisix-website/issues/623#issuecomment-925439264


   Hi @Baoyuantop , there is a [pr](https://github.com/apache/apisix-website/pull/550) about split blog into Chinese and English, see if it matches your original claim.


-- 
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@apisix.apache.org

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



[GitHub] [apisix-website] guoqqqi commented on issue #623: About the i18n of blogs

Posted by GitBox <gi...@apache.org>.
guoqqqi commented on issue #623:
URL: https://github.com/apache/apisix-website/issues/623#issuecomment-925446439


   Hi, @Baoyuantop  https://www.docusaurus.cn/docs/i18n/introduction#translation-files-location  Here is a guide to supporting i18n, which I think we should use to solve the problem


-- 
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@apisix.apache.org

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



[GitHub] [apisix-website] Baoyuantop commented on issue #623: About the i18n of blogs

Posted by GitBox <gi...@apache.org>.
Baoyuantop commented on issue #623:
URL: https://github.com/apache/apisix-website/issues/623#issuecomment-925447914


   > Hi, @Baoyuantop https://www.docusaurus.cn/docs/i18n/introduction#translation-files-location Here is a guide to supporting i18n, which I think we should use to solve the problem
   
   OK, I'll try this method.


-- 
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@apisix.apache.org

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