-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Use `git show -w` to ignore indentation changes here
- Loading branch information
Showing
7 changed files
with
224 additions
and
202 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,17 @@ | ||
<script setup lang="ts"> | ||
/** Wrap any FormKit forms with this to provide our custom config and sync locale. */ | ||
import { watchEffect } from "vue"; | ||
import { useI18n } from "vue-i18n"; | ||
import { changeLocale, FormKitProvider } from "@formkit/vue"; | ||
import { formkitConfig } from "@/formkit"; | ||
const { locale } = useI18n(); | ||
watchEffect(() => changeLocale(locale.value)); | ||
</script> | ||
|
||
<template> | ||
<FormKitProvider :config="formkitConfig"> | ||
<slot /> | ||
</FormKitProvider> | ||
</template> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.