Open samwize opened 7 years ago
Using fromNow() did not return the localized version for "%d days ago" and others.
fromNow()
The string format used in fromNow() is %%1.0f %@days ago, but in the strings files all uses %d and not %f, therefore it never get matched.
%%1.0f %@days ago
%d
%f
Seems like a broken change.
Change the format to %d days ago, and use value as Int.
%d days ago
value
Int
In master this is working correctly using %d. Please merge so that the current pod version 0.7 can work.
Detailed Description
Using
fromNow()
did not return the localized version for "%d days ago" and others.The string format used in
fromNow()
is%%1.0f %@days ago
, but in the strings files all uses%d
and not%f
, therefore it never get matched.Context
Seems like a broken change.
Possible Implementation
Change the format to
%d days ago
, and usevalue
asInt
.Your Environment