Skip to content

Add translation for rediret string#2399

Merged
zomars merged 6 commits intomainfrom
fix/redirect-translation
Apr 6, 2022
Merged

Add translation for rediret string#2399
zomars merged 6 commits intomainfrom
fix/redirect-translation

Conversation

@hariombalhara
Copy link
Copy Markdown
Member

@hariombalhara hariombalhara commented Apr 6, 2022

What does this PR do?

Fixes #2384
Adds translation for redirect text

Type of change

  • Bug fix (non-breaking change which fixes an issue)
  • New feature (non-breaking change which adds functionality)
  • Breaking change (fix or feature that would cause existing functionality to not work as expected)
  • This change requires a documentation update

How should this be tested?

  • Test A
  • Test B

Checklist

  • I haven't added tests that prove my fix is effective or that my feature works
  • I haven't checked if new and existing unit tests pass locally with my changes

@vercel
Copy link
Copy Markdown

vercel Bot commented Apr 6, 2022

This pull request is being automatically deployed with Vercel (learn more).
To see the status of your deployments, click below or on the icon next to each commit.

docs – ./apps/docs

🔍 Inspect: https://vercel.com/cal/docs/Ep32XQn7daaDueBgWNFeN9FBebo3
✅ Preview: Canceled

[Deployment for bd865e4 canceled]

calendso – ./apps/web

🔍 Inspect: https://vercel.com/cal/calendso/DeLjmGAcgisbKUdqGxW95QV82x2u
✅ Preview: https://calendso-git-fix-redirect-translation-cal.vercel.app

@hariombalhara hariombalhara requested review from PeerRich and zomars April 6, 2022 12:57
"24_hour": "24 hour",
"redirect_success_booking": "Redirect on booking ",
"you_are_being_redirected": "You are being redirected to {{ url }} in {{ timeRemaining }} second.",
"you_are_being_redirected_plural": "You are being redirected to {{ url }} in {{ timeRemaining }} seconds.",
Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

oh this works?

Copy link
Copy Markdown
Member Author

Choose a reason for hiding this comment

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

Yeah. I scratched my head for a long time. I was using _other instead of _plural as per this https://react.i18next.com/latest/trans-component.
Not sure when _plural is used and when _other

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

Instead of pluralizing whole sentences let's try to pluralize single units (seconds in this case) for maximum reusability.

Copy link
Copy Markdown
Member Author

Choose a reason for hiding this comment

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

Instead of pluralizing whole sentences let's try to pluralize single units (seconds in this case) for maximum reusability.

I have past experiences with translation where the whole sentence if provided can be given better translation. Not very sure of it's the right approach.
Would follow what you suggested for now, till I have solid reasoning.

Copy link
Copy Markdown
Contributor

@zomars zomars Apr 6, 2022

Choose a reason for hiding this comment

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

@hariombalhara agreed that there will be exceptions but "seconds" I don't think is one of them

@vercel vercel Bot temporarily deployed to Preview – docs April 6, 2022 13:05 Inactive
@vercel vercel Bot temporarily deployed to Preview – calendso April 6, 2022 13:05 Inactive
@vercel vercel Bot temporarily deployed to Preview – calendso April 6, 2022 16:02 Inactive
@vercel vercel Bot temporarily deployed to Preview – docs April 6, 2022 16:02 Inactive
@vercel vercel Bot temporarily deployed to Preview – docs April 6, 2022 16:02 Inactive
Copy link
Copy Markdown
Contributor

@zomars zomars left a comment

Choose a reason for hiding this comment

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

Simplified translation and added Spanish example to test it.

@zomars zomars enabled auto-merge (squash) April 6, 2022 16:04
@vercel vercel Bot temporarily deployed to Preview – docs April 6, 2022 16:04 Inactive
@vercel vercel Bot temporarily deployed to Preview – calendso April 6, 2022 16:07 Inactive
@vercel vercel Bot temporarily deployed to Preview – docs April 6, 2022 16:12 Inactive
@vercel vercel Bot temporarily deployed to Preview – calendso April 6, 2022 16:12 Inactive
@zomars zomars merged commit c07b9b9 into main Apr 6, 2022
@zomars zomars deleted the fix/redirect-translation branch April 6, 2022 16:21
@PeerRich PeerRich added the core area: core, team members only label Jul 24, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

core area: core, team members only

Projects

None yet

Development

Successfully merging this pull request may close these issues.

refactor redirect success page

3 participants