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

[labs-275] Dance AI: Clean up unused strings (ex. Strings with ‘2’ suffix) #56339

Merged
merged 5 commits into from
Feb 13, 2024

Conversation

cnbrenci
Copy link
Contributor

@cnbrenci cnbrenci commented Feb 6, 2024

Remove unused strings leftover from danceAI.

Notably, I left in the "2" at the end of the strings. In order to keep the original names without the "2" we'd have to remove the unused strings (essentially this PR), wait for translations to sync, then remove the "2" from the ends of the strings (renaming them to the original names that we're removing in this PR) and re-translate them. I chose to leave the "2" at the end and just clean up the unused string versions.

Links

Testing story

Searched codebase to validate no usages for the removed strings.
Ran through DanceAI locally.

@cnbrenci cnbrenci requested a review from a team as a code owner February 6, 2024 00:59
@cnbrenci
Copy link
Contributor Author

cnbrenci commented Feb 6, 2024

This PR is a continuation of #56214, which was mis-closed by the Git LFS migration (#55759).

Previous Comments:

Previous Reviews:

  • cnbrenci commented - I'm not sure how this will work for the translated strings- is it fine to use the same names as previously existed? Any weird fallback that might show the old strings briefly or something until they're translated? I want to make sure it's OK to re-use the original string names.
  • breville commented - Will this rename to an existing key have an effect on our translations?
  • cnbrenci commented - Yeah I was hoping you'd know the answer to that :P @mgc1194 do you know if this is going to be problematic? Do I need to avoid re-using the string names? I wanted to keep the ones that don't have "2" at the end, but if that's going to cause problems with translations I can just clean up the unused ones and leave the "2" ones.

@cnbrenci cnbrenci requested a review from a team February 8, 2024 17:55
Copy link
Contributor

@fisher-alice fisher-alice left a comment

Choose a reason for hiding this comment

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

Thanks for doing this!
So just confirming that after this is merged and after the i18n sync, we could still update the string key names and remove the 2 later on. But the repercussions of this would be that the English string in non-English languages would be used until the strings are translated? Is that correct @mgc1194 ?

Copy link
Member

@breville breville left a comment

Choose a reason for hiding this comment

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

Thanks for this tidy-up. The background is that we were fine-tuning a variety of strings near the very end of the release last year, but wanted to keep the prior versions of them just in case we pivoted back at the last minute.

@cnbrenci cnbrenci merged commit fa1d2b2 into staging Feb 13, 2024
2 checks passed
@cnbrenci cnbrenci deleted the cassim/labs-275-dance-ai-unused-strings branch February 13, 2024 17:08
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.

None yet

4 participants