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 main code for Serbian language #151

Draft
wants to merge 2 commits into
base: master
Choose a base branch
from
Draft

Conversation

ceracera
Copy link

Language tag, According to IETF Language tags, can be composed of primary language tag, script tag and region tag (among some other, rarely used tags).

Main code for Serbian, by ISO 639-1, is sr.

Serbian and Bosnian have two scripts, latin and cyrillic, so I added those also, as in ISO 15924.

I also added, for both languages, region tag (sr-RS and bs-BA), as in ISO 3166-1 alpha 2 although I am not sure those are needed, but Croatian have that so why not ;)

Serbian, Croatian, Bosnian and Montenegrin are basically same languages but, officially, they are different, so I separated them here.

Main code for Serbian, by ISO 639-1, is "sr".
Serbian and Bosnian have two scripts, latin and cyrillic, so I added those also.
I also added, for both languages, variant with country tag (sr-RS and bs-BA) although I am not sure those are needed, but Croatian have that so why not ;)
Serbian, Croatian, Bosnian and Montenegrin are basically same languages but, officially, they are different, so I separated them here.
Comment on lines +58 to +59
serbian: russianPluralGroups,
bosnian: russianPluralGroups,
Copy link
Collaborator

Choose a reason for hiding this comment

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

bosnian_serbian must be preserved, or else it's a breaking change.

Suggested change
serbian: russianPluralGroups,
bosnian: russianPluralGroups,
bosnian_serbian: russianPluralGroups,
serbian: russianPluralGroups,
bosnian: russianPluralGroups,

index.js Show resolved Hide resolved
Co-authored-by: Jordan Harband <[email protected]>
@ljharb
Copy link
Collaborator

ljharb commented Oct 1, 2020

It'd also be good to add some tests for the two added language groups.

@ljharb ljharb marked this pull request as draft November 29, 2023 19:28
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.

2 participants