Skip to content
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

Open
wants to merge 2 commits into
base: main
Choose a base branch
from

Conversation

Rerbun
Copy link

@Rerbun Rerbun commented Nov 27, 2024

closes #248

Copy link

vercel bot commented Nov 27, 2024

The latest updates on your projects. Learn more about Vercel for Git ↗︎

Name Status Preview Comments Updated (UTC)
candidate ✅ Ready (Inspect) Visit Preview 💬 Add feedback Nov 27, 2024 1:34pm
candidate-storybook-test ✅ Ready (Inspect) Visit Preview 💬 Add feedback Nov 27, 2024 1:34pm

@codecov-commenter
Copy link

codecov-commenter commented Nov 27, 2024

Codecov Report

All modified and coverable lines are covered by tests ✅

Project coverage is 100.00%. Comparing base (7a3569f) to head (ea7eed5).

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.
📢 Have feedback on the report? Share it here.

@@ -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)',
Copy link
Member

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',
},
};
Copy link
Member

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Code - i18n getest
4 participants