Skip to content

Commit

Permalink
feat: Add method getActiveLanguage
Browse files Browse the repository at this point in the history
  • Loading branch information
xiCO2k committed Dec 11, 2021
1 parent e0c2cb3 commit 613f617
Show file tree
Hide file tree
Showing 5 changed files with 982 additions and 1,019 deletions.
11 changes: 11 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -107,3 +107,14 @@ import { loadLanguageAsync } from 'laravel-vue-i18n';
<button @click="loadLanguageAsync('pt')">Change to Portuguese Language</button>
</template>
```

### `getActiveLanguage()`

The `getActiveLanguage()` returns the language that is current beign used.


```jsx
import { getActiveLanguage } from 'laravel-vue-i18n';

const lang = getActiveLanguage(); // en
```
Loading

0 comments on commit 613f617

Please sign in to comment.