Skip to content
This repository has been archived by the owner on Nov 30, 2021. It is now read-only.

Commit

Permalink
#46 update the instructions for changing language (+example)
Browse files Browse the repository at this point in the history
  • Loading branch information
urish committed Apr 11, 2014
1 parent fe8a864 commit f10f776
Showing 1 changed file with 6 additions and 3 deletions.
9 changes: 6 additions & 3 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -38,11 +38,14 @@ If you need internationalization support, load specified moment.js locale file f
<script src="components/moment/lang/de.js"></script>
```

Than trigger global moment.js language (e.g. in your app's run() callback):
Then call the `amMoment.changeLanguage()` method (e.g. inside your app's run() callback):

```html
$window.moment.lang('de');
```js
myapp.run(function(amMoment) {
amMoment.changeLanguage('de');
});
```

### Configuration

Parameter `preprocess`(e.g: `unix`, `utc`) would pre-execute before.
Expand Down

0 comments on commit f10f776

Please sign in to comment.