From 8a3b674ac0987e040f5e2dafc7abc9dd12c77d92 Mon Sep 17 00:00:00 2001 From: Christian Kaisermann Date: Sat, 1 Dec 2018 20:27:27 -0200 Subject: [PATCH] Add how to get current locale --- README.md | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/README.md b/README.md index 07592ed..5f0d9d8 100644 --- a/README.md +++ b/README.md @@ -74,6 +74,10 @@ store.i18n.setLocale('en-US') ``` +#### 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' }))} -``` \ No newline at end of file +```