Skip to content

Commit 1b74ed4

Browse files
committed
Localize.Currency.new -> Money.Currency.new references in README. Closes #198
1 parent 60d8999 commit 1b74ed4

1 file changed

Lines changed: 5 additions & 5 deletions

File tree

README.md

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -121,7 +121,7 @@ Localize.get_locale()
121121
Cldr.Currency.new(:XBTC, name: "Bitcoin", symbol: "", digits: 8)
122122

123123
# After (6.0):
124-
Localize.Currency.new(:XBTC, name: "Bitcoin", symbol: "", digits: 8)
124+
Money.Currency.new(:XBTC, name: "Bitcoin", symbol: "", digits: 8)
125125
```
126126

127127
### Update error handling
@@ -160,14 +160,14 @@ It is possible to define private use currencies. These are currencies that are [
160160

161161
### Defining private use and custom currencies
162162

163-
See `Localize.Currency.new/2`.
163+
See `Money.Currency.new/2`.
164164

165165
### Custom currency store
166166

167-
The `Localize.Currency.Store` GenServer is started automatically by the `localize` application and manages the storage of custom currency definitions. Custom currencies can be defined at any time after application startup:
167+
The `Money.Currency.Store` GenServer is started automatically by the `ex_money` application and manages the storage of custom currency definitions. Custom currencies can be defined at any time after application startup:
168168

169169
```elixir
170-
Localize.Currency.new(:XBTC, name: "Bitcoin", symbol: "", digits: 8)
170+
Money.Currency.new(:XBTC, name: "Bitcoin", symbol: "", digits: 8)
171171
```
172172

173173
## Exchange rates and currency conversion
@@ -869,7 +869,7 @@ All `Money` calculations are done with decimal arithmetic to the maxium precisio
869869

870870
**13. All currencies have an ISO 4217 3-letter code. (The Transnistrian ruble has none, for example)**
871871

872-
`Money` does validate currency codes against the ISO 4217 list. Custom currencies can be created in accordance with ISO 4217 using `Localize.Currency.new/2`.
872+
`Money` does validate currency codes against the ISO 4217 list. Custom currencies can be created in accordance with ISO 4217 using `Money.Currency.new/2`.
873873

874874
**14. All currencies have a different name. (French franc, "nouveau franc")**
875875

0 commit comments

Comments
 (0)