-
Notifications
You must be signed in to change notification settings - Fork 154
Chinese translations and intl demo #382
base: feature-i18n
Are you sure you want to change the base?
Conversation
* Change language code for Chinese to 'zh' * Use corresponding language for each language caption * Move language codes and captions to locale/constants.js
Hi @zianke: I have just some questions/comments:
Sure, I can create a new branch |
@@ -62,6 +62,8 @@ | |||
"ps-tree": "1.2.0", | |||
"react-beautiful-dnd": "10.1.1", | |||
"react-custom-scrollbars": "4.2.1", | |||
"react-intl": "^2.8.0", |
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.
Nit: Please pin the version by removing the ^
for react-intl and react-intl-redux.
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.
LGTM.
Just smaller things open (see other comment & inline comments). I haven't read every copy text but I will check them once I'm doing the German translation.
Once your Chinese translation is ready I think we can merge it to master. Should we write a how to i18n documentation so we're having a guide for other translations?
I'll add a todo list to the i18n issue so we're having a reminder there and more details to the current status.
Your screenshot is a bit confusing as the ProjectPage
/ CreateNewProjectWizard
is not available in i18n
branch but it's probably available in your WIP locally.
}, | ||
}; | ||
|
||
const definedMessages = defineMessages(messages); |
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.
Nit: I think we can directly do a default export as definedMessages
is only used for exporting (also applies to the other .message files)
const definedMessages = defineMessages(messages); | |
export default defineMessages(messages); |
file: { | ||
label: { | ||
id: 'applicationMenu.file.label', | ||
defaultMessage: '&File', |
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.
@zianke any progress on this? What do you think is this ready for merge to branch |
@AWolf81 Sorry for the delay of reply. It has been two busy weeks. Hopefully I'll have some time these days to continue on the tasks. |
Related Issue:
66
Summary:
We have completed the Chinese translations and put all the translation-related files in the
locale
directory, as we've discussed in the issue. These files are connected to the components byintl.reducer.js
andreact-intl-redux
.The next step will be to modify all of the components with messages. We've already done this part with the IntroScreen and the CreateNewProjectWizard/BuildPanel component. You can take them as a simple demo. This pull request will keep being updated in the following days to include the change of other components.
By the way, do you think we should submit the pull request to the
i18n-app-menu-item
branch? Or can you create another branch (e.g.i18n
) for the following updates?Screenshots/GIFs: