-
-
Notifications
You must be signed in to change notification settings - Fork 939
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
feat(locale): add Serbian (Latin) language #1801
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Please remove the duplicated values in your locale data as shown here
https://github.com/faker-js/faker/actions/runs/4050174605/jobs/6967813401
@import-brain Done, the tests should be passing now. |
Codecov Report
Additional details and impacted files@@ Coverage Diff @@
## next #1801 +/- ##
==========================================
- Coverage 99.62% 99.62% -0.01%
==========================================
Files 2354 2385 +31
Lines 236555 239261 +2706
Branches 1227 1226 -1
==========================================
+ Hits 235673 238363 +2690
- Misses 860 876 +16
Partials 22 22
|
@matthewmayer @ST-DDT when could we expect this to land? |
Probably best to use your own fork if you are relying on its functionality in the short term. https://blaipratdesaba.com/how-to-use-an-npm-node-module-that-has-been-forked-b7dd522fdd08 Even when it lands it will only be going into 8.0.0 which is still in alpha. |
We are currently busy and thus are a little bit slower with the reviews. As for a release, we might release another v8 alpha in the next month (not sure yet), Also I noticed, that there are two "Serbian" languages, that seem to have the same locale code. sr-RS@latin + sr-RS (Russian characters + some more?) https://github.com/validatorjs/validator.js/blob/master/src/lib/alpha.js#L24-L25 I'm not sure what the correct locale code would be here. |
That's alright, I understand that you're busy, however, these are mostly just Serbian names, cities and some addresses, nothing fancy. You can use the |
seems |
bit of background https://ciklopea.com/blog/localization/should-you-localize-to-serbian-latin-or-to-serbian-cyrillic/ @bdimitrovski one thing i wasn't totally clear on: can you do a perfect 1-1 transliteration between the Latin and Cyrillic scripts? ie a computer should be able to translate character by characters? Or does it require some context/knowledge |
Do you have a source for this? My search results show otherwise: https://www.google.com/search?q=%22sr_RS_Latin%22 => 747.000 Also I found this entry from the rust sources: |
This PR needs to be updated: git fetch --all
git merge origin/next
pnpm run preflight
git add .
git merge --continue |
A little bit of googling showed that |
@matthewmayer @ST-DDT @Shinigami92 is this ready to go then? |
We will discuss the locale key tomorrow in our team meeting. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Team Decision
docs.rs/pure-rust-locales/0.2.1/x86_64-apple-darwin/pure_rust_locales/sr_RS_latin/LC_TIME/index.html
Based on that source we have decided to use sr_RS_latin
as locale key.
Please change the locale key accordingly.
@ST-DDT How/where would I change that? Which file(s) should be altered? |
Basically
|
@matthewmayer Sure thing, that's what my thinking was too. But should I do that even in automatically generated files, like these? At this point, the |
doesn't really matter, they'll get regenerated by |
878e050
@matthewmayer @ST-DDT all done. |
Sorry, I've only seen this now - as for the transliteration, yes, it is possible - you can see it in action here https://www.lexilogos.com/keyboard/serbian_conversion.htm Serbian language is the only European language to use a 2 way lettering system (otherwise known as full synchronic digraphia), the Cyrillic letter is in formal use (government, documents, etc), while informally, almost everyone uses Latin, in everyday communication. Automatic transliteration to Cyrillic of the work that I've done for the Latin letter, is possible (again, referring to e.g. lexilogos.com): |
No description provided.