Skip to content

Comments

feat(translations): add Czech translation#6725

Merged
sriramveeraghanta merged 1 commit intomakeplane:previewfrom
janreges:feat/translation-cs
Mar 10, 2025
Merged

feat(translations): add Czech translation#6725
sriramveeraghanta merged 1 commit intomakeplane:previewfrom
janreges:feat/translation-cs

Conversation

@janreges
Copy link
Contributor

@janreges janreges commented Mar 10, 2025

Description

This PR adds support for Czech translations.

Type of Change

  • Feature (non-breaking change which adds functionality)

Summary by CodeRabbit

  • New Features
    • Added Czech language support with comprehensive translations for various user interface texts, notifications, and settings.
    • Enhanced the language selection experience, enabling end-users to seamlessly switch to Czech for a localized interface.

@CLAassistant
Copy link

CLAassistant commented Mar 10, 2025

CLA assistant check
All committers have signed the CLA.

@coderabbitai
Copy link
Contributor

coderabbitai bot commented Mar 10, 2025

Walkthrough

The changes add support for the Czech language by updating language constants and types, providing a new translations JSON file, and modifying the translation store's language file importer. These updates extend the available language options without altering existing functionality.

Changes

File(s) Changes
packages/i18n/src/constants/language.ts
packages/i18n/src/types/language.ts
Updated the supported languages list and the TLanguage type to include the Czech language ("cs").
packages/i18n/src/locales/cs/translations.json Added a new JSON file with comprehensive Czech translations for UI strings, messages, and labels.
packages/i18n/src/store/index.ts Inserted a new case in the importLanguageFile method to import the Czech translations file.

Sequence Diagram(s)

sequenceDiagram
  participant User
  participant App
  participant TranslationStore
  participant "cs/translations.json"

  User->>App: Selects "Čeština" (cs)
  App->>TranslationStore: Request language file for "cs"
  TranslationStore->>TranslationStore: Evaluate switch case for "cs"
  TranslationStore->> "cs/translations.json": Import translation file
  "cs/translations.json"->>TranslationStore: Return translations data
  TranslationStore->>App: Provide translated content
Loading

Possibly related PRs

Suggested labels

🌟enhancement, 🌐frontend

Suggested reviewers

  • sriramveeraghanta
  • anmolsinghbhatia

Poem

Hop, hop, in code I race,
A clever new language finds its place.
Czech strings bloom in JSON light,
With every fix, things feel more right.
From constants to store, we cheer with glee,
CodeRabbit hops forward, wild and free!

🐇💻🌟


📜 Recent review details

Configuration used: CodeRabbit UI
Review profile: CHILL
Plan: Pro

📥 Commits

Reviewing files that changed from the base of the PR and between a953013 and e845623.

📒 Files selected for processing (4)
  • packages/i18n/src/constants/language.ts (1 hunks)
  • packages/i18n/src/locales/cs/translations.json (1 hunks)
  • packages/i18n/src/store/index.ts (1 hunks)
  • packages/i18n/src/types/language.ts (1 hunks)
🔇 Additional comments (4)
packages/i18n/src/constants/language.ts (1)

13-13: LGTM! Addition of Czech language.

The addition of the Czech language with the proper label "Čeština" and ISO language code "cs" is correctly implemented.

packages/i18n/src/types/language.ts (1)

1-1: LGTM! Type definition updated correctly.

The TLanguage type has been properly extended to include "cs" as a valid language option, which is consistent with the changes in the constants file.

packages/i18n/src/store/index.ts (1)

154-155: LGTM! Czech language import added correctly.

The case for the Czech language has been properly added to the importLanguageFile method, following the same pattern as other languages and correctly referencing the new translations file.

packages/i18n/src/locales/cs/translations.json (1)

1-2199: LGTM! Comprehensive Czech translations provided.

The Czech translations file is well-structured and includes translations for all necessary UI elements, following the same JSON structure as other language files. The pluralization rules for Czech appear to be correctly implemented (e.g., line 333 with proper plural forms).

I recommend having a native Czech speaker review the translations for linguistic accuracy, but from a technical perspective, everything looks correct.

✨ Finishing Touches
  • 📝 Generate Docstrings

Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out.

❤️ Share
🪧 Tips

Chat

There are 3 ways to chat with CodeRabbit:

  • Review comments: Directly reply to a review comment made by CodeRabbit. Example:
    • I pushed a fix in commit <commit_id>, please review it.
    • Generate unit testing code for this file.
    • Open a follow-up GitHub issue for this discussion.
  • Files and specific lines of code (under the "Files changed" tab): Tag @coderabbitai in a new review comment at the desired location with your query. Examples:
    • @coderabbitai generate unit testing code for this file.
    • @coderabbitai modularize this function.
  • PR comments: Tag @coderabbitai in a new PR comment to ask questions about the PR branch. For the best results, please provide a very specific query, as very limited context is provided in this mode. Examples:
    • @coderabbitai gather interesting stats about this repository and render them as a table. Additionally, render a pie chart showing the language distribution in the codebase.
    • @coderabbitai read src/utils.ts and generate unit testing code.
    • @coderabbitai read the files in the src/scheduler package and generate a class diagram using mermaid and a README in the markdown format.
    • @coderabbitai help me debug CodeRabbit configuration file.

Note: Be mindful of the bot's finite context window. It's strongly recommended to break down tasks such as reading entire modules into smaller chunks. For a focused discussion, use review comments to chat about specific files and their changes, instead of using the PR comments.

CodeRabbit Commands (Invoked using PR comments)

  • @coderabbitai pause to pause the reviews on a PR.
  • @coderabbitai resume to resume the paused reviews.
  • @coderabbitai review to trigger an incremental review. This is useful when automatic reviews are disabled for the repository.
  • @coderabbitai full review to do a full review from scratch and review all the files again.
  • @coderabbitai summary to regenerate the summary of the PR.
  • @coderabbitai generate docstrings to generate docstrings for this PR.
  • @coderabbitai resolve resolve all the CodeRabbit review comments.
  • @coderabbitai configuration to show the current CodeRabbit configuration for the repository.
  • @coderabbitai help to get help.

Other keywords and placeholders

  • Add @coderabbitai ignore anywhere in the PR description to prevent this PR from being reviewed.
  • Add @coderabbitai summary to generate the high-level summary at a specific location in the PR description.
  • Add @coderabbitai anywhere in the PR title to generate the title automatically.

CodeRabbit Configuration File (.coderabbit.yaml)

  • You can programmatically configure CodeRabbit by adding a .coderabbit.yaml file to the root of your repository.
  • Please see the configuration documentation for more information.
  • If your editor has YAML language server enabled, you can add the path at the top of this file to enable auto-completion and validation: # yaml-language-server: $schema=https://coderabbit.ai/integrations/schema.v2.json

Documentation and Community

  • Visit our Documentation for detailed information on how to use CodeRabbit.
  • Join our Discord Community to get help, request features, and share feedback.
  • Follow us on X/Twitter for updates and announcements.

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.

3 participants