Skip to content

Support language script subtags#384

Merged
mondeja merged 26 commits into
masterfrom
feat-script-subtags
Dec 25, 2025
Merged

Support language script subtags#384
mondeja merged 26 commits into
masterfrom
feat-script-subtags

Conversation

@mondeja

@mondeja mondeja commented Nov 14, 2025

Copy link
Copy Markdown
Owner

Resolves #368

This implementation needs to be posponed for v0.3 because it contains a breaking change: the id field of the Language struct is converted to &'static str from unic_langid::LanguageIdentifier. This is required because language identifiers with tags use Boxes at runtime, so the unique way to maintain the languages array const is building langids only at run-time when needed. Also, this change makes the Language type smaller.

@mondeja mondeja marked this pull request as ready for review November 14, 2025 17:51
@mondeja mondeja added the new feature Issues or pull requests that introduce new features label Nov 14, 2025
@mondeja mondeja force-pushed the feat-script-subtags branch from ae360ce to 748a2fa Compare November 14, 2025 17:54
@mondeja mondeja added this to the v0.3.0 milestone Nov 14, 2025
Repository owner deleted a comment from Copilot AI Nov 14, 2025
@mondeja mondeja merged commit a0f1de0 into master Dec 25, 2025
34 checks passed
@mondeja mondeja deleted the feat-script-subtags branch December 25, 2025 23:58
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

breaking new feature Issues or pull requests that introduce new features

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Support multiple scripts per one language (eg. Cyrillic & Latin Serbian)

1 participant