This repository has been archived by the owner on Jul 2, 2018. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 91
Able to pass NSLocale to formatter #53
Comments
Hi @wess - is this not already supported? https://github.com/danthorpe/Money/blob/development/Money/Shared/Money.swift#L112 |
I missed that, but is Locale > NSLocale? It's how you do it here, I see: func formattedWithStyle(style: NSNumberFormatterStyle) -> String {
return Currency.formattedWithStyle(style, forLocaleId: NSLocale.currentLocale().localeIdentifier)(amount)
} |
Sorry - you are quite right. We can add an extension which accepts a I can't do this until the weekend - but happy to accept a Pull Request from you if you want to add a method to the same extension in Money.swift? |
danthorpe
added a commit
that referenced
this issue
Jul 17, 2016
danthorpe
added a commit
that referenced
this issue
Oct 16, 2016
* Makes formattedWithStyle forLocale public (#56) Fixes #53. * [development]: Removes Slather step Generating coverage in CI just seems so unstable. * Swift 2.3 (#61) * [MNY-60]: Recreates Swift 2.3 framework * [MNY-60]: Refactors CI pipeline * [MNY-60]: Fixes upload script * [MNY-60]: Updates build dependencies * [MNY-60]: Shares Money scheme Every time I forget to do this. * [MNY-60]: Fixes deployment targets for iOS * [MNY-60]: Fixes tvOS platform tests * [MNY-60]: Restores minimum version of OSX to 10.11 This is to match ValueCoding * [1.8.0]: Fixes issues raised by podspec linter * [1.8.0]: Bumps the version to 1.8.0
Sign up for free
to subscribe to this conversation on GitHub.
Already have an account?
Sign in.
Ability to pass NSLocale to the
forLocale
paramThe text was updated successfully, but these errors were encountered: