-
-
Notifications
You must be signed in to change notification settings - Fork 929
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 city names for th #2075
Conversation
Codecov Report
Additional details and impacted files@@ Coverage Diff @@
## next #2075 +/- ##
=======================================
Coverage 99.61% 99.61%
=======================================
Files 2536 2538 +2
Lines 242236 242253 +17
Branches 1298 1302 +4
=======================================
+ Hits 241293 241330 +37
+ Misses 916 896 -20
Partials 27 27
|
This needs updating. |
Test failure seems unrelated see #2080 |
Yeah, one of the rare cases where a float() is an int. |
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.
Are the city prefixes/suffixes not applicable to th in general or did you remove them because we dont need them for the current pattern?
Both |
If it is not applicable, then keeping the data as [] shows to the other developers that this is intentionally absent. |
My assumption was that was only needed for definitions which have public methods. Now that citysuffix and cityprefix are no longer methods, seems like they could just be omitted for locales that don't need them? |
Yes they are indeed no longer accessible via public methods, BUT if the city suffixes/prefixes simply don't exist in the th locale they should be left in. This allows us to track which data is actually missing and which are not applicable. This will become easier after #2078. |
Sure, restored |
Adds city names for
th
. This stopsfakerTH.location.city()
sometimes throwing when #2004 is merged, asth
had no city patterns, so fell back to en patterns, but sometimes that would select a pattern with a city_prefix, which was empty inth
.