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

🌐 New Crowdin updates #1491

Merged
merged 31 commits into from
Jan 13, 2025
Merged

🌐 New Crowdin updates #1491

merged 31 commits into from
Jan 13, 2025

Conversation

lukevella
Copy link
Owner

@lukevella lukevella commented Jan 13, 2025

Summary by CodeRabbit

  • Localization
    • Removed authentication error messages and pagination strings across multiple language localization files.
    • Introduced new strings related to unsubscribing from notifications in some languages.
    • Added new strings for email change notifications and user guidance.
    • Simplified user interface messaging for login errors and page navigation.

Copy link

vercel bot commented Jan 13, 2025

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

2 Skipped Deployments
Name Status Preview Comments Updated (UTC)
app ⬜️ Ignored (Inspect) Visit Preview Jan 13, 2025 7:54pm
landing ⬜️ Skipped (Inspect) Jan 13, 2025 7:54pm

@vercel vercel bot temporarily deployed to Preview – landing January 13, 2025 12:58 Inactive
Copy link
Contributor

coderabbitai bot commented Jan 13, 2025

Walkthrough

This pull request involves a systematic removal of authentication error messages and pagination strings across multiple language localization files in the web application. Specifically, the changes target the app.json files in various language directories, removing entries related to login error handling and page numbering. Additionally, some files introduce new strings for user notifications. The modifications appear to be part of a coordinated effort to standardize or simplify error messaging and pagination across different language localizations.

Changes

