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

Translations update from Hosted Weblate #811

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

Conversation

weblate
Copy link
Contributor

@weblate weblate commented Aug 9, 2024

Translations update from Hosted Weblate for Spook/Inverse helper.

Current translation status:

Weblate translation status

Copy link

coderabbitai bot commented Aug 9, 2024

Walkthrough

Walkthrough

The update introduces structured JSON configurations in the zh_Hans.json and zh_Hant.json translation files for the spook_inverse integration, defining settings for binary sensors and switches. Each file now includes comprehensive sections for config, step, and user, enhancing user interaction through clear definitions and localized support. The transformation from empty objects to detailed structures improves usability and functionality for managing entity behaviors.

Changes

Files Change Summary
custom_components/spook/integrations/spook_inverse/... Added structured JSON configurations in zh_Hans.json and zh_Hant.json, detailing settings for binary_sensor and switch, including properties like entity_id, hide_source, and name, along with user descriptions and menu options.

Poem

🐰 In the digital glade where sensors play,
New options bloom like flowers in the day.
With a hop and a skip, they dance in delight,
Reversing their roles, making everything right.
So let’s cheer for the change, let joy take its flight! 🌸✨


Thank you for using CodeRabbit. We offer it for free to the OSS community and would appreciate your support in helping us grow. If you find it useful, would you consider giving us a shout-out on your favorite social media?

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 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.

Copy link

@coderabbitai coderabbitai bot left a comment

Choose a reason for hiding this comment

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

Actionable comments posted: 0

Review details

Configuration used: CodeRabbit UI
Review profile: CHILL

Commits

Files that changed from the base of the PR and between d9bac56 and 5687c40.

Files selected for processing (1)
  • custom_components/spook/integrations/spook_inverse/translations/et.json (1 hunks)
Additional comments not posted (2)
custom_components/spook/integrations/spook_inverse/translations/et.json (2)

2-29: The config section is well-structured and complete.

The JSON structure for configuring binary sensors and switches is logically organized, with clear and descriptive keys. The localization appears accurate.


30-39: The options section is consistent and well-organized.

The structure mirrors the config section, providing additional configurability for binary sensors. The localization and organization are clear and accurate.

@weblate weblate force-pushed the weblate-spook-inverse-helper branch from 5687c40 to 46fa6b3 Compare August 12, 2024 10:57
Copy link

@coderabbitai coderabbitai bot left a comment

Choose a reason for hiding this comment

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

Actionable comments posted: 0

Review details

Configuration used: CodeRabbit UI
Review profile: CHILL

Commits

Files that changed from the base of the PR and between 5687c40 and 46fa6b3.

Files selected for processing (2)
  • custom_components/spook/integrations/spook_inverse/translations/et.json (1 hunks)
  • custom_components/spook/integrations/spook_inverse/translations/ko.json (1 hunks)
Additional comments not posted (2)
custom_components/spook/integrations/spook_inverse/translations/ko.json (1)

1-11: Well-structured JSON configuration for Korean translations.

The new JSON structure for binary sensors is correctly localized and enhances the configuration options for Korean-speaking users. The structure is clear and well-organized.

custom_components/spook/integrations/spook_inverse/translations/et.json (1)

1-40: Comprehensive JSON configuration for Estonian translations.

The new JSON structure provides detailed configuration and options for binary sensors and switches, enhancing usability for Estonian-speaking users. The organization and localization are well-executed.

Copy link

@coderabbitai coderabbitai bot left a comment

Choose a reason for hiding this comment

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

Actionable comments posted: 0

Review details

Configuration used: CodeRabbit UI
Review profile: CHILL

Commits

Files that changed from the base of the PR and between 46fa6b3 and 716623b.

Files selected for processing (1)
  • custom_components/spook/integrations/spook_inverse/translations/ko.json (1 hunks)
Additional comments not posted (6)
custom_components/spook/integrations/spook_inverse/translations/ko.json (6)

4-11: Check the translation consistency for binary_sensor.

Ensure that the translation for "출처 구성요소" (source component) and "출처 구성요소 숨김" (hide source) is consistent across similar contexts.


12-19: Verify the translation and structure for switch.

The structure and translations for switch should match the intended functionality. Ensure consistency with binary_sensor.


20-27: Ensure correctness of user object translations.

The description and menu_options should accurately reflect the functionality for reversing states. Verify the appropriateness of the translations.


32-39: Ensure consistency in binary_sensor options.

The options for binary_sensor should maintain consistency with the config section. Verify translation accuracy.


40-47: Verify switch options structure and translations.

Ensure that the switch options are consistent with the config section and translations are accurate.


50-50: Verify the appropriateness of the title.

Ensure that the title "반전 👻" (Reversal 👻) is suitable for the context and consistent throughout the application.

Copy link

@coderabbitai coderabbitai bot left a comment

Choose a reason for hiding this comment

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

Actionable comments posted: 0

Review details

Configuration used: CodeRabbit UI
Review profile: CHILL

Commits

Files that changed from the base of the PR and between 716623b and 24def5d.

Files selected for processing (1)
  • custom_components/spook/integrations/spook_inverse/translations/fi.json (1 hunks)
Files skipped from review due to trivial changes (1)
  • custom_components/spook/integrations/spook_inverse/translations/fi.json

Copy link

@coderabbitai coderabbitai bot left a comment

Choose a reason for hiding this comment

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

Actionable comments posted: 0

Review details

Configuration used: CodeRabbit UI
Review profile: CHILL

Commits

Files that changed from the base of the PR and between 24def5d and 9eb246f.

Files selected for processing (1)
  • custom_components/spook/integrations/spook_inverse/translations/fi.json (1 hunks)
Files skipped from review as they are similar to previous changes (1)
  • custom_components/spook/integrations/spook_inverse/translations/fi.json

@weblate weblate force-pushed the weblate-spook-inverse-helper branch from 9eb246f to 9f762b9 Compare August 28, 2024 19:09
Copy link

@coderabbitai coderabbitai bot left a comment

Choose a reason for hiding this comment

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

Actionable comments posted: 0

Review details

Configuration used: CodeRabbit UI
Review profile: CHILL

Commits

Files that changed from the base of the PR and between 9eb246f and 9f762b9.

Files selected for processing (4)
  • custom_components/spook/integrations/spook_inverse/translations/ca.json (1 hunks)
  • custom_components/spook/integrations/spook_inverse/translations/et.json (1 hunks)
  • custom_components/spook/integrations/spook_inverse/translations/fi.json (1 hunks)
  • custom_components/spook/integrations/spook_inverse/translations/ko.json (1 hunks)
Files skipped from review due to trivial changes (1)
  • custom_components/spook/integrations/spook_inverse/translations/fi.json
Additional comments not posted (8)
custom_components/spook/integrations/spook_inverse/translations/ca.json (2)

2-15: LGTM!

The config section is correctly structured and the data fields are appropriately named.

The code changes are approved.


16-29: LGTM!

The options section is correctly structured and the data fields are appropriately named.

The code changes are approved.

custom_components/spook/integrations/spook_inverse/translations/et.json (3)

2-29: LGTM!

The config section is correctly structured and the data fields are appropriately named.

The code changes are approved.


30-39: LGTM!

The options section is correctly structured and the data fields are appropriately named.

The code changes are approved.


20-27: LGTM!

The user section is correctly structured and the descriptions are clear.

The code changes are approved.

custom_components/spook/integrations/spook_inverse/translations/ko.json (3)

2-29: LGTM!

The config section is correctly structured and the data fields are appropriately named.

The code changes are approved.


30-49: LGTM!

The options section is correctly structured and the data fields are appropriately named.

The code changes are approved.


20-27: LGTM!

The user section is correctly structured and the descriptions are clear.

The code changes are approved.

indkilech and others added 8 commits September 20, 2024 15:21
Currently translated at 66.6% (14 of 21 strings)

Translation: Spook/Inverse helper
Translate-URL: https://hosted.weblate.org/projects/spook/inverse-helper/et/
Currently translated at 4.7% (1 of 21 strings)

Translation: Spook/Inverse helper
Translate-URL: https://hosted.weblate.org/projects/spook/inverse-helper/ko/
Currently translated at 100.0% (21 of 21 strings)

Translation: Spook/Inverse helper
Translate-URL: https://hosted.weblate.org/projects/spook/inverse-helper/ko/
Currently translated at 100.0% (21 of 21 strings)

Translation: Spook/Inverse helper
Translate-URL: https://hosted.weblate.org/projects/spook/inverse-helper/fi/
Currently translated at 19.0% (4 of 21 strings)

Translation: Spook/Inverse helper
Translate-URL: https://hosted.weblate.org/projects/spook/inverse-helper/ca/
Currently translated at 100.0% (21 of 21 strings)

Translation: Spook/Inverse helper
Translate-URL: https://hosted.weblate.org/projects/spook/inverse-helper/id/
RafikiHome and others added 4 commits September 21, 2024 15:41
Currently translated at 100.0% (21 of 21 strings)

Translation: Spook/Inverse helper
Translate-URL: https://hosted.weblate.org/projects/spook/inverse-helper/af/
Currently translated at 19.0% (4 of 21 strings)

Translation: Spook/Inverse helper
Translate-URL: https://hosted.weblate.org/projects/spook/inverse-helper/zh_Hans/
Currently translated at 100.0% (21 of 21 strings)

Translation: Spook/Inverse helper
Translate-URL: https://hosted.weblate.org/projects/spook/inverse-helper/zh_Hans/
Currently translated at 100.0% (21 of 21 strings)

Translation: Spook/Inverse helper
Translate-URL: https://hosted.weblate.org/projects/spook/inverse-helper/zh_Hant/
Copy link

sonarcloud bot commented Sep 23, 2024

Copy link

@coderabbitai coderabbitai bot left a comment

Choose a reason for hiding this comment

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

Actionable comments posted: 0

Outside diff range and nitpick comments (1)
custom_components/spook/integrations/spook_inverse/translations/zh_Hant.json (1)

20-28: LGTM: User section with clear explanations

The user section is well-translated and provides clear explanations for the integration's functionality. The description effectively communicates the purpose of the tool.

Consider adding a space between "二級" and "製" in line 22 to correct a potential typo:

-                    "binary_sensor": "翻轉二級製傳感器",
+                    "binary_sensor": "翻轉二級 製傳感器",

Alternatively, if "二級製" is intentional, please verify its correctness in the context of binary sensors.

Review details

Configuration used: CodeRabbit UI
Review profile: CHILL

Commits

Files that changed from the base of the PR and between 0d63604 and 0312cc6.

Files selected for processing (2)
  • custom_components/spook/integrations/spook_inverse/translations/zh_Hans.json (1 hunks)
  • custom_components/spook/integrations/spook_inverse/translations/zh_Hant.json (1 hunks)
Additional comments not posted (8)
custom_components/spook/integrations/spook_inverse/translations/zh_Hans.json (4)

2-19: LGTM: Consistent and appropriate translations for binary_sensor and switch configurations.

The translations for the binary_sensor and switch configurations are consistent and appear to be appropriate for their respective fields. The use of "翻转 👻" (Flip 👻) as the title is creative and aligns with the "Spook" theme of the integration.


20-27: LGTM: Informative user configuration with clear menu options.

The user configuration section provides a clear and informative description of the integration's functionality. The menu options correctly correspond to the available configurations (switch and binary sensor). The translations are appropriate and consistent with the rest of the file.


31-50: LGTM: Consistent translations in options section.

The options section correctly mirrors the structure and translations of the config section for both binary_sensor and switch. This consistency is beneficial for the user experience, as it maintains the same terminology and structure throughout the configuration process.


1-51: LGTM: Well-structured and consistent Simplified Chinese translations.

The translation file for the spook_inverse integration in Simplified Chinese is well-structured, consistent, and comprehensive. It covers all necessary elements for configuration, options, and user interface. The translations appear to be of good quality and maintain a consistent style throughout the file. The use of the ghost emoji (👻) adds a playful touch that aligns well with the "Spook" theme of the integration.

custom_components/spook/integrations/spook_inverse/translations/zh_Hant.json (4)

1-19: LGTM: Config section for binary_sensor and switch

The config section for both binary_sensor and switch components is well-structured and consistently translated. The use of the ghost emoji (👻) in the title "翻轉 👻" (Flip 👻) adds a nice touch that aligns with the "Spook" theme of the integration.


30-49: LGTM: Options section maintains consistency

The options section for both binary_sensor and switch components maintains consistency with the config section. This consistency in structure and translations is beneficial for user experience and understanding.


50-51: LGTM: Concise and consistent title

The title "翻轉 👻" (Flip 👻) is concise, consistent with other sections, and effectively conveys the purpose of the integration while maintaining the playful "Spook" theme.


1-51: Overall: Well-structured and consistent translations

The zh_Hant.json file provides clear and consistent translations for the spook_inverse integration. The structure is well-organized, following JSON best practices, and the translations effectively convey the functionality of the integration. The use of the ghost emoji (👻) adds a playful touch that aligns with the "Spook" theme.

There's only one minor suggestion regarding a potential typo in the binary_sensor menu option, which should be verified. Otherwise, this translation file is ready for implementation and will contribute to a positive user experience for Traditional Chinese users.

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.

6 participants