-
Notifications
You must be signed in to change notification settings - Fork 0
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
docs(code): added different languages to test i18n issues #292
base: main
Are you sure you want to change the base?
Conversation
The latest updates on your projects. Learn more about Vercel for Git ↗︎
|
Codecov ReportAll modified and coverable lines are covered by tests ✅
Additional details and impacted files@@ Coverage Diff @@
## main #292 +/- ##
=========================================
Coverage 100.00% 100.00%
=========================================
Files 16 16
Lines 323 323
Branches 19 23 +4
=========================================
Hits 323 323 ☔ View full report in Codecov by Sentry. |
6f95a1c
to
ea7eed5
Compare
@@ -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)', |
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.
Waarom (Qalb)
?
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', | ||
}, | ||
}; |
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.
Ik denk dat deze stories opgedeeld moeten worden in 2 varianten:
- parent heeft een bepaalde taal (
lang="ar" dir="rtl"
bijvoorbeeld), de code heeft een andere taal (lang="en"
) - code heeft een specifieke taal (bijvoorbeeld:
lang="en"
), de story houdt geen rekening met een parent
closes #248