Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
8 changes: 8 additions & 0 deletions docs/Getting Started.md
Original file line number Diff line number Diff line change
Expand Up @@ -150,3 +150,11 @@ After having the initial locale set, you're ready to start localizing your app.
```

See [Formatting](/docs/Formatting.md) to read about the supported message syntax and all the available formatters.

You can switch the current locale in your app using `locale` –

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Suggested change
You can switch the current locale in your app using `locale`
You can switch the current locale in your app using `locale.set`:

```svelte
<script>
import { locale } from 'svelte-i18n';
locale.set('pt');
</script>
```