This commit is contained in:
2
.github/workflows/ci.yaml
vendored
2
.github/workflows/ci.yaml
vendored
@ -11,7 +11,7 @@ jobs:
|
|||||||
- uses: yanhao98/composite-actions/setup-node-environment@main
|
- uses: yanhao98/composite-actions/setup-node-environment@main
|
||||||
- name: deploy
|
- name: deploy
|
||||||
run: |
|
run: |
|
||||||
pnpm build
|
vite build
|
||||||
export DEPLOY_DOMAIN=https://vue-formkit-example.oo1.dev
|
export DEPLOY_DOMAIN=https://vue-formkit-example.oo1.dev
|
||||||
cp dist/index.html dist/200.html
|
cp dist/index.html dist/200.html
|
||||||
npx surge --project ./dist --domain $DEPLOY_DOMAIN --token d843de16b331c626f10771245c56ed93 # npx surge token
|
npx surge --project ./dist --domain $DEPLOY_DOMAIN --token d843de16b331c626f10771245c56ed93 # npx surge token
|
||||||
|
@ -1,12 +1,11 @@
|
|||||||
<script setup lang="ts">
|
<script setup lang="ts">
|
||||||
import { createZodPlugin } from '@formkit/zod'
|
import { createZodPlugin } from '@formkit/zod';
|
||||||
import { z } from 'zod'
|
import { z } from 'zod';
|
||||||
// https://github.com/aiji42/zod-i18n?tab=readme-ov-file#how-to-use
|
// https://github.com/aiji42/zod-i18n?tab=readme-ov-file#how-to-use
|
||||||
import i18next from "i18next";
|
import i18next from "i18next";
|
||||||
import { zodI18nMap } from "zod-i18n-map";
|
import { zodI18nMap } from "zod-i18n-map";
|
||||||
// Import your language translation files
|
// Import your language translation files
|
||||||
import translation from "zod-i18n-map/locales/zh-CN/zod.json";
|
import translation from "zod-i18n-map/locales/zh-CN/zod.json";
|
||||||
import { text } from '@formkit/inputs';
|
|
||||||
|
|
||||||
// lng and resources key depend on your locale.
|
// lng and resources key depend on your locale.
|
||||||
i18next.init({
|
i18next.init({
|
||||||
|
Reference in New Issue
Block a user