ruby-i18n / ruby-i18n/ruby-cldr

Fallbacks for locales with scripts are incorrect

Open
#103 0 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

Dominant language
Ruby
Stars
78
Forks
18
Avg merge
9d 8h
Merged PRs (30d)
3

Description

When falling back through locales, we don't want to fallback to a non-default script, and should instead fall back to :root

Refer to this code in the CLDR upstream:

https://github.com/unicode-org/cldr/blob/2ef01fbbb2a3de93f241e51dd8e37a4b37ae54be/tools/cldr-code/src/main/java/org/unicode/cldr/util/LocaleIDParser.java#L121-L148

Contributor guide

No contributing guide indexed for this repository

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Research direction

Start by comparing the repository's locale fallback behavior with the referenced CLDR upstream implementation in LocaleIDParser.java, lines 121-148. Reproduce a fallback case involving a locale script and verify that it falls back to :root rather than a non-default script; done means the incorrect fallback is corrected and the behavior is covered by the project's tests.

Written by the indexing model from the issue text.

Assessment

Tech stack
ruby
Domain
internationalization, localization
Issue type
Bug
Difficulty
3/5
Estimated time
1-2 days
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
45/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.