Skip to content
This repository has been archived by the owner on Feb 3, 2020. It is now read-only.

fromNow() not returning localized string #87

Open
samwize opened this issue Mar 15, 2017 · 1 comment
Open

fromNow() not returning localized string #87

samwize opened this issue Mar 15, 2017 · 1 comment

Comments

@samwize
Copy link

samwize commented Mar 15, 2017

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 use value as Int.

Your Environment

  • Version used: 0.7.0
  • Operating System and version: Mac 10.12.3
  • Link to your project: -
@samwize
Copy link
Author

samwize commented Mar 15, 2017

In master this is working correctly using %d. Please merge so that the current pod version 0.7 can work.

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant