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

[CAL-3991] clean up our i18n translation files

Open PeerRich opened this issue 1 year ago • 4 comments

the bounty here is to clean up every common.json file for all languages and remove unused strings

unused strings happen when the code is being removed, but not the language file

example:

{t("hello_world")} is being removed

but

hello_world: "Hello World" still shows up in all common.json files

This leads to a ton of extra translations and people asking for context because they dont see the string in the product anymore.

The task at hand:

  • write a script that can be run once for the PR
  • and submit the script so we can run it every now and then. does not need to run for each PR. once a month manually is fine

⚠️ Caution:

  • sometimes the strings are _one and _other:
CleanShot 2024-06-30 at 10 48 52@2x

so you might run a "Search and Replace" operation that could kill active strings, cause the _other would not show up in code:

CleanShot 2024-06-30 at 10 54 56@2x

CAL-3991

PeerRich avatar Jun 30 '24 08:06 PeerRich

/bounty 100

PeerRich avatar Jun 30 '24 08:06 PeerRich

~~## 💎 $100 bounty • Cal.com, Inc.~~

~~### Steps to solve:~~ ~~1. Submit work: Create a pull request including /claim #15623 in the PR body to claim the bounty~~ ~~2. Receive payment: 100% of the bounty is received 2-5 days post-reward. Make sure you are eligible for payouts~~

~~Thank you for contributing to calcom/cal.com!~~

~~Add a bountyShare on socials~~

algora-pbc[bot] avatar Jun 30 '24 08:06 algora-pbc[bot]

/attempt #15623

Options

rameshguditalu avatar Jun 30 '24 13:06 rameshguditalu

@PeerRich is this issue still open,coz somebody had already raised the PR

Mubashirshariq avatar Jul 03 '24 18:07 Mubashirshariq

/attempt #15623

Options

itzprincephutela avatar Jul 03 '24 20:07 itzprincephutela

/attempt

Amar995 avatar Jul 07 '24 18:07 Amar995

/attempt

ruchirajkarki avatar Jul 08 '24 03:07 ruchirajkarki

/attempt https://github.com/calcom/cal.com/issues/15623

varshith257 avatar Jul 08 '24 17:07 varshith257

Hey @PeerRich i am creating PR can you please check?

Amar995 avatar Jul 08 '24 20:07 Amar995

Due to technical difficulties we have decided it is not worth the efforts to pursue this.

https://github.com/calcom/cal.com/pull/16153#issuecomment-2278036875

Amit91848 avatar Sep 18 '24 05:09 Amit91848