添加 阿拉伯语 和 俄语

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
@@ -1,6 +1,7 @@
import { requireAuth } from '~/server/utils/auth'
import { listPageSeo } from '~/server/utils/page-seo'
import { fail, ok } from '~/server/utils/response'
import { isSiteLocale } from '~/types/locale'
export default defineEventHandler(async (event) => {
const auth = requireAuth(event)
@@ -14,7 +15,7 @@ export default defineEventHandler(async (event) => {
const keyword = String(queryParams.keyword || '')
const list = await listPageSeo({
locale: locale === 'en' || locale === 'zh' ? locale : undefined,
locale: isSiteLocale(locale) ? locale : undefined,
keyword: keyword || undefined,
})