Permalink
Browse files

Adding documentation for locales property

  • Loading branch information...
1 parent 8d43006 commit bf1a9c804c1e2db5bd3cdbc49a63861c4de49c9c Jason Mitchell committed Jan 11, 2017
Showing with 9 additions and 0 deletions.
  1. +9 −0 docs/ember-service-api.md
@@ -23,6 +23,15 @@ Access the service from within the instance via: `this.get('intl')`
The current locale associated with the application. To set this property,
use the `setLocale` method.
+**locales** _readOnly_
+
+Returns an array of locales that have translations assigned to them. This works
+with both bundled translations and lazy-loaded translations.
+
+```js
+intl.get('locales') => ['en-us', 'en-ca', 'fr-fr'];
+```
+
## Methods
**t** _(translationKey:String, optionalOptions:Object, optionalFormats:Object)_

0 comments on commit bf1a9c8

Please sign in to comment.