You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I installed DateToolsSwift pod, I need a relative time difference which I am able to achieve using timeAgo, but I need to set language for the string returns, Currently it takes default language(Locale).
Ex: let timeDiff = dateRangeEnd.timeAgo(since: dateRangeStart, numericDates: true, numericTimes: true).
this returns me a string ex: 1 minute ago. I want set language (locale) for this string I mean I want it to return in French can I do this, is there API available as of now ?
I saw an API in objective c in DateTools, called setLanguage I think that does work (But not sure) for my problem, But I needed it in swift.
The text was updated successfully, but these errors were encountered:
Hi,
I installed DateToolsSwift pod, I need a relative time difference which I am able to achieve using timeAgo, but I need to set language for the string returns, Currently it takes default language(Locale).
Ex: let timeDiff = dateRangeEnd.timeAgo(since: dateRangeStart, numericDates: true, numericTimes: true).
this returns me a string ex: 1 minute ago. I want set language (locale) for this string I mean I want it to return in French can I do this, is there API available as of now ?
I saw an API in objective c in DateTools, called setLanguage I think that does work (But not sure) for my problem, But I needed it in swift.
The text was updated successfully, but these errors were encountered: