Skip to content

Remove unnecessary or outdated i18n-tasks unused keys#6361

Merged
aduth merged 1 commit intomainfrom
aduth-rm-unused-unuseds
May 17, 2022
Merged

Remove unnecessary or outdated i18n-tasks unused keys#6361
aduth merged 1 commit intomainfrom
aduth-rm-unused-unuseds

Conversation

@aduth
Copy link
Contributor

@aduth aduth commented May 17, 2022

Why:

  • So that the list is an accurate reflection of used keys
  • So that all translation data is expected to be used in the application
  • To minimize and discourage use of this override in favor of inline configuration

The general approach here was to comment out the configuration, running i18n-tasks and adding back only the keys confirmed to be in use.

Since some translations are referenced dynamically (typically why one would use this configuration), I'd appreciate a second set of eyes that the removed translation strings are actually unused.

**Why**:

- So that the list is an accurate reflection of used keys
- So that all translation data is expected to be used in the application
- To minimize use of this override in favor of inline configuration

changelog: Internal, Code Quality, Remove unused translation data
Copy link
Contributor

@zachmargolis zachmargolis left a comment

Choose a reason for hiding this comment

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

LGTM, good finds!

@aduth aduth merged commit 2a7710c into main May 17, 2022
@aduth aduth deleted the aduth-rm-unused-unuseds branch May 17, 2022 20:25
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.

3 participants