cal.com icon indicating copy to clipboard operation
cal.com copied to clipboard

fixes #8534 : :Add i18-next for this "Please reschedule."

Open kuluruvineeth opened this issue 1 year ago • 4 comments

What does this PR do?

  • Added i18-next for this "Please reschedule."
  • Before: cancellationReason: Please reschedule. ${cancellationReason}
  • After: cancellationReason: t('Please reschedule.') + " " + cancellationReason

Fixes #8534

Environment: Production

kuluruvineeth avatar Apr 30 '23 13:04 kuluruvineeth

The latest updates on your projects. Learn more about Vercel for Git ↗︎

Name Status Preview Comments Updated (UTC)
ui ✅ Ready (Inspect) Visit Preview 💬 Add feedback May 11, 2023 1:19am

vercel[bot] avatar Apr 30 '23 13:04 vercel[bot]

@kuluruvineeth is attempting to deploy a commit to the cal Team on Vercel.

A member of the Team first needs to authorize it.

vercel[bot] avatar Apr 30 '23 13:04 vercel[bot]

📦 Next.js Bundle Analysis for @calcom/web

This analysis was generated by the Next.js Bundle Analysis action. 🤖

Sixty-five Pages Changed Size

The following pages changed size from the code in this PR compared to its base branch:

Page Size (compressed) First Load % of Budget (350 KB)
/[user] 152.03 KB 302.46 KB 86.42% (🟡 +4.70%)
/[user]/[type] 200 KB 350.42 KB 100.12% (🟡 +4.65%)
/[user]/[type]/embed 200.02 KB 350.45 KB 100.13% (🟡 +4.65%)
/[user]/book 270.43 KB 420.86 KB 120.25% (🟡 +4.67%)
/[user]/embed 152.1 KB 302.53 KB 86.44% (🟡 +4.70%)
/apps 275.11 KB 425.54 KB 121.58% (🟢 -0.28%)
/apps/[slug] 293.05 KB 443.48 KB 126.71% (🟢 -0.28%)
/apps/[slug]/[...pages] 472.68 KB 623.11 KB 178.03% (🟡 +4.52%)
/apps/categories 254.92 KB 405.35 KB 115.81% (🟡 +4.68%)
/apps/categories/[category] 258.31 KB 408.74 KB 116.78% (🟢 -0.28%)
/apps/installed/[category] 275 KB 425.43 KB 121.55% (🟢 -0.56%)
/auth/setup 191.33 KB 341.75 KB 97.64% (🟡 +4.74%)
/availability 260.25 KB 410.67 KB 117.34% (🟡 +4.67%)
/availability/[schedule] 347.18 KB 497.61 KB 142.17% (🟡 +4.57%)
/availability/troubleshoot 255.61 KB 406.04 KB 116.01% (🟡 +4.68%)
/booking/[uid] 232.13 KB 382.56 KB 109.30% (🟡 +4.69%)
/bookings/[status] 355.57 KB 506 KB 144.57% (🟡 +4.66%)
/d/[link]/[slug] 199.64 KB 350.07 KB 100.02% (🟡 +4.65%)
/d/[link]/[slug]/embed 199.67 KB 350.1 KB 100.03% (🟡 +4.65%)
/d/[link]/book 270.08 KB 420.51 KB 120.14% (🟡 +4.68%)
/event-types 430.94 KB 581.36 KB 166.10% (🟡 +4.08%)
/event-types/[type] 466.92 KB 617.35 KB 176.39% (🟢 -0.54%)
/getting-started/[[...step]] 413.22 KB 563.65 KB 161.04% (🟢 -0.80%)
/insights 463.77 KB 614.2 KB 175.48% (🟡 +4.68%)
/more 254.55 KB 404.98 KB 115.71% (🟡 +4.67%)
/new-booker/[user]/[type] 301.82 KB 452.25 KB 129.21% (🟡 +4.40%)
/new-booker/team/[slug]/[type] 301.82 KB 452.25 KB 129.21% (🟡 +4.40%)
/payment/[uid] 126.11 KB 276.54 KB 79.01% (🟡 +4.71%)
/settings/admin 260.15 KB 410.58 KB 117.31% (🟡 +4.68%)
/settings/admin/apps 271.67 KB 422.1 KB 120.60% (🟡 +4.67%)
/settings/admin/apps/[category] 271.66 KB 422.09 KB 120.60% (🟡 +4.66%)
/settings/admin/flags 262.8 KB 413.23 KB 118.07% (🟡 +4.68%)
/settings/admin/impersonation 260.44 KB 410.87 KB 117.39% (🟡 +4.69%)
/settings/admin/users 261.57 KB 412 KB 117.71% (🟡 +4.68%)
/settings/admin/users/[id]/edit 348.35 KB 498.78 KB 142.51% (🟡 +4.57%)
/settings/admin/users/add 348.07 KB 498.5 KB 142.43% (🟡 +4.58%)
/settings/billing 260.28 KB 410.71 KB 117.35% (🟡 +4.68%)
/settings/developer/api-keys 288.86 KB 439.29 KB 125.51% (🟡 +4.68%)
/settings/developer/webhooks 262.66 KB 413.09 KB 118.03% (🟡 +4.68%)
/settings/developer/webhooks/[id] 266.05 KB 416.48 KB 118.99% (🟡 +4.68%)
/settings/developer/webhooks/new 265.91 KB 416.34 KB 118.95% (🟡 +4.68%)
/settings/my-account/appearance 274.39 KB 424.82 KB 121.38% (🟡 +4.61%)
/settings/my-account/calendars 266.89 KB 417.32 KB 119.23% (🟡 +4.40%)
/settings/my-account/conferencing 265.76 KB 416.19 KB 118.91% (🟡 +4.67%)
/settings/my-account/general 342.16 KB 492.59 KB 140.74% (🟡 +4.68%)
/settings/my-account/profile 376.98 KB 527.41 KB 150.69% (🟡 +4.22%)
/settings/security/impersonation 262.05 KB 412.48 KB 117.85% (🟡 +4.68%)
/settings/security/password 272.66 KB 423.09 KB 120.88% (🟡 +4.66%)
/settings/security/sso 269.65 KB 420.08 KB 120.02% (🟡 +4.68%)
/settings/security/two-factor-auth 264.48 KB 414.91 KB 118.55% (🟡 +4.68%)
/settings/teams 259.91 KB 410.34 KB 117.24% (🟡 +4.68%)
/settings/teams/[id]/appearance 274.21 KB 424.64 KB 121.33% (🟡 +4.61%)
/settings/teams/[id]/billing 260.15 KB 410.58 KB 117.31% (🟡 +4.68%)
/settings/teams/[id]/members 373.59 KB 524.02 KB 149.72% (🟡 +4.62%)
/settings/teams/[id]/profile 372.35 KB 522.78 KB 149.37% (🟡 +4.22%)
/settings/teams/[id]/sso 269.75 KB 420.18 KB 120.05% (🟡 +4.68%)
/settings/teams/new 199.42 KB 349.84 KB 99.96% (🟡 +4.77%)
/team/[slug] 172.13 KB 322.56 KB 92.16% (🟡 +4.76%)
/team/[slug]/[type] 199.64 KB 350.07 KB 100.02% (🟡 +4.65%)
/team/[slug]/[type]/embed 199.67 KB 350.1 KB 100.03% (🟡 +4.65%)
/team/[slug]/book 270.08 KB 420.51 KB 120.15% (🟡 +4.67%)
/team/[slug]/embed 172.2 KB 322.63 KB 92.18% (🟡 +4.76%)
/teams 254.64 KB 405.07 KB 115.73% (🟡 +4.68%)
/workflows 267.45 KB 417.88 KB 119.39% (🟡 +4.68%)
/workflows/[workflow] 373.32 KB 523.75 KB 149.64% (🟡 +4.35%)
Details

Only the gzipped size is provided here based on an expert tip.

First Load is the size of the global bundle plus the bundle for the individual page. If a user were to show up to your website and land on a given page, the first load size represents the amount of javascript that user would need to download. If next/link is used, subsequent page loads would only need to download that page's bundle (the number in the "Size" column), since the global bundle has already been downloaded.

Any third party scripts you have added directly to your app using the <script> tag are not accounted for in this analysis

The "Budget %" column shows what percentage of your performance budget the First Load total takes up. For example, if your budget was 100kb, and a given page's first load size was 10kb, it would be 10% of your budget. You can also see how much this has increased or decreased compared to the base branch of your PR. If this percentage has increased by 20% or more, there will be a red status indicator applied, indicating that special attention should be given to this. If you see "+/-

github-actions[bot] avatar Apr 30 '23 13:04 github-actions[bot]

Thanks for the contribution @kuluruvineeth 🙏 But we shouldn't concatenate translated strings Screenshot 2023-05-02 at 6 40 40 PM

We should instead use complete string with variable Please reschedule. {{cancellationReason}}

See e.g.

https://github.com/calcom/cal.com/blob/f060e8e543edb78606284b2129ec4ca6f304ec30/apps/web/public/static/locales/en/common.json#L34

Also, I think you translated it in al the languages yourself. You don't need to do this. We use crowdin to do the translation.

@hariombalhara thank you for reviewing and suggesting changes, i have made the changes as recommended by passing variable to translated string and added only in en file. Please review and let me know if still any changes are to be made, thanks.

kuluruvineeth avatar May 02 '23 14:05 kuluruvineeth

Consistency on the underscoring of keys 🙏

@emrysal Thanks for reviewing it. I have renamed to the format of underscoring keys to maintain consistency as suggested. Thanks.

kuluruvineeth avatar May 11 '23 01:05 kuluruvineeth

I'm closing this for now, as the cancellation reason is already included in the email that is sent.

image

joeauyeung avatar May 12 '23 00:05 joeauyeung