Skip to content

Conversation

@aboungnaseng-ovhcloud
Copy link
Contributor

Description

  • Delete duplication keys in commons translations for FR region
  • Correct translations in useTranslatedMicroRegion hook
  • Update story in manager wiki

Ticket Reference: #MANAGER-20207

Additional Information

Comment on lines +3 to +24
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);
}
Copy link
Contributor

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?

Copy link
Contributor Author

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

bug Something isn't working

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants