-
Notifications
You must be signed in to change notification settings - Fork 112
fix(muk): correct hook useTranslatedMicroRegion #20518
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: develop
Are you sure you want to change the base?
Conversation
ref: #MANAGER-20207 Signed-off-by: Alex Boungnaseng <[email protected]>
ref: #MANAGER-20207 Signed-off-by: Alex Boungnaseng <[email protected]>
| import { NAMESPACES } from '@ovh-ux/manager-common-translations'; | ||
|
|
||
| import regionFrFR from '@ovh-ux/manager-common-translations/public/translations/region/Messages_fr_FR.json'; | ||
| import regionEnGB from '@ovh-ux/manager-common-translations/public/translations/region/Messages_en_GB.json'; | ||
| import regionDeDE from '@ovh-ux/manager-common-translations/public/translations/region/Messages_de_DE.json'; | ||
| import regionEsES from '@ovh-ux/manager-common-translations/public/translations/region/Messages_es_ES.json'; | ||
| import regionItIT from '@ovh-ux/manager-common-translations/public/translations/region/Messages_it_IT.json'; | ||
| import regionPtPT from '@ovh-ux/manager-common-translations/public/translations/region/Messages_pt_PT.json'; | ||
| import regionPlPL from '@ovh-ux/manager-common-translations/public/translations/region/Messages_pl_PL.json'; | ||
| import regionFrCA from '@ovh-ux/manager-common-translations/public/translations/region/Messages_fr_CA.json'; | ||
|
|
||
| function addRegionTranslations() { | ||
| i18n | ||
| .addResources('fr_FR', NAMESPACES.REGION, regionFrFR) | ||
| .addResources('en_GB', NAMESPACES.REGION, regionEnGB) | ||
| .addResources('de_DE', NAMESPACES.REGION, regionDeDE) | ||
| .addResources('es_ES', NAMESPACES.REGION, regionEsES) | ||
| .addResources('it_IT', NAMESPACES.REGION, regionItIT) | ||
| .addResources('pt_PT', NAMESPACES.REGION, regionPtPT) | ||
| .addResources('pl_PL', NAMESPACES.REGION, regionPlPL) | ||
| .addResources('fr_CA', NAMESPACES.REGION, regionFrCA); | ||
| } |
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.
question: Do we need to import and add all the translations that we use in MUK?
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.
That how I resolve it in the storybook, But I have test it in generated app, we dont need to import it in this way
Description
Ticket Reference: #MANAGER-20207
Additional Information