WeblateOrg / weblate

Web based localization tool with tight version control integration.
https://weblate.org/
GNU General Public License v3.0
4.33k stars 970 forks source link

feat(widgets): support language- and site-wide widgets #11945

Closed nijel closed 2 days ago

nijel commented 2 days ago

Proposed changes

Make the code consistent and show only filtered languages on multi language widgets in all cases.

Fixes #3153 Fixes #4193

Checklist

Other information

codecov[bot] commented 2 days ago

Codecov Report

Attention: Patch coverage is 96.42857% with 2 lines in your changes missing coverage. Please review.

Project coverage is 90.62%. Comparing base (6aee586) to head (fde6be6). Report is 2326 commits behind head on main.

Additional details and impacted files [![Impacted file tree graph](https://app.codecov.io/gh/WeblateOrg/weblate/pull/11945/graphs/tree.svg?width=650&height=150&src=pr&token=9rzx9QBq35&utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=WeblateOrg)](https://app.codecov.io/gh/WeblateOrg/weblate/pull/11945?src=pr&el=tree&utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=WeblateOrg) ```diff @@ Coverage Diff @@ ## main #11945 +/- ## ========================================== - Coverage 90.82% 90.62% -0.20% ========================================== Files 554 581 +27 Lines 57306 59021 +1715 Branches 9122 9426 +304 ========================================== + Hits 52046 53487 +1441 - Misses 3640 3837 +197 - Partials 1620 1697 +77 ``` | [Files](https://app.codecov.io/gh/WeblateOrg/weblate/pull/11945?dropdown=coverage&src=pr&el=tree&utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=WeblateOrg) | Coverage Δ | | |---|---|---| | [weblate/trans/tests/test\_widgets.py](https://app.codecov.io/gh/WeblateOrg/weblate/pull/11945?src=pr&el=tree&filepath=weblate%2Ftrans%2Ftests%2Ftest_widgets.py&utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=WeblateOrg#diff-d2VibGF0ZS90cmFucy90ZXN0cy90ZXN0X3dpZGdldHMucHk=) | `100.00% <100.00%> (ø)` | | | [weblate/trans/views/widgets.py](https://app.codecov.io/gh/WeblateOrg/weblate/pull/11945?src=pr&el=tree&filepath=weblate%2Ftrans%2Fviews%2Fwidgets.py&utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=WeblateOrg#diff-d2VibGF0ZS90cmFucy92aWV3cy93aWRnZXRzLnB5) | `74.74% <100.00%> (+0.78%)` | :arrow_up: | | [weblate/utils/stats.py](https://app.codecov.io/gh/WeblateOrg/weblate/pull/11945?src=pr&el=tree&filepath=weblate%2Futils%2Fstats.py&utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=WeblateOrg#diff-d2VibGF0ZS91dGlscy9zdGF0cy5weQ==) | `93.20% <100.00%> (-0.44%)` | :arrow_down: | | [weblate/utils/views.py](https://app.codecov.io/gh/WeblateOrg/weblate/pull/11945?src=pr&el=tree&filepath=weblate%2Futils%2Fviews.py&utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=WeblateOrg#diff-d2VibGF0ZS91dGlscy92aWV3cy5weQ==) | `77.06% <100.00%> (-0.24%)` | :arrow_down: | | [weblate/trans/widgets.py](https://app.codecov.io/gh/WeblateOrg/weblate/pull/11945?src=pr&el=tree&filepath=weblate%2Ftrans%2Fwidgets.py&utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=WeblateOrg#diff-d2VibGF0ZS90cmFucy93aWRnZXRzLnB5) | `90.77% <92.85%> (-1.93%)` | :arrow_down: | ... and [338 files with indirect coverage changes](https://app.codecov.io/gh/WeblateOrg/weblate/pull/11945/indirect-changes?src=pr&el=tree-more&utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=WeblateOrg)
sentry-io[bot] commented 2 days ago

Suspect Issues

This pull request was deployed and Sentry observed the following issues:

Did you find this useful? React with a 👍 or 👎