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

Do not allow substituting alternates or drafts in derived locales #1113

Merged
merged 2 commits into from
Aug 7, 2024

Conversation

akx
Copy link
Member

@akx akx commented Aug 6, 2024

For more coverage, we've allowed using alternate or draft values when no officially accepted values have been present.

However, non-global (i.e. e.g. de_CH locales) may have an alternate spelling for what would be an alternate in the parent locale (and that alternate hasn't been imported into the parent), and the import would have then accepted the alternate from the child locale as a non-alternate.

Fixes #1112.

akx added 2 commits August 6, 2024 17:59
For more coverage, we've allowed using alternate or draft values
when no officially accepted values have been present.

However, non-global (i.e. e.g. `de_CH` locales) may have an alternate
spelling for what would be an alternate in the parent locale (and
that alternate hasn't been imported into the parent), and the import
would have then accepted the alternate from the child locale as a
non-alternate.

Refs #1112
@akx akx requested a review from a team August 6, 2024 15:08
@akx akx added this to the Babel 2.16 milestone Aug 6, 2024
@akx akx marked this pull request as ready for review August 6, 2024 15:09
Copy link

codecov bot commented Aug 6, 2024

Codecov Report

All modified and coverable lines are covered by tests ✅

Project coverage is 91.21%. Comparing base (d3346ee) to head (cb8220b).

Additional details and impacted files
@@           Coverage Diff           @@
##           master    #1113   +/-   ##
=======================================
  Coverage   91.21%   91.21%           
=======================================
  Files          27       27           
  Lines        4496     4496           
=======================================
  Hits         4101     4101           
  Misses        395      395           
Flag Coverage Δ
macos-12-3.10 89.99% <ø> (ø)
macos-12-3.11 89.99% <ø> (ø)
macos-12-3.12 90.16% <ø> (ø)
macos-12-3.13-dev 89.67% <ø> (ø)
macos-12-3.8 89.91% <ø> (ø)
macos-12-3.9 89.91% <ø> (ø)
macos-12-pypy3.10 89.99% <ø> (ø)
ubuntu-22.04-3.10 90.01% <ø> (ø)
ubuntu-22.04-3.11 90.01% <ø> (ø)
ubuntu-22.04-3.12 90.19% <ø> (ø)
ubuntu-22.04-3.13-dev 89.70% <ø> (ø)
ubuntu-22.04-3.8 89.93% <ø> (ø)
ubuntu-22.04-3.9 89.93% <ø> (ø)
ubuntu-22.04-pypy3.10 90.01% <ø> (ø)
windows-2022-3.10 90.13% <ø> (ø)
windows-2022-3.11 90.13% <ø> (ø)
windows-2022-3.12 90.31% <ø> (ø)
windows-2022-3.13-dev 89.82% <ø> (ø)
windows-2022-3.8 90.06% <ø> (ø)
windows-2022-3.9 90.06% <ø> (ø)
windows-2022-pypy3.10 90.13% <ø> (ø)

Flags with carried forward coverage won't be shown. Click here to find out more.

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

Copy link
Contributor

@tomasr8 tomasr8 left a comment

Choose a reason for hiding this comment

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

Not an expert in this but it looks reasonable to me :)

@akx akx merged commit b4ba843 into master Aug 7, 2024
26 checks passed
@akx akx deleted the territory-alt branch August 7, 2024 08:14
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

German translation for Switzerland for country Turkey differs from Germany
2 participants