Skip to content

Commit

Permalink
Merge pull request #1585 from dxc-technology/gomezivann-fix-localization
Browse files Browse the repository at this point in the history
Fixing Localization page error
  • Loading branch information
raquelarrojo committed May 3, 2023
2 parents abf35d9 + 5047fdd commit f53d80b
Show file tree
Hide file tree
Showing 4 changed files with 5 additions and 6 deletions.
3 changes: 1 addition & 2 deletions lib/src/HalstackContext.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -350,8 +350,7 @@ const parseTheme = (theme: DeepPartial<OpinionatedTheme>): AdvancedTheme => {
};

const parseLabels = (labels: DeepPartial<TranslatedLabels>): TranslatedLabels => {
const parsedLabels = JSON.parse(JSON.stringify(defaultTranslatedComponentLabels));

const parsedLabels = defaultTranslatedComponentLabels;
Object.keys(labels).map((component) => {
if (parsedLabels[component]) {
Object.keys(parsedLabels[component]).map((label) => {
Expand Down
2 changes: 1 addition & 1 deletion lib/src/accordion/Accordion.stories.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -131,7 +131,7 @@ export const Chromatic = () => (
<DxcAccordion
label="Accordion"
assistiveText="Assistive text"
icon="https://developer.apple.com/design/human-interface-guidelines/foundations/app-icons/images/icon-and-image-large-icon-settings_2x.png"
icon="https://www.freepnglogos.com/uploads/facebook-logo-design-1.png"
>
<div>
Lorem ipsum dolor sit amet, consectetur adipiscing elit. Suspendisse malesuada lacus ex, sit amet blandit leo
Expand Down
2 changes: 1 addition & 1 deletion lib/src/button/Button.stories.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -98,7 +98,7 @@ export const Chromatic = () => (
</ExampleContainer>
<ExampleContainer>
<Title title="Big icon (image)" theme="light" level={4} />
<DxcButton icon="https://developer.apple.com/design/human-interface-guidelines/foundations/app-icons/images/icon-and-image-large-icon-settings_2x.png" />
<DxcButton icon="https://www.freepnglogos.com/uploads/facebook-logo-design-1.png" />
</ExampleContainer>
<ExampleContainer>
<Title title="Small icon" theme="light" level={4} />
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -24,8 +24,8 @@ const code = `() => {
clearFieldActionTitle: "Limpiar",
},
paginator: {
itemsPerPageText: " Número de elementos",
pageOfText: (a, b) => \`Pagina: \${a} de \${b}\`,
itemsPerPageText: "Número de elementos: ",
pageOfText: (a, b) => \`Página: \${a} de \${b}\`,
},
};
Expand Down

0 comments on commit f53d80b

Please sign in to comment.