File Path Change Summary
apps/web/public/locales/*/app.json Removed authentication error messages (authErrorTitle, authErrorDescription, authErrorCta) and pagination string (pageXOfY) across multiple language files.
apps/web/public/locales/hu/app.json Added unsubscribeToastTitle and unsubscribeToastDescription.
apps/web/public/locales/en/app.json Added multiple new strings related to email management and notifications.
packages/emails/locales/en/emails.json Added new entries for email change verification process.

Possibly related PRs

Poem

🐰 Locales dancing, strings take flight,
Error messages fade from sight
Pagination's numbers now so lean
A multilingual coding scene!
Simplicity hops, errors retreat 🌈


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 generate docstrings to generate docstrings for this PR. (Beta)
  • @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
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.

Actionable comments posted: 1

📜 Review details

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

📥 Commits

Reviewing files that changed from the base of the PR and between 31dc85b and 403bfe0.

📒 Files selected for processing (25)
  • apps/web/public/locales/ca/app.json (0 hunks)
  • apps/web/public/locales/cs/app.json (0 hunks)
  • apps/web/public/locales/da/app.json (0 hunks)
  • apps/web/public/locales/de/app.json (0 hunks)
  • apps/web/public/locales/en/app.json (2 hunks)
  • apps/web/public/locales/es/app.json (0 hunks)
  • apps/web/public/locales/eu/app.json (0 hunks)
  • apps/web/public/locales/fi/app.json (0 hunks)
  • apps/web/public/locales/fr/app.json (0 hunks)
  • apps/web/public/locales/hr/app.json (0 hunks)
  • apps/web/public/locales/hu/app.json (0 hunks)
  • apps/web/public/locales/it/app.json (0 hunks)
  • apps/web/public/locales/ja/app.json (0 hunks)
  • apps/web/public/locales/ko/app.json (0 hunks)
  • apps/web/public/locales/nl/app.json (0 hunks)
  • apps/web/public/locales/no/app.json (0 hunks)
  • apps/web/public/locales/pl/app.json (0 hunks)
  • apps/web/public/locales/pt-BR/app.json (0 hunks)
  • apps/web/public/locales/pt/app.json (0 hunks)
  • apps/web/public/locales/ru/app.json (0 hunks)
  • apps/web/public/locales/sk/app.json (0 hunks)
  • apps/web/public/locales/sv/app.json (0 hunks)
  • apps/web/public/locales/tr/app.json (0 hunks)
  • apps/web/public/locales/zh-Hant/app.json (0 hunks)
  • apps/web/public/locales/zh/app.json (0 hunks)
💤 Files with no reviewable changes (24)
  • apps/web/public/locales/eu/app.json
  • apps/web/public/locales/cs/app.json
  • apps/web/public/locales/nl/app.json
  • apps/web/public/locales/ja/app.json
  • apps/web/public/locales/pt-BR/app.json
  • apps/web/public/locales/it/app.json
  • apps/web/public/locales/pl/app.json
  • apps/web/public/locales/fi/app.json
  • apps/web/public/locales/zh-Hant/app.json
  • apps/web/public/locales/ca/app.json
  • apps/web/public/locales/de/app.json
  • apps/web/public/locales/ru/app.json
  • apps/web/public/locales/tr/app.json
  • apps/web/public/locales/hu/app.json
  • apps/web/public/locales/pt/app.json
  • apps/web/public/locales/hr/app.json
  • apps/web/public/locales/ko/app.json
  • apps/web/public/locales/no/app.json
  • apps/web/public/locales/zh/app.json
  • apps/web/public/locales/es/app.json
  • apps/web/public/locales/da/app.json
  • apps/web/public/locales/sk/app.json
  • apps/web/public/locales/sv/app.json
  • apps/web/public/locales/fr/app.json
🔇 Additional comments (1)
apps/web/public/locales/en/app.json (1)

284-284: LGTM! Clear cancellation message with proper link.

The message provides clear information about cancellation and properly uses HTML tags for the billing page link.

Comment on lines 201 to 210
"authErrorTitle": "Login Error",
"authErrorDescription": "There was an error logging you in. Please try again.",
"authErrorCta": "Go to login page",
"continueAs": "Continue as",
"pageMovedDescription": "Redirecting to <a>{newUrl}</a>",
"notRegistered": "Don't have an account? <a>Register</a>",
"unlockFeatures": "Unlock all Pro features.",
"pollStatusFinalized": "Finalized",
"share": "Share",
"pageXOfY": "Page {currentPage} of {pageCount}",
Copy link
Contributor

Choose a reason for hiding this comment

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

💡 Codebase verification

Missing implementations and translations for new locale strings

These newly added strings appear to have potential integration issues:

  • No usage found in the source code for auth error messages (authErrorTitle, authErrorDescription, authErrorCta)
  • No usage found for the pagination string (pageXOfY)
  • Missing translations in other language files
  • These strings might be for a feature in development, but ensure they're properly implemented and translated before release
🔗 Analysis chain

Verify the integration of these strings in the codebase.

Let's ensure these new strings are properly integrated and used in the codebase.

🏁 Scripts executed

The following scripts were executed for the analysis:

Script:

#!/bin/bash
# Description: Check the usage of the new localization strings in the codebase

# Search for auth error string usage
echo "Checking auth error string usage..."
rg -l "authErrorTitle|authErrorDescription|authErrorCta" --type ts --type tsx

# Search for pagination string usage
echo "Checking pagination string usage..."
rg -l "pageXOfY" --type ts --type tsx

# Check if these strings exist in other language files
echo "Checking other language files..."
fd -e json -e yaml . apps/web/public/locales -x grep -l "authErrorTitle\|pageXOfY" {} \;

Length of output: 540


Script:

#!/bin/bash
# Search with correct typescript/react file extensions
echo "Checking component usage of auth strings..."
rg "('|\")authError(Title|Description|Cta)('|\")" -t ts -t tsx -t jsx -t js

echo "Checking component usage of pagination..."
rg "('|\")pageXOfY('|\")" -t ts -t tsx -t jsx -t js

echo "Checking translation function usage..."
rg "t\(['\"]authError|t\(['\"]pageXOfY" -t ts -t tsx -t jsx -t js

echo "Checking all language files..."
fd . apps/web/public/locales -e json -x cat {} \; | grep -A 1 "authError\|pageXOfY"

Length of output: 1011


Script:

#!/bin/bash
echo "Searching for auth error strings in source files..."
find . -type f \( -name "*.tsx" -o -name "*.ts" -o -name "*.jsx" -o -name "*.js" \) -not -path "*/node_modules/*" -not -path "*/dist/*" -exec grep -l "authError\|t('authError\|t(\"authError" {} \;

echo "Searching for pagination string usage..."
find . -type f \( -name "*.tsx" -o -name "*.ts" -o -name "*.jsx" -o -name "*.js" \) -not -path "*/node_modules/*" -not -path "*/dist/*" -exec grep -l "pageXOfY\|t('pageXOfY\|t(\"pageXOfY" {} \;

echo "Checking other language files for translations..."
find apps/web/public/locales -type f -name "*.json" -not -name "en.json" -exec grep -l "authError\|pageXOfY" {} \;

Length of output: 875

@vercel vercel bot temporarily deployed to Preview – landing January 13, 2025 15:42 Inactive
@vercel vercel bot temporarily deployed to Preview – landing January 13, 2025 15:42 Inactive
@vercel vercel bot temporarily deployed to Preview – landing January 13, 2025 17:42 Inactive
@vercel vercel bot temporarily deployed to Preview – landing January 13, 2025 19:54 Inactive
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.

Actionable comments posted: 1

🧹 Nitpick comments (1)
apps/web/public/locales/en/app.json (1)

283-292: Consider standardizing error message patterns.

While the email change flow strings are comprehensive, consider standardizing error messages to match existing patterns in the codebase:

  • emailChangeFailed is terse compared to other error messages that provide more context
  • emailChangeError is generic and could be more specific

Consider these improvements:

-  "emailChangeFailed": "Email change failed",
+  "emailChangeFailed": "Unable to change email address. Please try again.",
-  "emailChangeError": "An error occurred while changing your email",
+  "emailChangeError": "There was a problem updating your email address. Please try again later.",
📜 Review details

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

📥 Commits

Reviewing files that changed from the base of the PR and between 0a25698 and cba46fa.

📒 Files selected for processing (2)
  • apps/web/public/locales/en/app.json (1 hunks)
  • packages/emails/locales/en/emails.json (1 hunks)
🔇 Additional comments (2)
packages/emails/locales/en/emails.json (1)

50-56: LGTM! Email change verification flow is well-structured.

The email change verification flow strings are complete and follow best practices:

  • Clear subject and preview text for email clients
  • Proper use of HTML formatting tags
  • Informative text with proper placeholders
  • Security-conscious with expiration warning and support contact
apps/web/public/locales/en/app.json (1)

282-282: LGTM! Unsubscribe notification message is clear and concise.

The message follows the existing pattern for notification messages.

Comment on lines +283 to +292
"emailChangeSuccess": "Email changed successfully",
"emailChangeSuccessDescription": "Your email has been updated",
"emailChangeFailed": "Email change failed",
"emailChangeInvalidToken": "The verification link is invalid or has expired. Please try again.",
"emailChangeError": "An error occurred while changing your email",
"emailChangeRequestSent": "Verify your new email address",
"emailChangeRequestSentDescription": "To complete the change, please check your email for a verification link.",
"profileEmailAddress": "Email Address",
"profileEmailAddressDescription": "Your email address is used to log in to your account",
"emailAlreadyInUse": "Email already in use. Please try a different one or delete the existing account."
Copy link
Contributor

Choose a reason for hiding this comment

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

💡 Codebase verification

Email change translations added without implementation

These translation strings appear to be added prematurely as there is no corresponding implementation in the codebase:

  • No components or hooks using these translation keys
  • No test files referencing email change functionality
  • No translations added in other language files

Please ensure this is intentional and part of upcoming work. If not, consider removing these unused translations until the implementation is ready.

🔗 Analysis chain

Verify implementation of email change flow.

Let's ensure these new email change strings are properly integrated in the codebase.

🏁 Scripts executed

The following scripts were executed for the analysis:

Script:

#!/bin/bash
# Description: Check the usage of email change strings in the codebase

echo "Checking email change string usage in components..."
rg "('|\")emailChange(Success|Failed|Error|InvalidToken|RequestSent)('|\")" -t ts -t tsx

echo "Checking translation function usage..."
rg "t\(['\"]emailChange" -t ts -t tsx

echo "Checking other language files for translations..."
fd . apps/web/public/locales -e json -not -path "*en*" -x grep -l "emailChange" {} \;

Length of output: 821


Script:

#!/bin/bash
# Search for email change related translation keys usage
echo "=== Checking email change translations usage ==="
rg "emailChange" --type=typescript --type=tsx

echo -e "\n=== Checking other language files ==="
# First find json files
fd -e json . apps/web/public/locales | grep -v "/en/" | while read -r file; do
  echo "Checking $file"
  grep "emailChange" "$file" || true
done

echo -e "\n=== Checking components and hooks ==="
# Look for potential email change related components/hooks
rg -l "email.*change|change.*email" --type=typescript --type=tsx

Length of output: 5668


Script:

#!/bin/bash

echo "=== Checking email change implementation ==="
# Search in ts/tsx files using extensions
rg "emailChange" -g "*.ts" -g "*.tsx"

echo -e "\n=== Checking test files ==="
# Look specifically in test files
rg "emailChange" -g "*test.ts" -g "*test.tsx" -g "*spec.ts" -g "*spec.tsx"

echo -e "\n=== Checking translation usage patterns ==="
# Look for common translation usage patterns
rg "t\(['\"]emailChange|useTranslation.*emailChange|i18n.*emailChange" -g "*.ts" -g "*.tsx"

echo -e "\n=== Checking for email change related components ==="
# Find potential email change related files
find . -type f \( -name "*.ts" -o -name "*.tsx" \) -exec grep -l "email.*change\|change.*email" {} \;

Length of output: 711

@lukevella lukevella merged commit 67a3afb into main Jan 13, 2025
4 checks passed
@lukevella lukevella deleted the l10n_main branch January 13, 2025 21:24
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.

1 participant