Implement currency formatting

- [x] Implementation
- [x] Tests
- [x] Doc

Fix #238 
No problem. In the first case, properties is actually the pattern itself (a string). In the second case, properties is the properties object.