Implemented email verification

This commit is contained in:
2024-04-12 13:52:16 +03:00
parent 78107d4ec7
commit b1ad7b5c3e
51 changed files with 604 additions and 213 deletions

View File

@@ -1,13 +1,23 @@
// @https://www.localeplanet.com/icu/index.html
type loc = ('uk' | 'en')
const defaultLocale = 'uk'
type Locale = {
id: string,
java: string,
iso: string,
code: loc,
name: string,
originalName: string,
}
export type loc = ('uk' | 'en')
const defaultLocale: loc = 'uk'
const fallbackLocale: loc = 'en'
const importLocales = {
uk: () => import('@/locales/uk'), en: () => import('@/locales/en'),
}
const LC = [
} as const
const LC: Locale[] = [
{
id: 'uk_UA',
java: 'uk-UA',
@@ -23,8 +33,8 @@ const LC = [
code: 'en',
name: 'English',
originalName: 'English',
}]
}] as const
const locales = LC.map(locale => locale.code)
const locales: loc[] = LC.map((locale: Locale) => locale.code)
export { locales, defaultLocale, LC, importLocales }
export { locales, defaultLocale, fallbackLocale, LC, importLocales, type loc }