Skip to content

Commit 6e28fe9

Browse files
Translated "Conditional Rendering" && Expandable Collout (#431)
* Translated page content && Expandable Collout * Apply suggestions from code review Co-authored-by: Mattia Sanfilippo <[email protected]> --------- Co-authored-by: Mattia Sanfilippo <[email protected]>
1 parent dedbc86 commit 6e28fe9

File tree

4 files changed

+75
-75
lines changed

4 files changed

+75
-75
lines changed

src/components/MDX/ExpandableCallout.tsx

+4-4
Original file line numberDiff line numberDiff line change
@@ -18,15 +18,15 @@ interface ExpandableCalloutProps {
1818

1919
const variantMap = {
2020
deprecated: {
21-
title: 'Deprecated',
21+
title: 'Deprecato',
2222
Icon: IconWarning,
2323
containerClasses: 'bg-red-5 dark:bg-red-60 dark:bg-opacity-20',
2424
textColor: 'text-red-50 dark:text-red-40',
2525
overlayGradient:
2626
'linear-gradient(rgba(249, 247, 243, 0), rgba(249, 247, 243, 1)',
2727
},
2828
note: {
29-
title: 'Note',
29+
title: 'Nota',
3030
Icon: IconNote,
3131
containerClasses:
3232
'bg-green-5 dark:bg-green-60 dark:bg-opacity-20 text-primary dark:text-primary-dark text-lg',
@@ -35,15 +35,15 @@ const variantMap = {
3535
'linear-gradient(rgba(245, 249, 248, 0), rgba(245, 249, 248, 1)',
3636
},
3737
pitfall: {
38-
title: 'Pitfall',
38+
title: 'Insidia',
3939
Icon: IconPitfall,
4040
containerClasses: 'bg-yellow-5 dark:bg-yellow-60 dark:bg-opacity-20',
4141
textColor: 'text-yellow-50 dark:text-yellow-40',
4242
overlayGradient:
4343
'linear-gradient(rgba(249, 247, 243, 0), rgba(249, 247, 243, 1)',
4444
},
4545
wip: {
46-
title: 'Under Construction',
46+
title: 'In Costruzione',
4747
Icon: IconNote,
4848
containerClasses: 'bg-yellow-5 dark:bg-yellow-60 dark:bg-opacity-20',
4949
textColor: 'text-yellow-50 dark:text-yellow-40',

src/components/MDX/ExpandableExample.tsx

+3-3
Original file line numberDiff line numberDiff line change
@@ -71,13 +71,13 @@ function ExpandableExample({children, excerpt, type}: ExpandableExampleProps) {
7171
{isDeepDive && (
7272
<>
7373
<IconDeepDive className="inline mr-2 dark:text-purple-30 text-purple-40" />
74-
Deep Dive
74+
Approfondimento
7575
</>
7676
)}
7777
{isExample && (
7878
<>
7979
<IconCodeBlock className="inline mr-2 dark:text-yellow-30 text-yellow-50" />
80-
Example
80+
Esempio
8181
</>
8282
)}
8383
</h5>
@@ -101,7 +101,7 @@ function ExpandableExample({children, excerpt, type}: ExpandableExampleProps) {
101101
<span className="mr-1">
102102
<IconChevron displayDirection={isExpanded ? 'up' : 'down'} />
103103
</span>
104-
{isExpanded ? 'Hide Details' : 'Show Details'}
104+
{isExpanded ? 'Nascondi Dettagli' : 'Mostra Dettagli'}
105105
</Button>
106106
</summary>
107107
<div

0 commit comments

Comments
 (0)