| Index: README.md
|
| diff --git a/README.md b/README.md
|
| index 2f789a2acbf793aadb450289fdbb2ff90d72b649..ec71975259abf53eb43b82f649755c7704814ed1 100644
|
| --- a/README.md
|
| +++ b/README.md
|
| @@ -39,11 +39,26 @@ the [withLocale][withLocale] operation may be preferable to setting
|
| Intl.withLocale('fr', () => print(myLocalizedMessage());
|
|
|
| To specify the locale for an operation you can create a format object in
|
| -a specific locale, or pass in the locale as a parameter to methods.
|
| -
|
| - var format = new DateFormat.yMd("ar");
|
| - var dateString = format.format(new DateTime.now());
|
| - print(myMessage(dateString, locale: 'ar');
|
| +a specific locale, pass in the locale as a parameter to methods, or
|
| +set the default locale.
|
| +
|
| +```dart
|
| +var format = new DateFormat.yMd("ar");
|
| +var dateString = format.format(new DateTime.now());
|
| +```
|
| +
|
| +or
|
| +
|
| +```dart
|
| +print(myMessage(dateString, locale: 'ar');
|
| +```
|
| +
|
| +or
|
| +
|
| +```dart
|
| +Intl.defaultLocale = "es"'
|
| +new DateFormat.jm().format(new DateTime.now());
|
| +```
|
|
|
| ## Initialization
|
|
|
|
|