hay-kot / homebox

Homebox is the inventory and organization system built for the Home User
https://hay-kot.github.io/homebox/
GNU Affero General Public License v3.0
2.71k stars 214 forks source link

feature: add i18n support #799

Closed DoraTiger closed 7 months ago

DoraTiger commented 9 months ago

What type of PR is this?

What this PR does / why we need it:

add i18n support, default is English, add additional Chinese translation.

Which issue(s) this PR fixes:

807

Release Notes

* Add i18n support for front page by nuxtjs/i18n, default language path is /frontend/lang/.
* The way to add more translations is to translate each value in the lang directory, based on /frontend/lang/en-US.json. After that, add translation language type to /frontend/nuxt.config.ts.
* The language switch is set in the login screen, which automatically detects the browser language.
* I only translated for the front page, some of the text embedded in the ts script and the back end was not translated.
enjor00 commented 9 months ago

We need CHINESE!!!

fiend19961 commented 9 months ago

What type of PR is this?

  • feature

What this PR does / why we need it:

add i18n support, default is English, add additional Chinese translation.

Which issue(s) this PR fixes:

807

Release Notes

* Add i18n support for front page by nuxtjs/i18n, default language path is /frontend/lang/.
* The way to add more translations is to translate each value in the lang directory, based on /frontend/lang/en-US.json. After that, add translation language type to /frontend/nuxt.config.ts.
* The language switch is set in the login screen, which automatically detects the browser language.
* I only translated for the front page, some of the text embedded in the ts script and the back end was not translated.

可以fork一份仓库,然后把国际化代码推到仓库的i18n分支吗?

DoraTiger commented 9 months ago

What type of PR is this?

  • feature

What this PR does / why we need it:

add i18n support, default is English, add additional Chinese translation.

Which issue(s) this PR fixes:

807

Release Notes

* Add i18n support for front page by nuxtjs/i18n, default language path is /frontend/lang/.
* The way to add more translations is to translate each value in the lang directory, based on /frontend/lang/en-US.json. After that, add translation language type to /frontend/nuxt.config.ts.
* The language switch is set in the login screen, which automatically detects the browser language.
* I only translated for the front page, some of the text embedded in the ts script and the back end was not translated.

可以fork一份仓库,然后把国际化代码推到仓库的i18n分支吗?

https://github.com/DoraTiger/homebox/tree/i18n this is my fork i18n branch.

hay-kot commented 7 months ago

Hey! Thanks for the work here.

Unfortunately, I can't commit to maintain this and currently things are changing too much to make this an easy choice right now. Going to close this, once we hit a stable v1 we can revisit i18n support, (or if we have any regular maintainers join the project).