Skip to content

Add Czech (cs) Language Support#1561

Merged
laymonage merged 1 commit into
giscus:mainfrom
Jekwwer:add-cs-localization
Nov 28, 2024
Merged

Add Czech (cs) Language Support#1561
laymonage merged 1 commit into
giscus:mainfrom
Jekwwer:add-cs-localization

Conversation

@Jekwwer

@Jekwwer Jekwwer commented Nov 26, 2024

Copy link
Copy Markdown
Contributor
  • Changes:

    • Added cs directory under locales, with common.json and config.json translated to Czech.
    • Created README.cs.md for Czech language documentation.
    • Updated i18n.tsx to add cs in availableLanguages and Czech-specific date and time formatters.
    • Modified i18n.js to add cs in the list of supported languages, sorted alphabetically by language code.
  • Testing:

    • Verified Czech translations by running the application locally with yarn dev and inspecting the UI for correct display across different elements.
  • Additional Notes:

    • Maintained Czech pluralization rules and ensured alphabetical consistency in language entries across files.

@vercel

vercel Bot commented Nov 26, 2024

Copy link
Copy Markdown

@Jekwwer is attempting to deploy a commit to the giscus Team on Vercel.

A member of the Team first needs to authorize it.

Comment thread locales/cs/common.json
Comment on lines +20 to +24
"replies": {
"0": "{{count}} odpovědí",
"one": "{{count}} odpověď",
"two": "{{count}} odpovědi",
"three": "{{count}} odpovědi",
"four": "{{count}} odpovědi",
"other": "{{count}}{{plus}} odpovědí"
},

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

The format for Czech according to CLDR is one, few, many, and other. If we don't follow it, we get the following bug (note the "replies" at the bottom right):

image

I'm going to change two to few, remove three, and change four to many – hope that's OK.

@vercel

vercel Bot commented Nov 28, 2024

Copy link
Copy Markdown

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

Name Status Preview Comments Updated (UTC)
giscus ✅ Ready (Inspect) Visit Preview 💬 Add feedback Nov 28, 2024 5:20pm

@laymonage
laymonage merged commit 7cd88b2 into giscus:main Nov 28, 2024
@laymonage

Copy link
Copy Markdown
Member

Díky!

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.

2 participants