-
-
Notifications
You must be signed in to change notification settings - Fork 217
Full set of translation wrapping #87
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
base: main
Are you sure you want to change the base?
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This is the final PR Bugbot will review for you during this billing cycle
Your free Bugbot reviews will reset on January 3
Details
Your team is on the Bugbot Free tier. On this plan, Bugbot will review limited PRs each billing cycle for each member of your team.
To receive Bugbot reviews on all of your PRs, visit the Cursor dashboard to activate Pro and start your 14-day free trial.
| "Upgrade": "", | ||
| "Upgrade your account": "", | ||
| "Zoom in/out": "" | ||
| } |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Bug: Missing translation keys in English locale file
The English locale file en.json is missing two translation keys that are used in templates and exist in fr.json: "% min read" (used in post.hbs for the reading_time helper's minutes parameter) and "and" (used in content-cta.hbs for tier list separators). This inconsistency between locale files may cause translation lookups to fail or display incorrect text for English users.
Additional Locations (2)
| @@ -0,0 +1,67 @@ | |||
| <!DOCTYPE html> | |||
| <html class="no-js" lang="en"> | |||
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Bug: Hardcoded language attribute ignores site locale setting
The new private.hbs template has a hardcoded lang="en" attribute, while default.hbs correctly uses lang="{{@site.locale}}". This causes the private page to always indicate English to browsers and screen readers, even when the page content is displayed in French or another language. The translated strings on this page (like "This site is private." and "Password") will be in the correct language, but the HTML document will incorrectly declare itself as English.
| @@ -1,7 +1,7 @@ | |||
| <form class="gh-form" data-members-form> | |||
| <input class="gh-form-input" id="{{email_field_id}}" name="email" type="email" placeholder="jamie@example.com" required data-members-email> | |||
| <input class="gh-form-input" id="{{email_field_id}}" name="email" type="email" placeholder="{{t "jamie@example.com"}}" required data-members-email> | |||
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Bug: Untranslated aria-label inconsistent with visible translated text
The aria-label="Subscribe" attribute remains hardcoded in English while the visible button text was updated to use {{t "Subscribe"}} for translation. This inconsistency means screen reader users will hear "Subscribe" in English even when the visible text is translated to French. Other templates in this PR correctly translate aria-labels (e.g., aria-label="{{t "Menu"}}" in navigation.hbs).
This is the translation wrapping for Source.
The PR includes French strings generated with AI. My intent is to remove these ASAP, replacing with human translations, but they're useful for inspection of the results.
Note
Adds i18n to the theme using the
thelper withen/frlocales, translating common UI strings and introducing pagination, content-CTA, and private page templates.locales/en.jsonandlocales/fr.jsonwith translation keys.{{t}}across templates (navigation, headers, forms, lightbox, pagination, post metadata, etc.).default.hbstitle to use{{meta_title page=(t "Page %")}}.partials/pagination.hbs: localized pagination controls (Newer Posts,Older Posts,Page {page} of {totalPages}).partials/content-cta.hbs: localized member/tier upgrade CTA messaging.private.hbs: localized private site access page.partials/components/*andpost.hbs: translate labels likeFeatured,Latest,Read more,Subscribe,Sign in,Account, search prompts, and lightbox controls; parameterize{{reading_time}}with localized minute strings.Powered by {ghostlink}with injected link.Written by Cursor Bugbot for commit eb7e562. This will update automatically on new commits. Configure here.