akosma / SwiftMoment

A time and calendar manipulation library for iOS 9+, macOS 10.11+, tvOS 9+, watchOS 2+ written in Swift 4.
http://akosma.github.io/SwiftMoment
BSD 2-Clause "Simplified" License
1.61k stars 147 forks source link

French translation strings #79

Open leobouilloux opened 7 years ago

leobouilloux commented 7 years ago

Hello,

I'm using your library to display the time between the last modification date of a file and the current date.

It works very well but it seems French strings (and maybe others) are not loaded properly. I'm not sure, but I think that each translation string keys containing "%@" are not loaded. You can see it the the screenshot bellow: img_2852

Just in case, here is the code used for the detailLabel:

detailLabel.text = moment(node.lastSyncDate).fromNow()

I'm using Swift 3 / Xcode 8.1 / iOS 10.1

Hope you can help me, cheers for the good work.

momamene commented 7 years ago

Korean also does. It seems that the format of localization strings in MomentFromNow.bundle doesn't match with MomentFromNow.swift. 1.0f% and %d doesn't same.

See https://github.com/akosma/SwiftMoment/commit/db8c2ee5e0528adf89fd12f78f7e9888cd2161e5

I hope to release fixed next version as soon as possible.