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

client: Spanish Localization #1263

Merged
merged 7 commits into from
Jan 23, 2024
Merged

Conversation

Victor-M-Giraldo
Copy link
Contributor

@Victor-M-Giraldo Victor-M-Giraldo commented Jan 23, 2024

  • Pull requests adds localization in Spanish to OTT.

Copy link
Contributor

coderabbitai bot commented Jan 23, 2024

Walkthrough

The recent update introduces a Spanish language option to the application's navigation bar, allowing users to select Spanish as their interface language. This enhancement is accompanied by the necessary Spanish translations for the user interface, ensuring a seamless user experience for Spanish-speaking users.

Changes

File Path Change Summary
client/src/components/navbar/LocaleSelector.vue Added Spanish language option with flag "🇪🇸" and value "es".
client/src/locales/es.ts Introduced Spanish translations for various user interface elements.

Poem

🐇💻🌟

In the code, a hop, a skip, a leap,
A language blooms, no hill too steep.
🇪🇸 A flag unfurls, the screen to grace,
En español, our app's new face. 🌐✨

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>.
    • Generate unit-tests for this file.
  • 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 tests 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 generate interesting stats about this repository from git and render them as a table.
    • @coderabbitai show all the console.log statements in this repository.
    • @coderabbitai read src/utils.ts and generate unit tests.
    • @coderabbitai read the files in the src/scheduler package and generate a class diagram using mermaid and a README in the markdown format.

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 as PR comments)

  • @coderabbitai pause to pause the reviews on a PR.
  • @coderabbitai resume to resume the paused reviews.
  • @coderabbitai review to trigger a review. This is useful when automatic reviews are disabled for the repository.
  • @coderabbitai resolve resolve all the CodeRabbit review comments.
  • @coderabbitai help to get help.

Additionally, you can add @coderabbitai ignore anywhere in the PR description to prevent this PR from being reviewed.

CodeRabbit Configration File (.coderabbit.yaml)

  • You can programmatically configure CodeRabbit by adding a .coderabbit.yaml file to the root of your repository.
  • The JSON schema for the configuration file is available here.
  • 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/coderabbit-overrides.v2.json

CodeRabbit Discord Community

Join our Discord Community to get help, request features, and share feedback.

@Victor-M-Giraldo Victor-M-Giraldo changed the title spanish localization Client: Spanish Localization Jan 23, 2024
Copy link
Contributor

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

Review Status

Actionable comments generated: 0

Configuration used: CodeRabbit UI

Commits Files that changed from the base of the PR and between d7c7eec and 1ee7564.
Files selected for processing (2)
  • client/src/components/navbar/LocaleSelector.vue (1 hunks)
  • client/src/locales/sp.ts (1 hunks)
Additional comments: 2
client/src/components/navbar/LocaleSelector.vue (1)
  • 33-36: Added a new language option for Spanish with the flag "🇪🇸" and the value "sp" to the list of locales in the LocaleSelector component.
client/src/locales/sp.ts (1)
  • 1-378: The Spanish localization file sp.ts has been added, containing translations for various UI elements and messages.

@Victor-M-Giraldo Victor-M-Giraldo changed the title Client: Spanish Localization client: Spanish Localization Jan 23, 2024
Copy link

codecov bot commented Jan 23, 2024

Codecov Report

All modified and coverable lines are covered by tests ✅

Comparison is base (34beeaf) 61.5425% compared to head (eb3ecd1) 61.5711%.
Report is 6 commits behind head on master.

Additional details and impacted files
@@               Coverage Diff                @@
##             master      #1263        +/-   ##
================================================
+ Coverage   61.5425%   61.5711%   +0.0285%     
================================================
  Files           117        117                
  Lines          9413       9420         +7     
  Branches       1155       1158         +3     
================================================
+ Hits           5793       5800         +7     
  Misses         3620       3620                

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

@Victor-M-Giraldo
Copy link
Contributor Author

Victor-M-Giraldo commented Jan 23, 2024

Seeing lots of errors for the lint. Could it be the upside down question marks/exclamation points, or letters with accents on them?

Update: It's good now, nevermind.

@dyc3 dyc3 added client Improvements or additions to the web client i18n aka Internationalization, Localization, Translation labels Jan 23, 2024
Copy link
Owner

@dyc3 dyc3 left a comment

Choose a reason for hiding this comment

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

Looks good, just needs a minor fix

client/src/components/navbar/LocaleSelector.vue Outdated Show resolved Hide resolved
Copy link
Contributor

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

Review Status

Actionable comments generated: 15

Configuration used: CodeRabbit UI

Commits Files that changed from the base of the PR and between 1ee7564 and e9634aa.
Files selected for processing (2)
  • client/src/components/navbar/LocaleSelector.vue (1 hunks)
  • client/src/locales/es.ts (1 hunks)
Files skipped from review as they are similar to previous changes (1)
  • client/src/components/navbar/LocaleSelector.vue
Additional comments: 2
client/src/locales/es.ts (2)
  • 1-1: Ensure that the imported types (OttWebsocketError, BehaviorOption, Role) are used within this file, otherwise, the import is unnecessary.
  • 3-383: Check for consistency in translation quality, appropriate context, and correct spelling. Verify that the translations are accurate and make sense within the application's context.

client/src/locales/es.ts Outdated Show resolved Hide resolved
client/src/locales/es.ts Outdated Show resolved Hide resolved
client/src/locales/es.ts Outdated Show resolved Hide resolved
client/src/locales/es.ts Outdated Show resolved Hide resolved
client/src/locales/es.ts Outdated Show resolved Hide resolved
client/src/locales/es.ts Outdated Show resolved Hide resolved
client/src/locales/es.ts Outdated Show resolved Hide resolved
client/src/locales/es.ts Outdated Show resolved Hide resolved
client/src/locales/es.ts Show resolved Hide resolved
client/src/locales/es.ts Outdated Show resolved Hide resolved
@Victor-M-Giraldo
Copy link
Contributor Author

Ah forgot a few. I'll change those.

@Victor-M-Giraldo
Copy link
Contributor Author

I did run yarn lint, it's giving me errors on my desktop though. I'll run it on my laptop and push again in a second.

Copy link
Contributor

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

Review Status

Actionable comments generated: 0

Configuration used: CodeRabbit UI

Commits Files that changed from the base of the PR and between e9634aa and eb3ecd1.
Files selected for processing (1)
  • client/src/locales/es.ts (1 hunks)
Files skipped from review as they are similar to previous changes (1)
  • client/src/locales/es.ts

@dyc3 dyc3 merged commit f001c2e into dyc3:master Jan 23, 2024
16 of 18 checks passed
@Victor-M-Giraldo Victor-M-Giraldo deleted the spanish-localization branch January 23, 2024 23:42
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
client Improvements or additions to the web client i18n aka Internationalization, Localization, Translation
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants