We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
If some language has not a full set of plural rules SwiftDate returns an empty string ("") from date.toRelative().
SwiftDate
date.toRelative()
For example, for Russian "2 hours ago" is not returned at all, because it falls to a "few" rule which is absent in the dictionary:
public class lang_ru: RelativeFormatterLang { // ... private var _long: [String: Any] { return [ "hour": [ "current": "в этот час", "past": [ "one": "{0} час назад", "many": "{0} часов назад", "other": "{0} часа назад" ], // ...
The text was updated successfully, but these errors were encountered:
@malcommac The fix is available in Pull Request #631 Please review and accept it if it is ok.
Sorry, something went wrong.
Accepted, on track for 5.1.0. Thanks
malcommac
No branches or pull requests
If some language has not a full set of plural rules
SwiftDate
returns an empty string ("") fromdate.toRelative()
.For example, for Russian "2 hours ago" is not returned at all, because it falls to a "few" rule which is absent in the dictionary:
The text was updated successfully, but these errors were encountered: