Skip to content
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

Add i18n to Tresjs documentation #123

Closed
JaimeTorrealba opened this issue Feb 25, 2023 · 4 comments · Fixed by #534
Closed

Add i18n to Tresjs documentation #123

JaimeTorrealba opened this issue Feb 25, 2023 · 4 comments · Fixed by #534
Labels
discussion 💭 docs Improvements or additions to documentation

Comments

@JaimeTorrealba
Copy link
Member

JaimeTorrealba commented Feb 25, 2023

description

To expand the project, it will be necessary to add translations in different languages, for this we need to create the base.
Currently there are intentions to add Spanish and Chinese.

To discuss

We have several strategies to achieve this goal, but here I will expose two of them.

1. Using the current feature provide by vitepress (check it out)[https://vitepress.vuejs.org/guide/i18n]

  1. We need to make the redirection manually (explained in the link) through netlify
  2. We need to reorganize the folder structure of the Docs
  3. Vitepress will make the rest for us
  4. Currently I have found no projects using this feature

2. Using the I18n plugin

  1. We need to install and setup the library
  2. We don't need to update folders but we'll need to update the content, with the current JSON
  3. We need to create the navbar options manually
    4 Be aware of diferent formats like plurals, dates etc.
    5 Implies more work to do, but it is a tested solution
@Randysheng
Copy link
Contributor

I am curious 🤔 why not create a separate translation base like docs-cn? Vue/Vite/Vitest all do this.

@JaimeTorrealba
Copy link
Member Author

Hi @Randysheng that's another good solution, we need just choose and implement it

@alvarosabu alvarosabu changed the title add i18n to Tresjs Add i18n to Tresjs documentation Feb 27, 2023
@alvarosabu alvarosabu added the docs Improvements or additions to documentation label Feb 27, 2023
@Randysheng
Copy link
Contributor

Hi @JaimeTorrealba, I finished a first draft of a Chinese.

I made some changes. refer to VueRouter docs. I have submitted the code. If you have time, please take a look.

And I’m going to continue to transform Chinese translation to make it better.

@JaimeTorrealba
Copy link
Member Author

Thanks @Randysheng I will continue with Spanish translation, then we deside the best strategy to do this

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
discussion 💭 docs Improvements or additions to documentation
Projects
No open projects
Status: Done
Development

Successfully merging a pull request may close this issue.

3 participants