added mail service
This commit is contained in:
11
locales/client.ts
Normal file
11
locales/client.ts
Normal file
@@ -0,0 +1,11 @@
|
||||
'use client'
|
||||
import { createI18nClient } from 'next-international/client'
|
||||
import { importLocales } from '@/config/locales'
|
||||
|
||||
export const {
|
||||
useI18n,
|
||||
useScopedI18n,
|
||||
useChangeLocale,
|
||||
useCurrentLocale,
|
||||
I18nProviderClient,
|
||||
} = createI18nClient(importLocales)
|
||||
60
locales/en.ts
Normal file
60
locales/en.ts
Normal file
@@ -0,0 +1,60 @@
|
||||
export default {
|
||||
auth: {
|
||||
title: 'Auth',
|
||||
subtitle: 'Simple authentication service',
|
||||
sign_in: 'Sign In',
|
||||
common: {
|
||||
something_went_wrong: 'Something went wrong!',
|
||||
},
|
||||
form: {
|
||||
login: {
|
||||
header_label: 'Welcome back',
|
||||
back_button_label: 'Don\'t have an account?',
|
||||
},
|
||||
register: {
|
||||
header_label: 'Create an account',
|
||||
back_button_label: 'Already have an account?',
|
||||
},
|
||||
error: {
|
||||
email_in_use: 'Email already in use with different provider!',
|
||||
header_label: 'Oops! Something went wrong!',
|
||||
back_button_label: 'Back to login',
|
||||
email_taken: 'Can\'t create an user! Wait for verification by provided email.',
|
||||
invalid_fields: 'Invalid fields!',
|
||||
invalid_credentials: 'Invalid Credentials!',
|
||||
access_denied: 'Access denied!',
|
||||
},
|
||||
},
|
||||
email: {
|
||||
success: {
|
||||
confirmation_email_sent: 'Confirmation email sent!',
|
||||
},
|
||||
error: {
|
||||
verification_email_sending_error: 'Could not send verification email!',
|
||||
},
|
||||
},
|
||||
},
|
||||
schema: {
|
||||
message: {
|
||||
email_required: 'Invalid email address',
|
||||
password_required: `Password is required`,
|
||||
name_required: `Name is required`,
|
||||
password_min: `Password must be at least {min} characters`,
|
||||
},
|
||||
},
|
||||
form: {
|
||||
label: {
|
||||
email: 'Email',
|
||||
password: 'Password',
|
||||
confirm_password: 'Confirm password',
|
||||
login: 'Login',
|
||||
name: 'Name',
|
||||
register: 'Register',
|
||||
continue_with: 'Or continue with',
|
||||
},
|
||||
placeholder: {
|
||||
email: 'john.doe@example.com',
|
||||
name: 'John Doe',
|
||||
},
|
||||
},
|
||||
} as const
|
||||
9
locales/server.ts
Normal file
9
locales/server.ts
Normal file
@@ -0,0 +1,9 @@
|
||||
import { createI18nServer } from 'next-international/server'
|
||||
import { importLocales } from '@/config/locales'
|
||||
|
||||
export const {
|
||||
getI18n,
|
||||
getScopedI18n,
|
||||
getCurrentLocale,
|
||||
getStaticParams,
|
||||
} = createI18nServer(importLocales)
|
||||
60
locales/uk.ts
Normal file
60
locales/uk.ts
Normal file
@@ -0,0 +1,60 @@
|
||||
export default {
|
||||
auth: {
|
||||
title: 'Auth',
|
||||
subtitle: 'Простий сервіс аутентифікації',
|
||||
sign_in: 'Увійти',
|
||||
common: {
|
||||
something_went_wrong: 'Щось пішло не так!',
|
||||
},
|
||||
form: {
|
||||
login: {
|
||||
header_label: 'Вхід до облікового запису',
|
||||
back_button_label: 'Не маєте облікового запису?',
|
||||
},
|
||||
register: {
|
||||
header_label: 'Реєстрація облікового запису',
|
||||
back_button_label: 'Вже маєте обліковий запис?',
|
||||
},
|
||||
error: {
|
||||
email_in_use: 'Електронна пошта вже використовується з іншим логін-провайдером!',
|
||||
header_label: 'Отакої! Щось пішло не так!',
|
||||
back_button_label: 'Назад до форми входу до облікового запису',
|
||||
email_taken: 'Не можу створити користувача! Не пройдена верифікація за допомогою вказаної електронної пошти.',
|
||||
invalid_fields: 'Недійсні поля!',
|
||||
invalid_credentials: 'Недійсні облікові дані!',
|
||||
access_denied: 'У доступі відмовлено!',
|
||||
},
|
||||
},
|
||||
email: {
|
||||
success: {
|
||||
confirmation_email_sent: 'Лист із підтвердженням надіслано!',
|
||||
},
|
||||
error: {
|
||||
verification_email_sending_error: 'Не вдалося надіслати електронний лист для підтвердження!',
|
||||
},
|
||||
},
|
||||
},
|
||||
schema: {
|
||||
message: {
|
||||
email_required: 'Невірна адреса електронної пошти',
|
||||
password_required: `Необхідно ввести пароль`,
|
||||
name_required: `Необхідно вказати ім'я`,
|
||||
password_min: `Пароль має містити принаймні {min} символів`,
|
||||
},
|
||||
},
|
||||
form: {
|
||||
label: {
|
||||
email: 'Електронна пошта',
|
||||
password: 'Пароль',
|
||||
confirm_password: 'Підтвердьте пароль',
|
||||
login: 'Лоґін',
|
||||
name: 'Ім\'я та прізвище',
|
||||
register: 'Створити обліковий запис',
|
||||
continue_with: 'Або продовжити за допомогою',
|
||||
},
|
||||
placeholder: {
|
||||
email: 'polina.melnyk@mocking.net',
|
||||
name: 'Поліна Мельник',
|
||||
},
|
||||
},
|
||||
} as const
|
||||
Reference in New Issue
Block a user