Commit 8b9b7c25 authored by Zéfling's avatar Zéfling 🎨
Browse files

Udapte README.md : format() → _format()

parent b927f400
......@@ -7,10 +7,10 @@ The idea is for the formatter is to approach the formatting possibilities of fmt
### Examples :
```js
"Il y a {0, number, #,##0:fr} jour{0, choice,1<=|1>s}".format(1200); // Il y a 1 200 jours
"Il y a {jours, number, #,##0:fr} jour{jours, choice,1<=|1>s}".format({jours : 1}); // Il y a 1 jour
"Rendez-vous le {date, date, dd/MM/yyyy}".format({date : '2016-04-10'}); // Rendez-vous le 10/04/2016
"Le resultat est {0, choice, 10<{1}|10>={2}}.".format([12, 'petit', 'grand']); // Le resultat est grand.
"Il y a {0, number, #,##0:fr} jour{0, choice,1<=|1>s}"._format(1200); // Il y a 1 200 jours
"Il y a {jours, number, #,##0:fr} jour{jours, choice,1<=|1>s}"._format({jours : 1}); // Il y a 1 jour
"Rendez-vous le {date, date, dd/MM/yyyy}"._format({date : '2016-04-10'}); // Rendez-vous le 10/04/2016
"Le resultat est {0, choice, 10<{1}|10>={2}}."._format([12, 'petit', 'grand']); // Le resultat est grand.
```
## DOM
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment