添加 阿拉伯语 和 俄语

This commit is contained in:
2026-08-24 10:31:15 +08:00
parent e09f0eccda
commit 398bd6fac6
85 changed files with 2015 additions and 391 deletions
+2 -1
View File
@@ -2,6 +2,7 @@ import { nowStr } from '~/server/utils/auth'
import { execute } from '~/server/utils/mysql'
import { notifyAssessmentSubmission } from '~/server/utils/form-notification'
import { fail, ok } from '~/server/utils/response'
import { isSiteLocale } from '~/types/locale'
export default defineEventHandler(async (event) => {
const body = await readBody<{
@@ -14,7 +15,7 @@ export default defineEventHandler(async (event) => {
message?: string
}>(event)
const lang = body.lang === 'zh' ? 'zh' : 'en'
const lang = isSiteLocale(body.lang || '') ? body.lang : 'en'
const firstName = body.firstName?.trim()
const email = body.email?.trim()
const condition = body.condition?.trim()
+2 -1
View File
@@ -2,6 +2,7 @@ import { nowStr } from '~/server/utils/auth'
import { execute } from '~/server/utils/mysql'
import { notifyPartnerSubmission } from '~/server/utils/form-notification'
import { fail, ok } from '~/server/utils/response'
import { isSiteLocale } from '~/types/locale'
export default defineEventHandler(async (event) => {
const body = await readBody<{
@@ -15,7 +16,7 @@ export default defineEventHandler(async (event) => {
collaborate?: string
}>(event)
const lang = body.lang === 'zh' ? 'zh' : 'en'
const lang = isSiteLocale(body.lang || '') ? body.lang : 'en'
const firstName = body.firstName?.trim()
const lastName = body.lastName?.trim()
const companyName = body.companyName?.trim()