-
Notifications
You must be signed in to change notification settings - Fork 1
I18n
comhon-project edited this page Aug 25, 2023
·
3 revisions
query-kit manage internationalization and support following langage :
- english
- french
- spanish
You can define your default language from the plugin config. and you can change the current locale at any time.
Example:
<script setup>
import { locale } from "@query-kit/vue";
</script>
<template>
<button @click="() => (locale = 'fr')"> french </button>
<button @click="() => (locale = 'en')"> english </button>
<button @click="() => (locale = 'es')"> spanish </button>
</template>