Skip to content

Commit

Permalink
chore(code): moved testing stories to storybook-test
Browse files Browse the repository at this point in the history
  • Loading branch information
Ruben Smit committed Nov 27, 2024
1 parent 39ba3a0 commit ea7eed5
Showing 1 changed file with 37 additions and 0 deletions.
37 changes: 37 additions & 0 deletions packages/storybook-test/stories/code.stories.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -32,3 +32,40 @@ export const Default: Story = {
children: `import { Code } from '@nl-design-system-candidate/code-react';`,
},
};

export const Arabic: Story = {
name: 'Arabic (Qalb)',
args: {
children: `(قول "مرحبا يا عالم)`,
},
render: (args) => (
<div dir="rtl" lang="ar">
<Code>{args.children}</Code>
</div>
),
};

export const Chinese: Story = {
name: 'Chinese (Traditional)',
args: {
children: `// 這是一個很長的中文程式碼註釋,可以延伸到第二行,而且還有一些很長的單字`,
lang: 'ch',
},
};

export const Japanese: Story = {
name: 'Japanese',

args: {
children: `// これは非常に長い日本語のコードコメントで、2行目にもなり、かなり長い単語も含まれています。`,
lang: 'jp',
},
};

export const German: Story = {
name: 'German',
args: {
children: `// Dies ist ein sehr langer deutscher Codekommentar, der in eine zweite Zeile übergehen könnte und auch einige ziemlich lange Wörter enthält`,
lang: 'de',
},
};

0 comments on commit ea7eed5

Please sign in to comment.