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

How To Translate | 如何翻译 #51

Open
Bronya0 opened this issue Dec 20, 2024 · 0 comments
Open

How To Translate | 如何翻译 #51

Bronya0 opened this issue Dec 20, 2024 · 0 comments
Labels
enhancement New feature or request

Comments

@Bronya0
Copy link
Owner

Bronya0 commented Dec 20, 2024

If you think the translation is inaccurate or missing, you can participate in the translation:

  1. Add language files under app/frontend/src/i18n
  2. Add registered language files in app/frontend/src/i18n/init.js
  3. In the languageMap of app/frontend/src/App.vue, add the languages ​​supported by the vue naive ui framework. For the supported range, refer to: https://www.naiveui.com/en-US/os-theme/docs/i18n
  4. Register the language in the languageOptions of app/frontend/src/components/Settings.vue to support drop-down selection

如果觉得翻译不准确或缺失,可以参与翻译:
1、在app/frontend/src/i18n下增加语言文件
2、在app/frontend/src/i18n/init.js中添加注册语言文件
3、在app/frontend/src/App.vue的languageMap中,将vue naive ui框架支持的语言添加进去,支持范围参考:https://www.naiveui.com/en-US/os-theme/docs/i18n
4、在app/frontend/src/components/Settings.vue的languageOptions中注册语言,使其支持下拉选择

@Bronya0 Bronya0 added the enhancement New feature or request label Dec 20, 2024
@Bronya0 Bronya0 pinned this issue Dec 20, 2024
@Bronya0 Bronya0 changed the title How To Translate How To Translate | 如何翻译 Dec 20, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

1 participant