intlify / intlify/nuxt3

[Question] How can I change locale programmatically ?

Open
#77 6 comments 0 reactions 0 assignees View on GitHub
Dominant language
TypeScript
Stars
204
Forks
18
PR merge metrics
No merged PRs in 30d

Description

Hi

as described in doc, I can change locale with $i18n.locale in component template

but I want to change it in like this

<script setup>
i18n.locale = 'en' // or locale from other resources

how can I do that ?

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.