chore: extract strings#245
Conversation
|
bmanquen
left a comment
There was a problem hiding this comment.
Just need to ensure that 'YouVersion' does not get translated. Besides that it looks good!
| return isSignOut ? ( | ||
| <div className="yv:font-normal"> | ||
| Sign out of <span className="yv:font-bold">YouVersion</span> | ||
| <Trans |
There was a problem hiding this comment.
We want to ensure that YouVersion does not get translated.
We should be able to add this prop to ensure YouVersion is not translated,
values={{ brand: 'YouVersion' }}.
You would also need to interpolate this variable in the strings file.
| ) : ( | ||
| <div className="yv:font-normal"> | ||
| Sign in with <span className="yv:font-bold">YouVersion</span> | ||
| <Trans |
| "signInWithYouVersion": "Sign in with <bold>YouVersion</bold>", | ||
| "signOutOfYouVersion": "Sign out of <bold>YouVersion</bold>", |
There was a problem hiding this comment.
Put 'YouVersion' as a varialble that you pass so that it is not translated.
This PR puts in place the localization strings in the react repo
Greptile Summary
This PR extracts all hardcoded UI strings in the
packages/uipackage intoreact-i18nexttranslation keys, wiring each component up withuseTranslation(undefined, { i18n })and adding the full English string catalog toen.json.t()for reactivity;LoaderIconandBibleVersionPickerLanguageTriggerwere specifically fixed to drop their previous static defaults in favor of hook-derived translations.getBibleTextErrorMessageinbible-text-error.tsis refactored to accept aTFunctionargument, cleanly decoupling the error-message logic from any i18n singleton.BibleAppLogoLockup,Votd) were converted from arrow-function constants to named function components to accommodate the hook call.Confidence Score: 5/5
Safe to merge — changes are purely additive string extraction with no behavioral modifications.
Every component correctly uses the hook-based t() for reactivity, the utility function refactor is cleanly scoped and TypeScript-enforced, and all previously flagged review issues (loader aria-label, share errorMessage default, and the server error key name) have been properly addressed.
No files require special attention.
Important Files Changed
Reviews (2): Last reviewed commit: "fix: address greptile issues" | Re-trigger Greptile