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

Apply localization to all hard coded text #2718

Merged
merged 3 commits into from
May 10, 2021
Merged

Apply localization to all hard coded text #2718

merged 3 commits into from
May 10, 2021

Conversation

eVoloshchak
Copy link
Contributor

Details

Applied localization to the Expensify.cash app, all hard coded text is replaced with locale-aware components/ methods.

Fixed Issues

Fixes #2408

Tested On

  • Web
  • Mobile Web
  • Desktop
  • iOS
  • Android

Screenshots

Leaving out the screenshots because there are no visual changes

@eVoloshchak eVoloshchak requested a review from a team as a code owner May 6, 2021 17:38
@MelvinBot MelvinBot requested review from pecanoro and removed request for a team May 6, 2021 17:38
pecanoro
pecanoro previously approved these changes May 7, 2021
@pecanoro
Copy link
Contributor

pecanoro commented May 7, 2021

It looks good to me, but I would love a second opinion since the PR is massive and React Native is not my strongest suit. @roryabraham or @Julesssss could any of you take a look?

@Julesssss
Copy link
Contributor

Sorry @pecanoro, but I'm unable to take on additional reviews just yet -- if this is still open once my N5 blockers are cleared I'll happily take a look though.

@roryabraham
Copy link
Contributor

I can take a look!

@eVoloshchak
Copy link
Contributor Author

Sorry @pecanoro, but I'm unable to take on additional reviews just yet -- if this is still open once my N5 blockers are cleared I'll happily take a look though.

I think @iwiznia also wanted to take a look

src/CONST.js Outdated Show resolved Hide resolved
src/components/AttachmentPicker/index.native.js Outdated Show resolved Hide resolved
src/components/TextInputFocusable/index.js Show resolved Hide resolved
src/CONST.js Outdated Show resolved Hide resolved
src/components/withLocalize.js Show resolved Hide resolved
src/pages/home/report/ReportTypingIndicator.js Outdated Show resolved Hide resolved
src/pages/home/report/ReportTypingIndicator.js Outdated Show resolved Hide resolved
src/languages/en.js Outdated Show resolved Hide resolved
src/languages/en.js Outdated Show resolved Hide resolved
src/languages/en.js Outdated Show resolved Hide resolved
Copy link
Contributor

@iwiznia iwiznia left a comment

Choose a reason for hiding this comment

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

Nice! Just a few comments

src/CONST.js Outdated Show resolved Hide resolved
src/components/IOUConfirmationList.js Outdated Show resolved Hide resolved
src/languages/en.js Outdated Show resolved Hide resolved
@eVoloshchak
Copy link
Contributor Author

Updated

src/components/withLocalize.js Show resolved Hide resolved
src/languages/en.js Outdated Show resolved Hide resolved
@iwiznia iwiznia merged commit c602342 into Expensify:main May 10, 2021
@OSBotify
Copy link
Contributor

🚀 Deployed to staging in version: 1.0.41-3🚀

platform result
🤖 android 🤖 success ✅
🖥 desktop 🖥 success ✅
🍎 iOS 🍎 success ✅
🕸 web 🕸 success ✅

@isagoico
Copy link

@eVoloshchak @iwiznia Anything that needs QA here? Or can we check it off the list?

@iwiznia
Copy link
Contributor

iwiznia commented May 11, 2021

No QA for this, but please be on the look for any text that looks wrong (ie: instead of saying something like Request money says iou.requestMoney)

@OSBotify
Copy link
Contributor

🚀 Deployed to production in version: 1.0.44-0🚀

platform result
🤖 android 🤖 failure ❌
🖥 desktop 🖥 success ✅
🍎 iOS 🍎 success ✅
🕸 web 🕸 success ✅

style: 'cancel',
},
{
text: this.props.translate('common.settings'),
Copy link
Contributor

Choose a reason for hiding this comment

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

No such key common.settings in languages/en: https://github.com/Expensify/Expensify.cash/pull/2718/files#diff-22037c1e4dbdea8803b450b3fce06e6c475762a31ecf84b34dc264ba0e443637R3

If it ever becomes the case that the user revoked camera permissions the app will seem to do nothing when they press on "Add Attachment" -> "Take Photo".
While the app actually throws an error here

Revoked.Camera.Permissions.mp4

The problem will be worse if the user selects "Deny & don't ask" as nothing would seem to happen after you press on "Take Photo"

  • Expected: When the app lacks permissions to take photos for some reason it should show alert message explaining why the "Take Photo" button doesn't work
  • Actual: Pressing "Take Photo" does nothing

@iwiznia
Copy link
Contributor

iwiznia commented Jun 7, 2021

@kidroca great catches! @eVoloshchak can you send a PR fixing them please?

@eVoloshchak
Copy link
Contributor Author

@kidroca great catches! @eVoloshchak can you send a PR fixing them please?

Submitted a PR

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.

Apply localization to all hard coded text in the Expensify.cash app
8 participants