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

Add the ability to analyse nested translation folders #704

Merged
merged 1 commit into from
Feb 7, 2025

Conversation

beerinho
Copy link
Contributor

@beerinho beerinho commented Feb 7, 2025

As mentioned in #442, there was an issue where nested translations were being falsely shown as unused translations. This PR adapts the check to make sure the folders are incorporated into the check when wrapTranslationsWithNamespace is set to true in the config

Closes #442

@beerinho beerinho self-assigned this Feb 7, 2025
Copy link

@BlueCutOfficial BlueCutOfficial left a comment

Choose a reason for hiding this comment

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

I don't know this repo very well so don't hesitate to wait for a second review. Looking at the new test, looks good to me.

@beerinho beerinho force-pushed the dbeer/442-nested-translations branch from 92eb627 to 1c7e43f Compare February 7, 2025 14:26
@beerinho beerinho force-pushed the dbeer/442-nested-translations branch from 1c7e43f to af950f1 Compare February 7, 2025 14:40
@beerinho beerinho merged commit c20eb94 into master Feb 7, 2025
5 checks passed
@beerinho beerinho deleted the dbeer/442-nested-translations branch February 7, 2025 14:52
@beerinho beerinho added the enhancement New feature or request label Feb 7, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Incorrectly finds unused translations that are in separate files
3 participants