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

[Hold for payment 2021-09-08] Missing Translation in CompanyStep #4744

Closed
akshayasalvi opened this issue Aug 18, 2021 · 12 comments
Closed

[Hold for payment 2021-09-08] Missing Translation in CompanyStep #4744

akshayasalvi opened this issue Aug 18, 2021 · 12 comments
Assignees
Labels
Engineering External Added to denote the issue can be worked on by a contributor Help Wanted Apply this label when an issue is open to proposals by contributors Weekly KSv2

Comments

@akshayasalvi
Copy link
Contributor

akshayasalvi commented Aug 18, 2021

If you haven’t already, check out our contributing guidelines for onboarding and email [email protected] to request to join our Slack channel!


Action Performed:

  1. Set your language to Spansih
  2. Navigate to /bank-account/company page
  3. Enter the details of the company form and keep one or two fields invalid, say Tax ID.
  4. Click on Submit & continue
  5. A modal will popup with english text

Expected Result:

Content in the ConfirmModal should be translated.

Actual Result:

ConfirmModal in CompanyStep has hardcoded english strings.

image

Screenshot 2021-08-19 at 12 43 52 AM

Workaround:

Can the user still use Expensify without this being fixed? Have you informed them of the workaround?

Platform:

Where is this issue occurring?

  • Web
  • iOS
  • Android
  • Desktop App
  • Mobile Web

Version Number:
Logs: https://stackoverflow.com/c/expensify/questions/4856
Notes/Photos/Videos: Any additional supporting documentation
Expensify/Expensify Issue URL:

View all open jobs on GitHub

@akshayasalvi akshayasalvi added AutoAssignerTriage Auto assign issues for triage to an available triage team member Daily KSv2 labels Aug 18, 2021
@MelvinBot
Copy link

Triggered auto assignment to @JmillsExpensify (AutoAssignerTriage), see https://stackoverflow.com/c/expensify/questions/4749 for more details.

@MelvinBot MelvinBot removed the AutoAssignerTriage Auto assign issues for triage to an available triage team member label Aug 18, 2021
@akshayasalvi
Copy link
Contributor Author

Proposed Solution

We can create three strings in en.js and es.js

en: {
	companyStep: {
		confirmModalTitle: 'Are you sure?',
		confirmModalPrompt: 'Please double check any highlighted fields and try again.'
		confirmModalConfirmText: 'Got it'
	}
}

// Same for es.js in Spanish translation 

and update CompanyStep with the following coe:


<ConfirmModal
    title={this.props.translate('companyStep.confirmModalTitle')}
    onConfirm={() => this.setState({isConfirmModalOpen: false})}
    prompt={this.props.translate('companyStep.confirmModalPrompt')}
    isVisible={this.state.isConfirmModalOpen}
    confirmText={this.props.translate('companyStep.confirmModalConfirmText')}
    shouldShowCancelButton={false}
/>

@JmillsExpensify
Copy link

Sounds great! I've created an upwork job here: https://www.upwork.com/jobs/~013d78575b95e8dfdf. Your proposal will be reviewed by our team shortly.

@JmillsExpensify JmillsExpensify added Exported External Added to denote the issue can be worked on by a contributor labels Aug 20, 2021
@MelvinBot MelvinBot added the Help Wanted Apply this label when an issue is open to proposals by contributors label Aug 20, 2021
@MelvinBot
Copy link

Triggered auto assignment to @iwiznia (Exported), see https://stackoverflow.com/c/expensify/questions/7972 for more details.

@iwiznia
Copy link
Contributor

iwiznia commented Aug 20, 2021

Proposal looks good to me, @JmillsExpensify you can hire @akshayasalvi

@chiragsalian, @MitchExpensify, @marcaaron please remember all copy, numbers and dates need to go through one of the localization methods (this was added in https://github.com/Expensify/App/pull/4483/files#diff-40ada854d0b6039d4db7da6cede12f7be0cf7d113cc16c8cbc638af4bd0121d4R260)

@chiragsalian
Copy link
Contributor

Ah whoops my bad, totally missed that. Thanks for the catch and fix.

@MelvinBot
Copy link

@iwiznia, @JmillsExpensify Uh oh! This issue is overdue by 2 days. Don't forget to update your issues!

@iwiznia
Copy link
Contributor

iwiznia commented Aug 23, 2021

This is merged already Melvin

@MelvinBot MelvinBot removed the Overdue label Aug 23, 2021
@iwiznia iwiznia added Weekly KSv2 and removed Daily KSv2 labels Aug 23, 2021
@JmillsExpensify
Copy link

Quick update: Chatted with @akshayasalvi yesterday and also successfully hired in Upwork.

@MelvinBot

This comment has been minimized.

@JmillsExpensify JmillsExpensify changed the title Missing Translation in CompanyStep [Hold for payment 2021-09-08] Missing Translation in CompanyStep Sep 1, 2021
@JmillsExpensify
Copy link

Closed out the Upwork job, as PR has been merged for 7 days and no specific issues with this PR. Thank you @akshayasalvi!

@akshayasalvi
Copy link
Contributor Author

Thank you @JmillsExpensify

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Engineering External Added to denote the issue can be worked on by a contributor Help Wanted Apply this label when an issue is open to proposals by contributors Weekly KSv2
Projects
None yet
Development

No branches or pull requests

5 participants