-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
fix: i18n import with globalInjection
- Loading branch information
Showing
46 changed files
with
98 additions
and
210 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
13 changes: 1 addition & 12 deletions
13
src/entities/board/ui/__tests__/__snapshots__/BoardPreviewCard.spec.ts.snap
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
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
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 |
---|---|---|
@@ -1,5 +1,4 @@ | ||
<script setup lang="ts"> | ||
import { useI18n } from 'vue-i18n'; | ||
import { useField, useForm } from 'vee-validate'; | ||
import { toTypedSchema } from '@vee-validate/zod'; | ||
import { toast } from 'vue-sonner'; | ||
|
@@ -9,7 +8,6 @@ import { Loader2 } from 'lucide-vue-next'; | |
import { validationRules } from '../config/validation'; | ||
const validationSchema = toTypedSchema(validationRules); | ||
const { t } = useI18n(); | ||
const { handleSubmit, errors } = useForm({ | ||
validationSchema | ||
|
@@ -28,12 +26,12 @@ const onLogin = handleSubmit((values) => { | |
<div :class="$style.form_container"> | ||
<div :class="$style.form_fields"> | ||
<div v-auto-animate :class="$style.field"> | ||
<label class="text-sm" for="email">{{ t('authentication.form.email') }}</label> | ||
<label class="text-sm" for="email">{{ $t('authentication.form.email') }}</label> | ||
<UiInput id="email" v-model="email" :placeholder="'[email protected]'" :type="'email'" /> | ||
<span v-if="errors.email" class="text-xs">{{ errors.email }}</span> | ||
</div> | ||
<div v-auto-animate :class="$style.field"> | ||
<label class="text-sm" for="password">{{ t('authentication.form.password') }}</label> | ||
<label class="text-sm" for="password">{{ $t('authentication.form.password') }}</label> | ||
<UiInput | ||
id="password" | ||
v-model="password" | ||
|
@@ -46,12 +44,12 @@ const onLogin = handleSubmit((values) => { | |
<div :class="$style.choose_block"> | ||
<UiButton type="submit"> | ||
<!-- <Loader2 :class="$style.loader" /> --> | ||
{{ t('authentication.login.btn') }} | ||
{{ $t('authentication.login.btn') }} | ||
</UiButton> | ||
<p :class="[$style.login, 'text-sm']"> | ||
{{ t('authentication.login.proposal') }} | ||
{{ $t('authentication.login.proposal') }} | ||
<span :class="$style.login_route" @click="$router.push({ name: RouteNames.registration })"> | ||
{{ t('authentication.login.route') }} | ||
{{ $t('authentication.login.route') }} | ||
</span> | ||
</p> | ||
</div> | ||
|
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 |
---|---|---|
@@ -1,5 +1,4 @@ | ||
<script setup lang="ts"> | ||
import { useI18n } from 'vue-i18n'; | ||
import { useField, useForm } from 'vee-validate'; | ||
import { toTypedSchema } from '@vee-validate/zod'; | ||
import { toast } from 'vue-sonner'; | ||
|
@@ -9,7 +8,6 @@ import { Loader2 } from 'lucide-vue-next'; | |
import { validationRules } from '../config/validation'; | ||
const validationSchema = toTypedSchema(validationRules); | ||
const { t } = useI18n(); | ||
const { handleSubmit, errors } = useForm({ | ||
validationSchema | ||
|
@@ -28,12 +26,12 @@ const onRegistration = handleSubmit((values) => { | |
<div :class="$style.form_container"> | ||
<div :class="$style.form_fields"> | ||
<div v-auto-animate :class="$style.field"> | ||
<label class="text-sm" for="email">{{ t('authentication.form.email') }}</label> | ||
<label class="text-sm" for="email">{{ $t('authentication.form.email') }}</label> | ||
<UiInput id="email" v-model="email" :placeholder="'[email protected]'" :type="'email'" /> | ||
<span v-if="errors.email" class="text-xs">{{ errors.email }}</span> | ||
</div> | ||
<div v-auto-animate :class="$style.field"> | ||
<label class="text-sm" for="password">{{ t('authentication.form.password') }}</label> | ||
<label class="text-sm" for="password">{{ $t('authentication.form.password') }}</label> | ||
<UiInput | ||
id="password" | ||
v-model="password" | ||
|
@@ -46,12 +44,12 @@ const onRegistration = handleSubmit((values) => { | |
<div :class="$style.choose_block"> | ||
<UiButton type="submit"> | ||
<!-- <Loader2 :class="$style.loader" /> --> | ||
{{ t('authentication.registration.btn') }} | ||
{{ $t('authentication.registration.btn') }} | ||
</UiButton> | ||
<p :class="[$style.reg, 'text-sm']"> | ||
{{ t('authentication.registration.proposal') }} | ||
{{ $t('authentication.registration.proposal') }} | ||
<span :class="$style.reg_route" @click="$router.push({ name: RouteNames.login })"> | ||
{{ t('authentication.registration.route') }} | ||
{{ $t('authentication.registration.route') }} | ||
</span> | ||
</p> | ||
</div> | ||
|
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
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
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.