Add how to get current locale

This commit is contained in:
Christian Kaisermann 2018-12-01 20:27:27 -02:00 committed by GitHub
parent 10b44382b8
commit 8a3b674ac0
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -74,6 +74,10 @@ store.i18n.setLocale('en-US')
</div>
```
#### Current locale
The current locale is available via `this.store.get().locale`.
#### Interpolation
```html
@ -128,4 +132,4 @@ store.i18n.setLocale('en-US')
{$_.title('greeting', { name: 'John' }))}
<!-- Hello John, How Are You?-->
</div>
```
```