-
Notifications
You must be signed in to change notification settings - Fork 914
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
[Research] osd translation issue #1582
Comments
There are two ways to translate strings: 1. i18n.translate method translationsForLocale[currentLocale]: { formats: 2.ForfamttedMessage |
Therefore for the previous two questions: why component is not working? if we need it, how to fix it?
|
Action item:
|
*register demo locale for i18n-plugin which provides a demo translation file. *modify README to add register requirement. without register the locale, the translations on all react components using FormattedMessage, FormattedNumber and etc will fail. Issue Resolved: opensearch-project#1582 Signed-off-by: Anan Zhuang <[email protected]>
*register demo locale for i18n-plugin which provides a demo translation file. *modify README to add register requirement. without register the locale, the translations on all react components using FormattedMessage, FormattedNumber and etc will fail. Issue Resolved: opensearch-project#1582 Signed-off-by: Anan Zhuang <[email protected]>
*register demo locale for i18n-plugin which provides a demo translation file. *modify README to add register requirement. without register the locale, the translations on all react components using FormattedMessage, FormattedNumber and etc will fail. Issue Resolved: opensearch-project#1582 Signed-off-by: Anan Zhuang <[email protected]>
@ananzh Can we close this now? I think you made the necessary doc updates, right? |
[Issue - 1]
Seems a lot of react components which use to translate are not working. (example)
Currently, we have two ways to translate the react components (did not research much on angular, since we will remove them sooner or later): 1) a
<FormattedMessage>
component 2) a global imported methodi18n.translate
.So far the issues are:
<FormattedMessage>
component not workingIn this research, I would like to investigate on two questions:
<FormattedMessage>
component is not working? if we need it, how to fix it?The text was updated successfully, but these errors were encountered: