Skip to content

Commit

Permalink
Fix README code sample to use current localization code
Browse files Browse the repository at this point in the history
  • Loading branch information
Mordil committed Mar 8, 2020
1 parent d2cc6e5 commit 9a7a30d
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@ let gbp = GBP(109.23)
print(usd + gbp) // compile error

let jpy: JPY = 399 // JPY(399)
print("The total cost is \(localize: JPY, forLocale: .init(identifier: "fr_FR")).)
print("The total cost is \(localize: JPY, for: .init(identifier: "fr_FR")).)
// "The total cost is 399 JPY."
```
Expand Down

0 comments on commit 9a7a30d

Please sign in to comment.