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

Update dependency i18next-scanner to ^4.6.0 #1102

Merged
merged 1 commit into from
Nov 1, 2024

Conversation

renovate[bot]
Copy link
Contributor

@renovate renovate bot commented Nov 1, 2024

This PR contains the following updates:

Package Change Age Adoption Passing Confidence
i18next-scanner ^4.5.0 -> ^4.6.0 age adoption passing confidence

Release Notes

i18next/i18next-scanner (i18next-scanner)

v4.6.0

Compare Source

What's Changed

  • ci: add test with node runtime 18 and 20 by @​lowsky in https://github.com/i18next/i18next-scanner/pull/259

  • refactor: allow the removeUnusedKeys function to be passed in to determine if an unused key should be removed by @​yocarbo in https://github.com/i18next/i18next-scanner/pull/262

    Set to true to remove unused translation keys from i18n resource files. By default, this is set to false.

    { // Default
      removeUnusedKeys: false,
    }

    If a function is provided, it will be used to decide whether an unused translation key should be removed.

    // Available since 4.6.0
    //
    // @​param {string} lng The language of the unused translation key.
    // @​param {string} ns The namespace of the unused translation key.
    // @​param {array} key The translation key in its array form.
    // @​return {boolean} Returns true if the unused translation key should be removed.
    removeUnusedKeys: function(lng, ns, key) {
      if (ns === 'resource') {
        return true;
      }
      return false;
    }

New Contributors

Full Changelog: i18next/i18next-scanner@v4.5.0...v4.6.0


Configuration

📅 Schedule: Branch creation - "before 4am on the first day of the month" (UTC), Automerge - At any time (no schedule defined).

🚦 Automerge: Disabled by config. Please merge this manually once you are satisfied.

Rebasing: Whenever PR is behind base branch, or you tick the rebase/retry checkbox.

🔕 Ignore: Close this PR and you won't be reminded about this update again.


  • If you want to rebase/retry this PR, check this box

This PR was generated by Mend Renovate. View the repository job log.

@renovate renovate bot requested a review from a team November 1, 2024 08:25
Copy link

codecov bot commented Nov 1, 2024

Codecov Report

All modified and coverable lines are covered by tests ✅

Project coverage is 89.23%. Comparing base (37c17c5) to head (3f6277f).
Report is 2 commits behind head on main.

Additional details and impacted files
@@            Coverage Diff             @@
##             main    #1102      +/-   ##
==========================================
+ Coverage   89.17%   89.23%   +0.05%     
==========================================
  Files          58       58              
  Lines        3382     3382              
  Branches      454      455       +1     
==========================================
+ Hits         3016     3018       +2     
+ Misses        366      364       -2     

@kdeininger kdeininger merged commit b486417 into main Nov 1, 2024
16 checks passed
@kdeininger kdeininger deleted the renovate/i18next-scanner-4.x branch November 1, 2024 08:43
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.

1 participant