Skip to content
Snippets Groups Projects

teach eslint to check translations

Merged dakkar requested to merge feature/lint-translation-use into develop

What does this PR do?

This adds a custom ESLint rule that detects expressions of the form i18n.ts.* and i18n.tsx.*, and checks that they refer to existing elements in the translations. It also tries to check that parametric translations are called with the right arguments.

Tests are expected to fail, because there are, in fact, some missing translations.

If you all like the idea (and the implementation), we should rebase this after merging 2024.9 and add the missing translations.

Contribution Guidelines By submitting this merge request, you agree to follow our Contribution Guidelines

  • I agree to follow this project's Contribution Guidelines
  • I have made sure to test this pull request

Merge request reports

Loading
Loading

Activity

Filter activity
  • Approvals
  • Assignees & reviewers
  • Comments (from bots)
  • Comments (from users)
  • Commits & branches
  • Edits
  • Labels
  • Lock status
  • Mentions
  • Merge request status
  • Tracking
  • Hazelnoot approved this merge request

    approved this merge request

  • dakkar resolved all threads

    resolved all threads

  • dakkar added 1 commit

    added 1 commit

    Compare with previous version

  • dakkar reset approvals from @fEmber by pushing to the branch

    reset approvals from @fEmber by pushing to the branch

  • Hazelnoot approved this merge request

    approved this merge request

  • dakkar added 304 commits

    added 304 commits

    Compare with previous version

  • dakkar marked this merge request as draft

    marked this merge request as draft

  • dakkar reset approvals from @fEmber by pushing to the branch

    reset approvals from @fEmber by pushing to the branch

  • dakkar added 16 commits

    added 16 commits

    Compare with previous version

  • Author Developer

    the linting should pass now. I'm not completely happy with the changes I made, better options welcome!

  • dakkar added 20 commits

    added 20 commits

    Compare with previous version

  • dakkar added 1 commit

    added 1 commit

    Compare with previous version

  • dakkar marked this merge request as ready

    marked this merge request as ready

  • Marie approved this merge request

    approved this merge request

  • added tooling label

  • dakkar added 21 commits

    added 21 commits

    Compare with previous version

  • dakkar reset approvals from @Marie by pushing to the branch

    reset approvals from @Marie by pushing to the branch

  • Loading
  • Loading
  • Loading
  • Loading
  • Loading
  • Loading
  • Loading
  • Loading
  • Loading
  • Loading
  • Please register or sign in to reply
    Loading