-
-
Notifications
You must be signed in to change notification settings - Fork 4k
International support methods - 国际化支持方式 #5433
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
base: master
Are you sure you want to change the base?
Conversation
✅ Deploy Preview for ohif-dev canceled.
|
|
Looks like there are conflicts on this branch. Please fix them. Thanks. |
| props: { | ||
| icon: 'tool-move', | ||
| label: 'Pan', | ||
| label: 'Buttons:Pan', |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This is not a bad approach, however we currently are using i18n right in the various toolbarButton files. I think once you update your branch you will see what I mean. Or see this:
| label: i18n.t('Buttons:Status'), |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
These changes will no longer be needed once you switch to the standard way we do i18n. Thanks.
jbocce
left a comment
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thanks for this effort. See my comments.
|
@jbocce not my business, but shouldn’t commit messages be in English for readability? Also, having the PR description in English would be great so anyone can reference it later. I’ve lost count of how many times I had to dig through old PRs just to understand what was going on while fixing or investigating an issue. |
@pedrokohler You make a good point. I respectfully used Google translate to translate what was there for the PR and left the original text too. As for the commit message, I will discuss with the core OHIF members. Thank you. |
Description
This pull request aims to improve the project's internationalization (i18n) support, ensuring that all previously unsupported components are now internationalized.
Changes
描述
本 PR 旨在修改项目的国际化 (i18n) 支持,使未支持国际化的部分,都能支持国际化。
修改内容
- 组件国际化:对核心组件中的静态文本进行了国际化改造,使用 $t('key')方法替换硬编码文本。