Skip to content

Conversation

@slatian
Copy link

@slatian slatian commented Oct 19, 2025

BCP 47 contains the RFC for standardized language tags and defines the language subtag registry at IANA.

This PR adds support for converting those subtags into whatlang::Script and back again.

I've added another case to ParseError as it is already a mixed bag kind of error enum and doing so will probably make it easier to enable deeper integration with the rest of the crates features (i.e. serde or FromStr).

Note: For consistency I've implemented the Display for ParseError against clippy recommendations.

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.

1 participant