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

Add BCP 47 resolution #1799

Merged
merged 3 commits into from
Nov 29, 2023
Merged

Add BCP 47 resolution #1799

merged 3 commits into from
Nov 29, 2023

Conversation

mjgiarlo
Copy link
Member

@mjgiarlo mjgiarlo commented Nov 21, 2023

This commit adds the ability to parse BCP 47 registries into records and look up labels given BCP 47 tag strings.

@mjgiarlo mjgiarlo force-pushed the bcp47-resolution branch 3 times, most recently from b0da12d to b669d9d Compare November 21, 2023 22:46
Comment on lines +3 to +16
module Bcp47
require 'bcp47/parser'
require 'bcp47/record'
require 'bcp47/registry'
end
Copy link
Member Author

Choose a reason for hiding this comment

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

Sticking this in lib/ since it seems ripe for extraction to a new BCP 47 gem. The current gems for BCP 47 are outdated and unmaintained, as best I can tell.

@mjgiarlo mjgiarlo self-assigned this Nov 22, 2023
@mjgiarlo mjgiarlo marked this pull request as ready for review November 22, 2023 18:44
lib/bcp47/registry.rb Outdated Show resolved Hide resolved
@mjgiarlo mjgiarlo force-pushed the bcp47-resolution branch 2 times, most recently from b8d2b3d to 4de8edc Compare November 22, 2023 19:22
@mjgiarlo mjgiarlo requested a review from jcoyne November 22, 2023 19:22
This commit adds the ability to parse BCP 47 registries into records and look up labels given BCP 47 tag strings.
@jcoyne
Copy link
Contributor

jcoyne commented Nov 28, 2023

Needs a rebase.

@mjgiarlo
Copy link
Member Author

Needs a rebase.

@jcoyne done, thanks!

.rubocop_todo.yml Outdated Show resolved Hide resolved
@mjgiarlo mjgiarlo requested a review from jcoyne November 29, 2023 18:41
@jcoyne jcoyne merged commit 68488a0 into main Nov 29, 2023
1 check passed
@jcoyne jcoyne deleted the bcp47-resolution branch November 29, 2023 19:41
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.

2 participants