Expand AITURK Turkish settings and desktop surfaces for beta 5
This commit is contained in:
1 parent
237d1e2060
commit
5e76f58637
108 files changed
+6675
-1034
No files matched your search
@@ -1,3 +1,4 @@
|
||||
import { TR_PROVIDER_DESCRIPTIONS } from '@/i18n/tr-provider-descriptions'
|
||||
import { asText, normalize } from '@/lib/text'
|
||||
import type { ConfigFieldSchema, HermesConfigRecord, ToolsetInfo } from '@/types/hermes'
|
||||
|
||||
@@ -50,6 +51,14 @@ export const providerMeta = (name: string) =>
|
||||
|
||||
export const providerPriority = (name: string) => providerMeta(name)?.priority ?? 99
|
||||
|
||||
export function providerDescription(name: string, description: string | undefined, locale: string): string | undefined {
|
||||
const original = description?.trim()
|
||||
|
||||
return locale === 'tr' && original && original === providerMeta(name)?.description
|
||||
? (TR_PROVIDER_DESCRIPTIONS[name] ?? original)
|
||||
: original
|
||||
}
|
||||
|
||||
const POLLUTING_PATH_PARTS = new Set(['__proto__', 'constructor', 'prototype'])
|
||||
|
||||
function isSafePart(part: string): boolean {
|
||||
|
||||
Reference in new issue
Block a user