diff --git a/app/components/markdown.tsx b/app/components/markdown.tsx index 1531d2ff0e0..5515164c44b 100644 --- a/app/components/markdown.tsx +++ b/app/components/markdown.tsx @@ -156,6 +156,46 @@ export function PreCode(props: { children: any }) { ); } +function CustomCode(props: { children: any }) { + const ref = useRef(null); + const [collapsed, setCollapsed] = useState(true); + const [showToggle, setShowToggle] = useState(false); + + useEffect(() => { + if (ref.current) { + const codeHeight = ref.current.scrollHeight; + setShowToggle(codeHeight > 400); + ref.current.scrollTop = ref.current.scrollHeight; + } + }, [props.children]); + + const toggleCollapsed = () => { + setCollapsed((collapsed) => !collapsed); + }; + return ( + <> + + {props.children} + {showToggle && collapsed && ( +
+ +
+ )} +
+ + ); +} + function escapeDollarNumber(text: string) { let escapedText = ""; @@ -211,6 +251,7 @@ function _MarkDownContent(props: { content: string }) { ]} components={{ pre: PreCode, + code: CustomCode, p: (pProps) =>

, a: (aProps) => { const href = aProps.href || ""; diff --git a/app/config/server.ts b/app/config/server.ts index 5bfa2c2df11..e953af369fa 100644 --- a/app/config/server.ts +++ b/app/config/server.ts @@ -1,5 +1,5 @@ import md5 from "spark-md5"; -import { DEFAULT_MODELS } from "../constant"; +import { DEFAULT_MODELS, DEFAULT_GA_ID } from "../constant"; declare global { namespace NodeJS { @@ -211,6 +211,7 @@ export const getServerSideConfig = () => { cloudflareKVTTL: process.env.CLOUDFLARE_KV_TTL, gtmId: process.env.GTM_ID, + gaId: process.env.GA_ID || DEFAULT_GA_ID, needCode: ACCESS_CODES.size > 0, code: process.env.CODE, diff --git a/app/constant.ts b/app/constant.ts index d21f18f5a37..6fa28ad2bdf 100644 --- a/app/constant.ts +++ b/app/constant.ts @@ -474,4 +474,5 @@ export const internalAllowedWebDavEndpoints = [ "https://app.koofr.net/dav/Koofr", ]; +export const DEFAULT_GA_ID = "G-89WN60ZK2E"; export const PLUGINS = [{ name: "Stable Diffusion", path: Path.Sd }]; diff --git a/app/layout.tsx b/app/layout.tsx index eda5f43dd83..abefd69c1c9 100644 --- a/app/layout.tsx +++ b/app/layout.tsx @@ -6,7 +6,7 @@ import { getClientConfig } from "./config/client"; import type { Metadata, Viewport } from "next"; import { SpeedInsights } from "@vercel/speed-insights/next"; import { getServerSideConfig } from "./config/server"; -import { GoogleTagManager } from "@next/third-parties/google"; +import { GoogleTagManager, GoogleAnalytics } from "@next/third-parties/google"; const serverConfig = getServerSideConfig(); export const metadata: Metadata = { @@ -56,6 +56,11 @@ export default function RootLayout({ )} + {serverConfig?.gaId && ( + <> + + + )} ); diff --git a/app/locales/ar.ts b/app/locales/ar.ts index 0a35ba603f8..c466f456f78 100644 --- a/app/locales/ar.ts +++ b/app/locales/ar.ts @@ -1,115 +1,157 @@ import { SubmitKey } from "../store/config"; import type { PartialLocaleType } from "./index"; +import { getClientConfig } from "../config/client"; + +const isApp = !!getClientConfig()?.isApp; const ar: PartialLocaleType = { WIP: "قريبًا...", Error: { - Unauthorized: - "غير مصرح بالوصول، يرجى إدخال رمز الوصول [auth](/#/auth) في صفحة المصادقة.", + Unauthorized: isApp + ? "تم اكتشاف مفتاح API غير صالح، يرجى الذهاب إلى [الإعدادات](/#/settings) للتحقق من صحة مفتاح API." + : "كلمة المرور غير صحيحة أو فارغة، يرجى الذهاب إلى [تسجيل الدخول](/#/auth) لإدخال كلمة مرور صحيحة، أو أدخل مفتاح OpenAI API الخاص بك في [الإعدادات](/#/settings).", }, Auth: { - Title: "تحتاج إلى رمز الوصول", - Tips: "يرجى إدخال رمز الوصول أدناه", - SubTips: "أو أدخل مفتاح واجهة برمجة تطبيقات OpenAI الخاص بك", - Input: "رمز الوصول", + Title: "تحتاج إلى كلمة مرور", + Tips: "قام المشرف بتفعيل التحقق بكلمة المرور، يرجى إدخال رمز الوصول أدناه", + SubTips: "أو إدخال مفتاح API الخاص بـ OpenAI أو Google", + Input: "أدخل رمز الوصول هنا", Confirm: "تأكيد", - Later: "لاحقًا", + Later: "في وقت لاحق", }, ChatItem: { - ChatItemCount: (count: number) => `${count} رسائل`, + ChatItemCount: (count: number) => `${count} محادثة`, }, Chat: { - SubTitle: (count: number) => ` ${count} رسائل مع ChatGPT`, + SubTitle: (count: number) => `إجمالي ${count} محادثة`, + EditMessage: { + Title: "تحرير سجل الرسائل", + Topic: { + Title: "موضوع الدردشة", + SubTitle: "تغيير موضوع الدردشة الحالي", + }, + }, Actions: { - ChatList: "الانتقال إلى قائمة الدردشة", - CompressedHistory: "ملخص ضغط ذاكرة التاريخ", - Export: "تصدير جميع الرسائل كـ Markdown", + ChatList: "عرض قائمة الرسائل", + CompressedHistory: "عرض التاريخ المضغوط", + Export: "تصدير سجل الدردشة", Copy: "نسخ", - Stop: "توقف", + Stop: "إيقاف", Retry: "إعادة المحاولة", + Pin: "تثبيت", + PinToastContent: "تم تثبيت 1 محادثة في الإشعارات المسبقة", + PinToastAction: "عرض", Delete: "حذف", + Edit: "تحرير", + }, + Commands: { + new: "دردشة جديدة", + newm: "إنشاء دردشة من القناع", + next: "الدردشة التالية", + prev: "الدردشة السابقة", + clear: "مسح السياق", + del: "حذف الدردشة", }, InputActions: { - Stop: "توقف", - ToBottom: "إلى آخر", + Stop: "إيقاف الاستجابة", + ToBottom: "الانتقال إلى الأحدث", Theme: { - auto: "تلقائي", - light: "نمط فاتح", - dark: "نمط داكن", + auto: "موضوع تلقائي", + light: "الوضع الفاتح", + dark: "الوضع الداكن", }, - Prompt: "الاقتراحات", - Masks: "الأقنعة", - Clear: "مسح السياق", - Settings: "الإعدادات", + Prompt: "الأوامر السريعة", + Masks: "جميع الأقنعة", + Clear: "مسح الدردشة", + Settings: "إعدادات الدردشة", + UploadImage: "تحميل صورة", }, Rename: "إعادة تسمية الدردشة", - Typing: "كتابة...", + Typing: "يكتب…", Input: (submitKey: string) => { - var inputHints = ` اضغط على ${submitKey} للإرسال`; + var inputHints = `${submitKey} إرسال`; if (submitKey === String(SubmitKey.Enter)) { - inputHints += "، Shift + Enter للإنشاء"; + inputHints += "، Shift + Enter لإدراج سطر جديد"; } - return inputHints + "، / للبحث في الاقتراحات"; + return inputHints + "، / لتفعيل الإكمال التلقائي، : لتفعيل الأوامر"; }, Send: "إرسال", Config: { - Reset: "إعادة التعيين إلى الإعدادات الافتراضية", - SaveAs: "حفظ كأقنعة", + Reset: "مسح الذاكرة", + SaveAs: "حفظ كقناع", }, + IsContext: "الإشعارات المسبقة", }, Export: { - Title: "تصدير الرسائل", + Title: "مشاركة سجل الدردشة", Copy: "نسخ الكل", - Download: "تنزيل", - MessageFromYou: "رسالة منك", - MessageFromChatGPT: "رسالة من ChatGPT", + Download: "تحميل الملف", Share: "مشاركة على ShareGPT", + MessageFromYou: "المستخدم", + MessageFromChatGPT: "ChatGPT", Format: { - Title: "صيغة التصدير", - SubTitle: "Markdown أو صورة PNG", + Title: "تنسيق التصدير", + SubTitle: "يمكنك تصدير النص كـ Markdown أو صورة PNG", }, IncludeContext: { - Title: "تضمين السياق", - SubTitle: "تصدير اقتراحات السياق في الأقنعة أم لا", + Title: "تضمين سياق القناع", + SubTitle: "هل تريد عرض سياق القناع في الرسائل", }, Steps: { - Select: "تحديد", + Select: "اختيار", Preview: "معاينة", }, + Image: { + Toast: "يتم إنشاء لقطة الشاشة", + Modal: "اضغط مطولاً أو انقر بزر الماوس الأيمن لحفظ الصورة", + }, }, Select: { - Search: "بحث", + Search: "بحث في الرسائل", All: "تحديد الكل", - Latest: "تحديد أحدث", - Clear: "مسح", + Latest: "أحدث الرسائل", + Clear: "مسح التحديد", }, Memory: { - Title: "اقتراحات الذاكرة", - EmptyContent: "لا شيء حتى الآن.", - Send: "إرسال الذاكرة", - Copy: "نسخ الذاكرة", - Reset: "إعادة التعيين", - ResetConfirm: - "سيؤدي إعادة التعيين إلى مسح سجل المحادثة الحالي والذاكرة التاريخية. هل أنت متأكد أنك تريد الاستمرار؟", + Title: "ملخص التاريخ", + EmptyContent: "محتوى المحادثة قصير جداً، لا حاجة للتلخيص", + Send: "ضغط تلقائي لسجل الدردشة كـ سياق", + Copy: "نسخ الملخص", + Reset: "[غير مستخدم]", + ResetConfirm: "تأكيد مسح ملخص التاريخ؟", }, Home: { NewChat: "دردشة جديدة", - DeleteChat: "هل تريد تأكيد حذف المحادثة المحددة؟", - DeleteToast: "تم حذف الدردشة", - Revert: "التراجع", + DeleteChat: "تأكيد حذف المحادثة المحددة؟", + DeleteToast: "تم حذف المحادثة", + Revert: "تراجع", }, Settings: { Title: "الإعدادات", - SubTitle: "جميع الإعدادات", + SubTitle: "جميع خيارات الإعدادات", + Danger: { + Reset: { + Title: "إعادة تعيين جميع الإعدادات", + SubTitle: "إعادة تعيين جميع عناصر الإعدادات إلى القيم الافتراضية", + Action: "إعادة التعيين الآن", + Confirm: "تأكيد إعادة تعيين جميع الإعدادات؟", + }, + Clear: { + Title: "مسح جميع البيانات", + SubTitle: "مسح جميع الدردشات وبيانات الإعدادات", + Action: "مسح الآن", + Confirm: "تأكيد مسح جميع الدردشات وبيانات الإعدادات؟", + }, + }, Lang: { - Name: "Language", // تنبيه: إذا كنت ترغب في إضافة ترجمة جديدة، يرجى عدم ترجمة هذه القيمة وتركها "Language" - All: "كل اللغات", + Name: "Language", // انتبه: إذا كنت ترغب في إضافة ترجمة جديدة، يرجى عدم ترجمة هذه القيمة، اتركها كما هي "Language" + All: "جميع اللغات", }, - Avatar: "الصورة الرمزية", + Avatar: "الصورة الشخصية", FontSize: { Title: "حجم الخط", - SubTitle: "ضبط حجم الخط لمحتوى الدردشة", + SubTitle: "حجم الخط في محتوى الدردشة", }, FontFamily: { Title: "خط الدردشة", @@ -117,163 +159,362 @@ const ar: PartialLocaleType = { Placeholder: "اسم الخط", }, InjectSystemPrompts: { - Title: "حقن تلميحات النظام", + Title: "حقن الرسائل النصية النظامية", SubTitle: - "قم بإضافة تلميحة نظام محاكاة ChatGPT إلى بداية قائمة الرسائل المُطلَبة في كل طلب", + "فرض إضافة رسالة نظامية تحاكي ChatGPT في بداية قائمة الرسائل لكل طلب", }, InputTemplate: { - Title: "نموذج الإدخال", - SubTitle: "سيتم ملء أحدث رسالة في هذا النموذج", + Title: "معالجة الإدخال من قبل المستخدم", + SubTitle: "سيتم ملء آخر رسالة من المستخدم في هذا القالب", }, + Update: { - Version: (x: string) => ` الإصدار: ${x}`, - IsLatest: "أحدث إصدار", - CheckUpdate: "التحقق من التحديث", - IsChecking: "جارٍ التحقق من التحديث...", - FoundUpdate: (x: string) => ` تم العثور على إصدار جديد: ${x}`, - GoToUpdate: "التحديث", - }, - SendKey: "مفتاح الإرسال", + Version: (x: string) => `الإصدار الحالي: ${x}`, + IsLatest: "أنت على أحدث إصدار", + CheckUpdate: "التحقق من التحديثات", + IsChecking: "جارٍ التحقق من التحديثات...", + FoundUpdate: (x: string) => `تم العثور على إصدار جديد: ${x}`, + GoToUpdate: "انتقل للتحديث", + }, + SendKey: "زر الإرسال", Theme: "السمة", - TightBorder: "حدود ضيقة", + TightBorder: "وضع بدون حدود", SendPreviewBubble: { - Title: "عرض معاينة الـ Send", - SubTitle: "معاينة Markdown في فقاعة", + Title: "فقاعة المعاينة", + SubTitle: "معاينة محتوى Markdown في فقاعة المعاينة", + }, + AutoGenerateTitle: { + Title: "توليد العنوان تلقائيًا", + SubTitle: "توليد عنوان مناسب بناءً على محتوى الدردشة", + }, + Sync: { + CloudState: "بيانات السحابة", + NotSyncYet: "لم يتم التزامن بعد", + Success: "تم التزامن بنجاح", + Fail: "فشل التزامن", + + Config: { + Modal: { + Title: "تكوين التزامن السحابي", + Check: "التحقق من التوفر", + }, + SyncType: { + Title: "نوع التزامن", + SubTitle: "اختر خادم التزامن المفضل", + }, + Proxy: { + Title: "تفعيل الوكيل", + SubTitle: "يجب تفعيل الوكيل عند التزامن عبر المتصفح لتجنب قيود CORS", + }, + ProxyUrl: { + Title: "عنوان الوكيل", + SubTitle: "ينطبق فقط على الوكيل المتاح في هذا المشروع", + }, + + WebDav: { + Endpoint: "عنوان WebDAV", + UserName: "اسم المستخدم", + Password: "كلمة المرور", + }, + + UpStash: { + Endpoint: "رابط UpStash Redis REST", + UserName: "اسم النسخ الاحتياطي", + Password: "رمز UpStash Redis REST", + }, + }, + + LocalState: "بيانات محلية", + Overview: (overview: any) => { + return `${overview.chat} دردشة، ${overview.message} رسالة، ${overview.prompt} إشعار، ${overview.mask} قناع`; + }, + ImportFailed: "فشل الاستيراد", }, Mask: { Splash: { - Title: "شاشة تظهر الأقنعة", - SubTitle: "عرض شاشة تظهر الأقنعة قبل بدء الدردشة الجديدة", + Title: "صفحة بدء القناع", + SubTitle: "عرض صفحة بدء القناع عند بدء دردشة جديدة", + }, + Builtin: { + Title: "إخفاء الأقنعة المدمجة", + SubTitle: "إخفاء الأقنعة المدمجة في قائمة الأقنعة", }, }, Prompt: { Disable: { - Title: "تعطيل الاكتمال التلقائي", - SubTitle: "اكتب / لتشغيل الاكتمال التلقائي", + Title: "تعطيل الإكمال التلقائي للإشعارات", + SubTitle: "استخدم / في بداية مربع النص لتفعيل الإكمال التلقائي", }, - List: "قائمة الاقتراحات", - ListCount: (builtin: number, custom: number) => ` -${builtin} مدمجة، ${custom} تم تعريفها من قبل المستخدم`, - Edit: "تعديل", + List: "قائمة الإشعارات المخصصة", + ListCount: (builtin: number, custom: number) => + `مدمج ${builtin} إشعار، مخصص ${custom} إشعار`, + Edit: "تحرير", Modal: { - Title: "قائمة الاقتراحات", - Add: "إضافة واحدة", - Search: "البحث في الاقتراحات", + Title: "قائمة الإشعارات", + Add: "جديد", + Search: "بحث عن إشعارات", }, EditModal: { - Title: "تحرير الاقتراح", + Title: "تحرير الإشعارات", }, }, HistoryCount: { - Title: "عدد الرسائل المرفقة", - SubTitle: "عدد الرسائل المرسلة المرفقة في كل طلب", + Title: "عدد الرسائل التاريخية المرفقة", + SubTitle: "عدد الرسائل التاريخية المرفقة مع كل طلب", }, CompressThreshold: { - Title: "حد الضغط للتاريخ", - SubTitle: "سيتم الضغط إذا تجاوزت طول الرسائل غير المضغوطة الحد المحدد", + Title: "عتبة ضغط طول الرسائل التاريخية", + SubTitle: + "عندما يتجاوز طول الرسائل التاريخية غير المضغوطة هذه القيمة، سيتم الضغط", }, Usage: { - Title: "رصيد الحساب", + Title: "التحقق من الرصيد", SubTitle(used: any, total: any) { - return `تم استخدام $${used} من هذا الشهر، الاشتراك ${total}`; + return `تم استخدام $${used} هذا الشهر، إجمالي الاشتراك $${total}`; }, IsChecking: "جارٍ التحقق...", - Check: "التحقق", - NoAccess: "أدخل مفتاح API للتحقق من الرصيد", + Check: "إعادة التحقق", + NoAccess: "أدخل مفتاح API أو كلمة مرور للوصول إلى الرصيد", + }, + + Access: { + AccessCode: { + Title: "كلمة المرور للوصول", + SubTitle: "قام المشرف بتمكين الوصول المشفر", + Placeholder: "أدخل كلمة المرور للوصول", + }, + CustomEndpoint: { + Title: "واجهة مخصصة", + SubTitle: "هل تستخدم خدمة Azure أو OpenAI مخصصة", + }, + Provider: { + Title: "موفر الخدمة النموذجية", + SubTitle: "التبديل بين مقدمي الخدمة المختلفين", + }, + OpenAI: { + ApiKey: { + Title: "مفتاح API", + SubTitle: "استخدم مفتاح OpenAI مخصص لتجاوز قيود كلمة المرور", + Placeholder: "مفتاح OpenAI API", + }, + + Endpoint: { + Title: "عنوان الواجهة", + SubTitle: "يجب أن يحتوي على http(s):// بخلاف العنوان الافتراضي", + }, + }, + Azure: { + ApiKey: { + Title: "مفتاح الواجهة", + SubTitle: "استخدم مفتاح Azure مخصص لتجاوز قيود كلمة المرور", + Placeholder: "مفتاح Azure API", + }, + + Endpoint: { + Title: "عنوان الواجهة", + SubTitle: "مثال:", + }, + + ApiVerion: { + Title: "إصدار الواجهة (azure api version)", + SubTitle: "اختر إصدارًا معينًا", + }, + }, + Anthropic: { + ApiKey: { + Title: "مفتاح الواجهة", + SubTitle: "استخدم مفتاح Anthropic مخصص لتجاوز قيود كلمة المرور", + Placeholder: "مفتاح Anthropic API", + }, + + Endpoint: { + Title: "عنوان الواجهة", + SubTitle: "مثال:", + }, + + ApiVerion: { + Title: "إصدار الواجهة (claude api version)", + SubTitle: "اختر إصدار API محدد", + }, + }, + Google: { + ApiKey: { + Title: "مفتاح API", + SubTitle: "احصل على مفتاح API الخاص بك من Google AI", + Placeholder: "أدخل مفتاح Google AI Studio API", + }, + + Endpoint: { + Title: "عنوان النهاية", + SubTitle: "مثال:", + }, + + ApiVersion: { + Title: "إصدار API (مخصص لـ gemini-pro)", + SubTitle: "اختر إصدار API معين", + }, + GoogleSafetySettings: { + Title: "مستوى تصفية الأمان من Google", + SubTitle: "تعيين مستوى تصفية المحتوى", + }, + }, + Baidu: { + ApiKey: { + Title: "مفتاح API", + SubTitle: "استخدم مفتاح Baidu API مخصص", + Placeholder: "مفتاح Baidu API", + }, + SecretKey: { + Title: "المفتاح السري", + SubTitle: "استخدم مفتاح Baidu Secret مخصص", + Placeholder: "مفتاح Baidu Secret", + }, + Endpoint: { + Title: "عنوان الواجهة", + SubTitle: "لا يدعم التخصيص، انتقل إلى .env للتكوين", + }, + }, + ByteDance: { + ApiKey: { + Title: "مفتاح الواجهة", + SubTitle: "استخدم مفتاح ByteDance API مخصص", + Placeholder: "مفتاح ByteDance API", + }, + Endpoint: { + Title: "عنوان الواجهة", + SubTitle: "مثال:", + }, + }, + Alibaba: { + ApiKey: { + Title: "مفتاح الواجهة", + SubTitle: "استخدم مفتاح Alibaba Cloud API مخصص", + Placeholder: "مفتاح Alibaba Cloud API", + }, + Endpoint: { + Title: "عنوان الواجهة", + SubTitle: "مثال:", + }, + }, + CustomModel: { + Title: "اسم النموذج المخصص", + SubTitle: "أضف خيارات نموذج مخصص، مفصولة بفواصل إنجليزية", + }, }, Model: "النموذج", Temperature: { - Title: "الحرارة", - SubTitle: "قيمة أكبر تجعل الإخراج أكثر عشوائية", + Title: "العشوائية (temperature)", + SubTitle: "كلما زادت القيمة، زادت العشوائية في الردود", + }, + TopP: { + Title: "عينات النواة (top_p)", + SubTitle: "مشابه للعشوائية ولكن لا تغيره مع العشوائية", }, MaxTokens: { - Title: "الحد الأقصى للرموز", - SubTitle: "الحد الأقصى لعدد الرموز المدخلة والرموز المُنشأة", + Title: "حد أقصى للرموز لكل رد (max_tokens)", + SubTitle: "أقصى عدد للرموز في تفاعل واحد", }, PresencePenalty: { - Title: "تأثير الوجود", - SubTitle: "قيمة أكبر تزيد من احتمالية التحدث عن مواضيع جديدة", + Title: "تجدد الموضوع (presence_penalty)", + SubTitle: "كلما زادت القيمة، زادت احتمالية التوسع في مواضيع جديدة", }, FrequencyPenalty: { - Title: "تأثير التكرار", - SubTitle: "قيمة أكبر تقلل من احتمالية تكرار نفس السطر", + Title: "عقوبة التكرار (frequency_penalty)", + SubTitle: "كلما زادت القيمة، زادت احتمالية تقليل تكرار الكلمات", }, }, Store: { - DefaultTopic: "محادثة جديدة", - BotHello: "مرحبًا! كيف يمكنني مساعدتك اليوم؟", - Error: "حدث خطأ ما، يرجى المحاولة مرة أخرى في وقت لاحق.", + DefaultTopic: "دردشة جديدة", + BotHello: "كيف يمكنني مساعدتك؟", + Error: "حدث خطأ، يرجى المحاولة مرة أخرى لاحقًا", Prompt: { - History: (content: string) => "هذا ملخص لسجل الدردشة كمراجعة: " + content, + History: (content: string) => + "هذا ملخص للدردشة السابقة كنقطة انطلاق: " + content, Topic: - "يرجى إنشاء عنوان يتكون من أربع إلى خمس كلمات يلخص محادثتنا دون أي مقدمة أو ترقيم أو علامات ترقيم أو نقاط أو رموز إضافية. قم بإزالة علامات التنصيص المحيطة.", + "استخدم أربع إلى خمس كلمات لإرجاع ملخص مختصر لهذه الجملة، بدون شرح، بدون علامات ترقيم، بدون كلمات تعبيرية، بدون نص إضافي، بدون تنسيق عريض، إذا لم يكن هناك موضوع، يرجى العودة إلى 'دردشة عامة'", Summarize: - "قم بتلخيص النقاش بشكل موجز في 200 كلمة أو أقل لاستخدامه كاقتراح للسياق في المستقبل.", + "قم بتلخيص محتوى الدردشة باختصار، لاستخدامه كإشارة سياقية لاحقة، اجعلها في حدود 200 كلمة", }, }, Copy: { - Success: "تم النسخ إلى الحافظة", - Failed: "فشلت عملية النسخ، يرجى منح الإذن للوصول إلى الحافظة", + Success: "تم الكتابة إلى الحافظة", + Failed: "فشل النسخ، يرجى منح أذونات الحافظة", + }, + Download: { + Success: "تم تنزيل المحتوى إلى مجلدك.", + Failed: "فشل التنزيل.", }, Context: { - Toast: (x: any) => `مع ${x} اقتراحًا ذا سياق`, - Edit: "الاقتراحات السياقية والذاكرة", - Add: "إضافة اقتراح", - Clear: "مسح السياق", - Revert: "التراجع", + Toast: (x: any) => `يحتوي على ${x} إشعارات مخصصة`, + Edit: "إعدادات الدردشة الحالية", + Add: "إضافة دردشة جديدة", + Clear: "تم مسح السياق", + Revert: "استعادة السياق", }, Plugin: { - Name: "المكوّن الإضافي", + Name: "الإضافات", }, FineTuned: { - Sysmessage: "أنت مساعد ي", + Sysmessage: "أنت مساعد", }, Mask: { - Name: "الأقنعة", + Name: "القناع", Page: { - Title: "قالب الاقتراح", - SubTitle: (count: number) => `${count} قوالب الاقتراح`, - Search: "البحث في القوالب", - Create: "إنشاء", + Title: "أقنعة الأدوار المخصصة", + SubTitle: (count: number) => `${count} تعريف لدور مخصص`, + Search: "بحث عن قناع الدور", + Create: "إنشاء جديد", }, Item: { - Info: (count: number) => `${count} اقتراحات`, + Info: (count: number) => `يحتوي على ${count} محادثات مخصصة`, Chat: "الدردشة", View: "عرض", - Edit: "تعديل", + Edit: "تحرير", Delete: "حذف", DeleteConfirm: "تأكيد الحذف؟", }, EditModal: { - Title: (readonly: boolean) => ` -تعديل قالب الاقتراح ${readonly ? "(للقراءة فقط)" : ""}`, - Download: "تنزيل", - Clone: "استنساخ", + Title: (readonly: boolean) => + `تحرير القناع المخصص ${readonly ? " (للقراءة فقط)" : ""}`, + Download: "تنزيل القناع المخصص", + Clone: "استنساخ القناع", }, Config: { - Avatar: "صورة الروبوت", - Name: "اسم الروبوت", + Avatar: "صورة الدور", + Name: "اسم الدور", Sync: { - Title: "استخدام الإعدادات العامة", - SubTitle: "استخدام الإعدادات العامة في هذه الدردشة", - Confirm: "تأكيد الاستبدال بالإعدادات المخصصة بالإعدادات العامة؟", + Title: "استخدام الإعدادات العالمية", + SubTitle: "هل تستخدم الدردشة الحالية الإعدادات العالمية للنموذج", + Confirm: + "ستتم الكتابة فوق الإعدادات المخصصة للدردشة الحالية تلقائيًا، تأكيد تفعيل الإعدادات العالمية؟", }, HideContext: { - Title: "إخفاء اقتراحات السياق", - SubTitle: "عدم عرض اقتراحات السياق في الدردشة", + Title: "إخفاء المحادثات المخصصة", + SubTitle: "بعد الإخفاء، لن تظهر المحادثات المخصصة في واجهة الدردشة", + }, + Share: { + Title: "مشاركة هذا القناع", + SubTitle: "إنشاء رابط مباشر لهذا القناع", + Action: "نسخ الرابط", }, }, }, NewChat: { Return: "العودة", - Skip: "ابدأ فقط", - Title: "اختيار قناع", - SubTitle: "دردشة مع الروح وراء القناع", - More: "المزيد", + Skip: "بدء الآن", NotShow: "عدم العرض مرة أخرى", - ConfirmNoShow: "تأكيد تعطيله؟ يمكنك تمكينه في الإعدادات لاحقًا.", + ConfirmNoShow: + "تأكيد إلغاء العرض؟ بعد الإلغاء، يمكنك إعادة تفعيله في الإعدادات في أي وقت.", + Title: "اختر قناعًا", + SubTitle: "ابدأ الآن وتفاعل مع الأفكار خلف القناع", + More: "عرض الكل", + }, + + URLCommand: { + Code: "تم الكشف عن رمز وصول في الرابط، هل تريد تعبئته تلقائيًا؟", + Settings: "تم الكشف عن إعدادات مسبقة في الرابط، هل تريد تعبئتها تلقائيًا؟", }, UI: { @@ -281,9 +522,16 @@ ${builtin} مدمجة، ${custom} تم تعريفها من قبل المستخد Cancel: "إلغاء", Close: "إغلاق", Create: "إنشاء", - Edit: "تعديل", + Edit: "تحرير", + Export: "تصدير", + Import: "استيراد", + Sync: "مزامنة", + Config: "تكوين", }, Exporter: { + Description: { + Title: "فقط الرسائل بعد مسح السياق سيتم عرضها", + }, Model: "النموذج", Messages: "الرسائل", Topic: "الموضوع", diff --git a/app/locales/bn.ts b/app/locales/bn.ts index cc650a3fe99..d30fcaff090 100644 --- a/app/locales/bn.ts +++ b/app/locales/bn.ts @@ -1,140 +1,157 @@ import { SubmitKey } from "../store/config"; -import { PartialLocaleType } from "./index"; +import type { PartialLocaleType } from "./index"; +import { getClientConfig } from "../config/client"; + +const isApp = !!getClientConfig()?.isApp; const bn: PartialLocaleType = { WIP: "শীঘ্রই আসছে...", Error: { - Unauthorized: - "অননুমোদিত অ্যাক্সেস, অনুগ্রহ করে [অথোরাইজশন](/#/auth) পৃষ্ঠায় অ্যাক্সেস কোড ইনপুট করুন।", + Unauthorized: isApp + ? "অবৈধ API কী সনাক্ত করা হয়েছে, অনুগ্রহ করে [সেটিংস](/#/settings) পৃষ্ঠায় যান এবং নিশ্চিত করুন যে API কী সঠিকভাবে কনফিগার করা হয়েছে।" + : "অ্যাক্সেস পাসওয়ার্ড সঠিক নয় বা খালি, অনুগ্রহ করে [লগইন](/#/auth) পৃষ্ঠায় যান এবং সঠিক অ্যাক্সেস পাসওয়ার্ড প্রবেশ করান, অথবা [সেটিংস](/#/settings) পৃষ্ঠায় আপনার OpenAI API কী প্রবেশ করান।", }, Auth: { - Title: "একটি অ্যাক্সেস কোড প্রয়োজন", - Tips: "নীচে অ্যাক্সেস কোড ইনপুট করুন", - SubTips: "অথবা আপনার OpenAI API কী প্রবেশ করুন", - Input: "অ্যাক্সেস কোড", + Title: "পাসওয়ার্ড প্রয়োজন", + Tips: "অ্যাডমিন পাসওয়ার্ড প্রমাণীকরণ চালু করেছেন, নিচে অ্যাক্সেস কোড প্রবেশ করুন", + SubTips: "অথবা আপনার OpenAI অথবা Google API কী প্রবেশ করান", + Input: "এখানে অ্যাক্সেস কোড লিখুন", Confirm: "নিশ্চিত করুন", - Later: "পরে", + Later: "পরে বলুন", }, ChatItem: { - ChatItemCount: (count: number) => `${count} টি বার্তা`, + ChatItemCount: (count: number) => `${count} টি চ্যাট`, }, Chat: { - SubTitle: (count: number) => `${count} টি বার্তা`, + SubTitle: (count: number) => `মোট ${count} টি চ্যাট`, + EditMessage: { + Title: "বার্তাগুলি সম্পাদনা করুন", + Topic: { + Title: "চ্যাটের বিষয়", + SubTitle: "বর্তমান চ্যাটের বিষয় পরিবর্তন করুন", + }, + }, Actions: { - ChatList: "চ্যাট তালিকায় যান", - CompressedHistory: "সংক্ষিপ্ত ইতিহাস মেমোরি প্রম্পট", - Export: "সমস্ত বার্তা মার্কডাউন হিসাবে রপ্তানি করুন", - Copy: "কপি", - Stop: "বন্ধ করুন", + ChatList: "বার্তা তালিকা দেখুন", + CompressedHistory: "সংকুচিত ইতিহাস দেখুন", + Export: "চ্যাট ইতিহাস রপ্তানী করুন", + Copy: "অনুলিপি করুন", + Stop: "থামান", Retry: "পুনরায় চেষ্টা করুন", Pin: "পিন করুন", - PinToastContent: "পিন করা হয়েছে ২টি বার্তা প্রম্পটে", + PinToastContent: "1 টি চ্যাট পূর্বনির্ধারিত প্রম্পটে পিন করা হয়েছে", PinToastAction: "দেখুন", Delete: "মুছে ফেলুন", - Edit: "সম্পাদন করুন", + Edit: "সম্পাদনা করুন", }, Commands: { - new: "নতুন চ্যাট শুরু করুন", - newm: "মাস্ক সহ নতুন চ্যাট শুরু করুন", + new: "নতুন চ্যাট", + newm: "মাস্ক থেকে নতুন চ্যাট", next: "পরবর্তী চ্যাট", prev: "পূর্ববর্তী চ্যাট", - clear: "সংশ্লিষ্টতাবদ্ধকরণ পরিষ্কার করুন", - del: "চ্যাট মুছুন", + clear: "প্রসঙ্গ পরিষ্কার করুন", + del: "চ্যাট মুছে ফেলুন", }, InputActions: { - Stop: "বন্ধ করুন", - ToBottom: "সর্বশেষতম দিকে", + Stop: "প্রতিক্রিয়া থামান", + ToBottom: "সর্বশেষে স্ক্রোল করুন", Theme: { - auto: "অটো", - light: "হালকা থিম", - dark: "ডার্ক থিম", + auto: "স্বয়ংক্রিয় থিম", + light: "আলোর মোড", + dark: "অন্ধকার মোড", }, - Prompt: "প্রম্পটগুলিতে", - Masks: "মাস্কগুলি", - Clear: "সংশ্লিষ্টতাবদ্ধকরণ পরিষ্কার করুন", - Settings: "সেটিংস", + Prompt: "সংক্ষিপ্ত নির্দেশনা", + Masks: "সমস্ত মাস্ক", + Clear: "চ্যাট পরিষ্কার করুন", + Settings: "চ্যাট সেটিংস", + UploadImage: "চিত্র আপলোড করুন", }, - Rename: "চ্যাট পুনঃনামকরণ করুন", - Typing: "টাইপিং...", + Rename: "চ্যাট নাম পরিবর্তন করুন", + Typing: "লিখছে…", Input: (submitKey: string) => { - var inputHints = `${submitKey} to send`; + var inputHints = `${submitKey} পাঠান`; if (submitKey === String(SubmitKey.Enter)) { - inputHints += ", Shift + Enter to wrap"; + inputHints += ",Shift + Enter নতুন লাইন"; } - return inputHints + ", / to search prompts, : to use commands"; + return inputHints + ",/ পূর্ণতা সক্রিয় করুন,: কমান্ড সক্রিয় করুন"; }, - Send: "প্রেরণ করুন", + Send: "পাঠান", Config: { - Reset: "ডিফল্টে রিসেট করুন", + Reset: "মেমরি মুছে ফেলুন", SaveAs: "মাস্ক হিসাবে সংরক্ষণ করুন", }, + IsContext: "পূর্বনির্ধারিত প্রম্পট", }, Export: { - Title: "বার্তা রপ্তানিকরণ", - Copy: "সমস্তটি কপি করুন", - Download: "ডাউনলোড করুন", - MessageFromYou: "আপনার বার্তা", - MessageFromChatGPT: "চ্যাটজিপিটির বার্তা", - Share: "শেয়ার করুন শেয়ারজিপিটি তে", + Title: "চ্যাট ইতিহাস শেয়ার করুন", + Copy: "সবকিছু কপি করুন", + Download: "ফাইল ডাউনলোড করুন", + Share: "ShareGPT তে শেয়ার করুন", + MessageFromYou: "ব্যবহারকারী", + MessageFromChatGPT: "ChatGPT", Format: { - Title: "রপ্তানি ফরম্যাট", - SubTitle: "মার্কডাউন বা পিএনজি চিত্র", + Title: "রপ্তানির ফর্ম্যাট", + SubTitle: "Markdown টেক্সট বা PNG চিত্র রপ্তানি করা যাবে", }, IncludeContext: { - Title: "মাস্ক অন্তর্ভুক্ত করুন", - SubTitle: "মাস্কগুলি সংরক্ষণ করবেন না কি", + Title: "মাস্ক প্রসঙ্গ অন্তর্ভুক্ত করুন", + SubTitle: "বার্তায় মাস্ক প্রসঙ্গ প্রদর্শন করা হবে কি না", }, Steps: { Select: "নির্বাচন করুন", - Preview: "প্রিভিউ করুন", + Preview: "পূর্বরূপ দেখুন", + }, + Image: { + Toast: "স্ক্রীনশট তৈরি করা হচ্ছে", + Modal: "ছবি সংরক্ষণ করতে দীর্ঘ প্রেস করুন অথবা রাইট ক্লিক করুন", }, }, Select: { - Search: "অনুসন্ধান করুন", - All: "সমস্তটি নির্বাচন করুন", - Latest: "সর্বশেষতমটি নির্বাচন করুন", - Clear: "পরিষ্কার করুন", + Search: "বার্তা অনুসন্ধান করুন", + All: "সবকিছু নির্বাচন করুন", + Latest: "সর্বশেষ কিছু", + Clear: "নির্বাচন পরিষ্কার করুন", }, Memory: { - Title: "মেমোরি প্রম্পট", - EmptyContent: "এখনও কিছুই নেই।", - Send: "মেমোরি প্রেরণ করুন", - Copy: "মেমোরি কপি করুন", - Reset: "পুনরায় নিশ্চিত করুন", - ResetConfirm: - "রিসেট করলে বর্তমান চ্যাট ইতিহাস এবং ঐতিহাসিক মেমোরি মুছে যাবে। পুনরায় নির্দিষ্ট করতে চান তা নিশ্চিত করতে চান?", + Title: "ইতিহাস সারাংশ", + EmptyContent: "চ্যাটের বিষয়বস্তু খুব সংক্ষিপ্ত, সারাংশ প্রয়োজন নেই", + Send: "অটোমেটিক চ্যাট ইতিহাস সংকুচিত করুন এবং প্রসঙ্গ হিসেবে পাঠান", + Copy: "সারাংশ কপি করুন", + Reset: "[unused]", + ResetConfirm: "ইতিহাস সারাংশ মুছে ফেলার নিশ্চিত করুন?", }, Home: { NewChat: "নতুন চ্যাট", - DeleteChat: "নির্বাচিত সংলাপটি মুছতে নিশ্চিত করুন?", - DeleteToast: "চ্যাটটি মুছেছেন", - Revert: "পুনরায়", + DeleteChat: "নির্বাচিত চ্যাট মুছে ফেলার নিশ্চিত করুন?", + DeleteToast: "চ্যাট মুছে ফেলা হয়েছে", + Revert: "পূর্বাবস্থায় ফেরান", }, Settings: { Title: "সেটিংস", - SubTitle: "সমস্ত সেটিংস", + SubTitle: "সমস্ত সেটিংস অপশন", + Danger: { Reset: { - Title: "সমস্ত সেটিংস পুনঃনির্দেশ দিন", - SubTitle: "সকল সেটিংস ডিফল্টে পুনঃনির্দেশ দিতে", - Action: "পুনঃনির্দেশ দিন", - Confirm: "সমস্ত সেটিংস ডিফল্টে পুনঃনির্দেশ করতে নিশ্চিত করতে?", + Title: "সমস্ত সেটিংস পুনরায় সেট করুন", + SubTitle: "সমস্ত সেটিংস বিকল্পগুলিকে ডিফল্ট মানে পুনরায় সেট করুন", + Action: "এখনই পুনরায় সেট করুন", + Confirm: "সমস্ত সেটিংস পুনরায় সেট করার নিশ্চিত করুন?", }, Clear: { - Title: "সমস্ত তথ্য মুছুন", - SubTitle: "সমস্ত বার্তা এবং সেটিংস মুছুন", - Action: "মুছুন", - Confirm: "সমস্ত বার্তা এবং সেটিংস মুছে ফেলতে নিশ্চিত করতে?", + Title: "সমস্ত তথ্য মুছে ফেলুন", + SubTitle: "সমস্ত চ্যাট এবং সেটিংস ডেটা মুছে ফেলুন", + Action: "এখনই মুছে ফেলুন", + Confirm: "সমস্ত চ্যাট এবং সেটিংস ডেটা মুছে ফেলানোর নিশ্চিত করুন?", }, }, Lang: { - Name: "বাংলা", // ATTENTION: if you wanna add a new translation, please do not translate this value, leave it as `Language` + Name: "Language", // ATTENTION: if you wanna add a new translation, please do not translate this value, leave it as `Language` All: "সমস্ত ভাষা", }, - Avatar: "অবতার", + Avatar: "অভিনেতা", FontSize: { Title: "ফন্ট সাইজ", - SubTitle: "চ্যাট সামগ্রীর ফন্ট সাইজ সংশোধন করুন", + SubTitle: "চ্যাট কনটেন্টের ফন্ট সাইজ", }, FontFamily: { Title: "চ্যাট ফন্ট", @@ -143,196 +160,390 @@ const bn: PartialLocaleType = { Placeholder: "ফন্টের নাম", }, InjectSystemPrompts: { - Title: "حقن تلميحات النظام", + Title: "সিস্টেম-লেভেল প্রম্পট যোগ করুন", SubTitle: - "قم بإضافة تلميحة نظام محاكاة ChatGPT إلى بداية قائمة الرسائل المُطلَبة في كل طلب", + "প্রত্যেক বার্তায় একটি সিস্টেম প্রম্পট যোগ করুন যা ChatGPT এর অনুকরণ করবে", }, InputTemplate: { - Title: "ইনপুট টেমপ্লেট", - SubTitle: "নতুনতম বার্তা এই টেমপ্লেটে পূরণ হবে", + Title: "ব্যবহারকারীর ইনপুট প্রিপ্রসেসিং", + SubTitle: "ব্যবহারকারীর সর্বশেষ বার্তা এই টেমপ্লেটে পূরণ করা হবে", }, Update: { - Version: (x: string) => `Version: ${x}`, - IsLatest: "Latest version", - CheckUpdate: "Check Update", - IsChecking: "Checking update...", - FoundUpdate: (x: string) => `Found new version: ${x}`, - GoToUpdate: "Update", - }, - SendKey: "প্রেরণ চাবি", + Version: (x: string) => `বর্তমান সংস্করণ: ${x}`, + IsLatest: "এটি সর্বশেষ সংস্করণ", + CheckUpdate: "আপডেট পরীক্ষা করুন", + IsChecking: "আপডেট পরীক্ষা করা হচ্ছে...", + FoundUpdate: (x: string) => `নতুন সংস্করণ পাওয়া গিয়েছে: ${x}`, + GoToUpdate: "আপডেট করতে যান", + }, + SendKey: "পাঠানোর কী", Theme: "থিম", - TightBorder: "সঙ্গতি সীমা", + TightBorder: "বর্ডার-বিহীন মোড", SendPreviewBubble: { - Title: "প্রিভিউ বুলবুল প্রেরণ করুন", - SubTitle: "বুলবুলে মার্কডাউন প্রিভিউ করুন", + Title: "প্রিভিউ বুদবুদ", + SubTitle: "প্রিভিউ বুদবুদে Markdown কনটেন্ট প্রিভিউ করুন", + }, + AutoGenerateTitle: { + Title: "স্বয়ংক্রিয় শিরোনাম জেনারেশন", + SubTitle: "চ্যাট কনটেন্টের ভিত্তিতে উপযুক্ত শিরোনাম তৈরি করুন", + }, + Sync: { + CloudState: "ক্লাউড ডেটা", + NotSyncYet: "এখনো সিঙ্ক করা হয়নি", + Success: "সিঙ্ক সফল", + Fail: "সিঙ্ক ব্যর্থ", + + Config: { + Modal: { + Title: "ক্লাউড সিঙ্ক কনফিগার করুন", + Check: "পরীক্ষা করুন", + }, + SyncType: { + Title: "সিঙ্ক টাইপ", + SubTitle: "পছন্দসই সিঙ্ক সার্ভার নির্বাচন করুন", + }, + Proxy: { + Title: "প্রক্সি সক্রিয় করুন", + SubTitle: + "ব্রাউজারে সিঙ্ক করার সময়, ক্রস-অরিজিন সীমাবদ্ধতা এড়াতে প্রক্সি সক্রিয় করতে হবে", + }, + ProxyUrl: { + Title: "প্রক্সি ঠিকানা", + SubTitle: + "এটি শুধুমাত্র প্রকল্পের সাথে সরবরাহিত ক্রস-অরিজিন প্রক্সির জন্য প্রযোজ্য", + }, + + WebDav: { + Endpoint: "WebDAV ঠিকানা", + UserName: "ব্যবহারকারীর নাম", + Password: "পাসওয়ার্ড", + }, + + UpStash: { + Endpoint: "UpStash Redis REST URL", + UserName: "ব্যাকআপ নাম", + Password: "UpStash Redis REST টোকেন", + }, + }, + + LocalState: "স্থানীয় ডেটা", + Overview: (overview: any) => { + return `${overview.chat} বার চ্যাট, ${overview.message} বার্তা, ${overview.prompt} প্রম্পট, ${overview.mask} মাস্ক`; + }, + ImportFailed: "আমদানি ব্যর্থ", }, Mask: { Splash: { - Title: "মাস্ক স্প্ল্যাশ স্ক্রিন", - SubTitle: - "নতুন চ্যাট শুরু করার আগে মাস্ক স্প্ল্যাশ স্ক্রিন প্রদর্শন করুন", + Title: "মাস্ক লঞ্চ পেজ", + SubTitle: "নতুন চ্যাট শুরু করার সময় মাস্ক লঞ্চ পেজ প্রদর্শন করুন", }, Builtin: { - Title: "মূলত মাস্ক গোপন করুন", - SubTitle: "মাস্ক তালিকা থেকে মূলত মাস্কগুলি লুকান", + Title: "ইনবিল্ট মাস্ক লুকান", + SubTitle: "সমস্ত মাস্ক তালিকায় ইনবিল্ট মাস্ক লুকান", }, }, Prompt: { Disable: { - Title: "অটো-সম্পূর্ণতা নিষ্ক্রিয় করুন", - SubTitle: "অটো-সম্পূর্ণতা চালু করতে / ইনপুট করুন", + Title: "প্রম্পট অটো-কমপ্লিশন নিষ্ক্রিয় করুন", + SubTitle: "ইনপুট বক্সের শুরুতে / টাইপ করলে অটো-কমপ্লিশন সক্রিয় হবে", }, - List: "প্রম্পট তালিকা", + List: "স্বনির্ধারিত প্রম্পট তালিকা", ListCount: (builtin: number, custom: number) => - `${builtin} built-in, ${custom} user-defined`, - Edit: "সম্পাদন করুন", + `ইনবিল্ট ${builtin} টি, ব্যবহারকারী সংজ্ঞায়িত ${custom} টি`, + Edit: "সম্পাদনা করুন", Modal: { Title: "প্রম্পট তালিকা", - Add: "একটি যোগ করুন", - Search: "সন্ধান প্রম্পট", + Add: "নতুন করুন", + Search: "প্রম্পট অনুসন্ধান করুন", }, EditModal: { - Title: "সম্পাদন করুন প্রম্পট", + Title: "প্রম্পট সম্পাদনা করুন", }, }, HistoryCount: { - Title: "সংযুক্ত বার্তা সংখ্যা", - SubTitle: "প্রতি অনুরোধে প্রেরণ করা গেলে প্রেরণ করা হবে", + Title: "সংযুক্ত ইতিহাস বার্তার সংখ্যা", + SubTitle: "প্রতিটি অনুরোধে সংযুক্ত ইতিহাস বার্তার সংখ্যা", }, CompressThreshold: { - Title: "ইতিহাস সঙ্কুচিত করার সীমা", + Title: "ইতিহাস বার্তা দৈর্ঘ্য সংকুচিত থ্রেশহোল্ড", SubTitle: - "নকুল বার্তা দৈর্ঘ্য সীমা অতিক্রান্ত হলে ঐ বার্তাটি সঙ্কুচিত হবে", + "যখন সংকুচিত ইতিহাস বার্তা এই মান ছাড়িয়ে যায়, তখন সংকুচিত করা হবে", }, Usage: { - Title: "একাউন্ট ব্যালেন্স", + Title: "ব্যালেন্স চেক", SubTitle(used: any, total: any) { - return `এই মাসে ব্যবহৃত $${used}, সাবস্ক্রিপশন $${total}`; + return `এই মাসে ব্যবহৃত $${used}, সাবস্ক্রিপশন মোট $${total}`; }, - IsChecking: "চেক করা হচ্ছে...", - Check: "চেক", - NoAccess: "ব্যালেন্স চেক করতে অ্যাপি কী ইনপুট করুন", + IsChecking: "পরীক্ষা করা হচ্ছে…", + Check: "পুনরায় পরীক্ষা করুন", + NoAccess: "ব্যালেন্স দেখতে API কী অথবা অ্যাক্সেস পাসওয়ার্ড প্রবেশ করুন", }, - Model: "মডেল", + Access: { + AccessCode: { + Title: "অ্যাক্সেস পাসওয়ার্ড", + SubTitle: "অ্যাডমিন এনক্রিপ্টেড অ্যাক্সেস সক্রিয় করেছেন", + Placeholder: "অ্যাক্সেস পাসওয়ার্ড প্রবেশ করুন", + }, + CustomEndpoint: { + Title: "স্বনির্ধারিত ইন্টারফেস", + SubTitle: "স্বনির্ধারিত Azure বা OpenAI সার্ভিস ব্যবহার করবেন কি?", + }, + Provider: { + Title: "মডেল পরিষেবা প্রদানকারী", + SubTitle: "বিভিন্ন পরিষেবা প্রদানকারীতে স্যুইচ করুন", + }, + OpenAI: { + ApiKey: { + Title: "API কী", + SubTitle: + "পাসওয়ার্ড অ্যাক্সেস সীমাবদ্ধতা এড়াতে স্বনির্ধারিত OpenAI কী ব্যবহার করুন", + Placeholder: "OpenAI API কী", + }, + + Endpoint: { + Title: "ইন্টারফেস ঠিকানা", + SubTitle: "ডিফল্ট ঠিকানা বাদে, http(s):// অন্তর্ভুক্ত করতে হবে", + }, + }, + Azure: { + ApiKey: { + Title: "ইন্টারফেস কী", + SubTitle: + "পাসওয়ার্ড অ্যাক্সেস সীমাবদ্ধতা এড়াতে স্বনির্ধারিত Azure কী ব্যবহার করুন", + Placeholder: "Azure API কী", + }, + + Endpoint: { + Title: "ইন্টারফেস ঠিকানা", + SubTitle: "উদাহরণ:", + }, + + ApiVerion: { + Title: "ইন্টারফেস সংস্করণ (azure api version)", + SubTitle: "নির্দিষ্ট সংস্করণ নির্বাচন করুন", + }, + }, + Anthropic: { + ApiKey: { + Title: "ইন্টারফেস কী", + SubTitle: + "পাসওয়ার্ড অ্যাক্সেস সীমাবদ্ধতা এড়াতে স্বনির্ধারিত Anthropic কী ব্যবহার করুন", + Placeholder: "Anthropic API কী", + }, + + Endpoint: { + Title: "ইন্টারফেস ঠিকানা", + SubTitle: "উদাহরণ:", + }, + + ApiVerion: { + Title: "ইন্টারফেস সংস্করণ (claude api version)", + SubTitle: "নির্দিষ্ট API সংস্করণ প্রবেশ করুন", + }, + }, + Google: { + ApiKey: { + Title: "API কী", + SubTitle: "Google AI থেকে আপনার API কী পান", + Placeholder: "আপনার Google AI Studio API কী প্রবেশ করুন", + }, + + Endpoint: { + Title: "টার্মিনাল ঠিকানা", + SubTitle: "উদাহরণ:", + }, + + ApiVersion: { + Title: "API সংস্করণ (শুধুমাত্র gemini-pro)", + SubTitle: "একটি নির্দিষ্ট API সংস্করণ নির্বাচন করুন", + }, + GoogleSafetySettings: { + Title: "Google সেফটি ফিল্টার স্তর", + SubTitle: "বিষয়বস্তু ফিল্টার স্তর সেট করুন", + }, + }, + Baidu: { + ApiKey: { + Title: "API কী", + SubTitle: "স্বনির্ধারিত Baidu API কী ব্যবহার করুন", + Placeholder: "Baidu API কী", + }, + SecretKey: { + Title: "সিক্রেট কী", + SubTitle: "স্বনির্ধারিত Baidu সিক্রেট কী ব্যবহার করুন", + Placeholder: "Baidu সিক্রেট কী", + }, + Endpoint: { + Title: "ইন্টারফেস ঠিকানা", + SubTitle: "স্বনির্ধারিত সমর্থিত নয়, .env কনফিগারেশনে চলে যান", + }, + }, + ByteDance: { + ApiKey: { + Title: "ইন্টারফেস কী", + SubTitle: "স্বনির্ধারিত ByteDance API কী ব্যবহার করুন", + Placeholder: "ByteDance API কী", + }, + Endpoint: { + Title: "ইন্টারফেস ঠিকানা", + SubTitle: "উদাহরণ:", + }, + }, + Alibaba: { + ApiKey: { + Title: "ইন্টারফেস কী", + SubTitle: "স্বনির্ধারিত আলিবাবা ক্লাউড API কী ব্যবহার করুন", + Placeholder: "Alibaba Cloud API কী", + }, + Endpoint: { + Title: "ইন্টারফেস ঠিকানা", + SubTitle: "উদাহরণ:", + }, + }, + CustomModel: { + Title: "স্বনির্ধারিত মডেল নাম", + SubTitle: + "স্বনির্ধারিত মডেল বিকল্পগুলি যুক্ত করুন, ইংরেজি কমা দ্বারা আলাদা করুন", + }, + }, + + Model: "মডেল (model)", Temperature: { - Title: "তাপমাত্রা", - SubTitle: "আরতি মান বেশি করলে বেশি এলোমেলো আউটপুট হবে", + Title: "যাদুকরিতা (temperature)", + SubTitle: "মান বাড়ালে উত্তর বেশি এলোমেলো হবে", }, TopP: { - Title: "শীর্ষ পি", - SubTitle: "তাপমাত্রা সঙ্গে এই মান পরিবর্তন করবেন না", + Title: "নিউক্লিয়ার স্যাম্পলিং (top_p)", + SubTitle: "যাদুকরিতা মত, কিন্তু একসাথে পরিবর্তন করবেন না", }, MaxTokens: { - Title: "সর্বাধিক টোকেন", - SubTitle: "ইনপুট টোকেন এবং উৎপাদিত টোকেনের সর্বাধিক দৈর্ঘ্য", + Title: "একটি উত্তর সীমা (max_tokens)", + SubTitle: "প্রতি ইন্টারঅ্যাকশনে সর্বাধিক টোকেন সংখ্যা", }, PresencePenalty: { - Title: "উপস্থিতির জরিমানা", - SubTitle: "আরতি মান বেশি করলে নতুন বিষয়গুলি সম্ভাব্যতা বাড়াতে পারে", + Title: "বিষয়বস্তু তাজা (presence_penalty)", + SubTitle: "মান বাড়ালে নতুন বিষয়ে প্রসারিত হওয়ার সম্ভাবনা বেশি", }, FrequencyPenalty: { - Title: "ফ্রিকুয়েন্সি জরিমানা", - SubTitle: - "আরতি মান বাড়ালে একই লাইন পুনরায় ব্যাবহার করার সম্ভাবনা হ্রাস পায়", + Title: "ফ্রিকোয়েন্সি পেনাল্টি (frequency_penalty)", + SubTitle: "মান বাড়ালে পুনরাবৃত্তি শব্দ কমানোর সম্ভাবনা বেশি", }, }, Store: { - DefaultTopic: "নতুন সংলাপ", - BotHello: "হ্যালো! আজকে আপনাকে কিভাবে সাহায্য করতে পারি?", - Error: "কিছু নিয়ে ভুল হয়েছে, পরে আবার চেষ্টা করুন।", + DefaultTopic: "নতুন চ্যাট", + BotHello: "আপনার জন্য কিছু করতে পারি?", + Error: "একটি ত্রুটি ঘটেছে, পরে আবার চেষ্টা করুন", Prompt: { History: (content: string) => - "এটি চ্যাট ইতিহাসের সংক্ষিপ্ত সংকলনের মতো: " + content, + "এটি পূর্বের চ্যাটের সারাংশ হিসেবে ব্যবহৃত হবে: " + content, Topic: - "আমাদের সংলাপটির চার থেকে পাঁচ শব্দের একটি শিরোনাম তৈরি করুন যা আমাদের আলাপের সংক্ষিপ্তসার হিসাবে যোগ হবে না, যেমন অভিবৃত্তি, বিন্যাস, উদ্ধৃতি, পূর্বচালক চিহ্ন, পূর্বরোবক্তির যেকোনো চিহ্ন বা অতিরিক্ত পাঠ। মেয়াদশেষ উদ্ধৃতি চেষ্টা করুন।", + "চার থেকে পাঁচটি শব্দ ব্যবহার করে এই বাক্যের সংক্ষিপ্ত থিম দিন, ব্যাখ্যা, বিরাম চিহ্ন, ভাষা, অতিরিক্ত টেক্সট বা বোল্ড না ব্যবহার করুন। যদি কোনো থিম না থাকে তবে সরাসরি 'বেকার' বলুন", Summarize: - "২০০ শব্দের লম্বা হয়ে মুহূর্তে আলোচনা সংক্ষেপের রপ্তানি করুন, যেটি ভবিষ্যতের প্রম্পট হিসাবে ব্যবহার করবেন।", + "আলোচনার বিষয়বস্তু সংক্ষিপ্তভাবে সারাংশ করুন, পরবর্তী কনটেক্সট প্রম্পট হিসেবে ব্যবহারের জন্য, ২০০ শব্দের মধ্যে সীমাবদ্ধ রাখুন", }, }, Copy: { - Success: "ক্লিপবোর্ডে কপি করা হয়েছে", - Failed: "কপি ব্যর্থ, অনুমতি প্রদান করার জন্য অনুমতি প্রদান করুন", + Success: "ক্লিপবোর্ডে লেখা হয়েছে", + Failed: "কপি ব্যর্থ হয়েছে, দয়া করে ক্লিপবোর্ড অনুমতি প্রদান করুন", + }, + Download: { + Success: "বিষয়বস্তু আপনার ডিরেক্টরিতে ডাউনলোড করা হয়েছে।", + Failed: "ডাউনলোড ব্যর্থ হয়েছে।", }, Context: { - Toast: (x: any) => `With ${x} contextual prompts`, + Toast: (x: any) => `${x}টি পূর্বনির্ধারিত প্রম্পট অন্তর্ভুক্ত`, Edit: "বর্তমান চ্যাট সেটিংস", - Add: "একটি প্রম্পট যোগ করুন", - Clear: "সঙ্গতি পরিস্কার করুন", - Revert: "পূর্ববর্তী অবস্থানে ফিরে যান", + Add: "একটি নতুন চ্যাট যোগ করুন", + Clear: "কনটেক্সট পরিষ্কার করা হয়েছে", + Revert: "কনটেক্সট পুনরুদ্ধার করুন", }, Plugin: { Name: "প্লাগইন", }, FineTuned: { - Sysmessage: "আপনি একটি সহকারী যা", + Sysmessage: "আপনি একজন সহকারী", }, Mask: { Name: "মাস্ক", Page: { - Title: "প্রম্পট টেমপ্লেট", - SubTitle: (count: number) => `${count} টি প্রম্পট টেমপ্লেট`, - Search: "টেমপ্লেট অনুসন্ধান করুন", - Create: "তৈরি করুন", + Title: "পূর্বনির্ধারিত চরিত্র মাস্ক", + SubTitle: (count: number) => `${count}টি পূর্বনির্ধারিত চরিত্র সংজ্ঞা`, + Search: "চরিত্র মাস্ক অনুসন্ধান করুন", + Create: "নতুন তৈরি করুন", }, Item: { - Info: (count: number) => `${count} প্রম্পট`, + Info: (count: number) => `ভিতরে ${count}টি পূর্বনির্ধারিত চ্যাট রয়েছে`, Chat: "চ্যাট", View: "দেখুন", - Edit: "সম্পাদন করুন", + Edit: "সম্পাদনা করুন", Delete: "মুছে ফেলুন", - DeleteConfirm: "মুছে ফেলতে নিশ্চিত করুন?", + DeleteConfirm: "মুছে ফেলার জন্য নিশ্চিত করুন?", }, EditModal: { Title: (readonly: boolean) => - `প্রম্পট টেমপ্লেট সম্পাদন করুন ${readonly ? "(readonly)" : ""}`, - Download: "ডাউনলোড করুন", - Clone: "ক্লোন করুন", + `পূর্বনির্ধারিত মাস্ক সম্পাদনা ${readonly ? "(পঠনযোগ্য)" : ""}`, + Download: "পূর্বনির্ধারিত ডাউনলোড করুন", + Clone: "পূর্বনির্ধারিত ক্লোন করুন", }, Config: { - Avatar: "বট অবতার", - Name: "বটের নাম", + Avatar: "চরিত্রের চিত্র", + Name: "চরিত্রের নাম", Sync: { - Title: "গ্লোবাল কনফিগ ব্যবহার করুন", - SubTitle: "এই চ্যাটে গ্লোবাল কনফিগ ব্যবহার করুন", + Title: "গ্লোবাল সেটিংস ব্যবহার করুন", + SubTitle: "বর্তমান চ্যাট গ্লোবাল মডেল সেটিংস ব্যবহার করছে কি না", Confirm: - "গ্লোবাল কনফিগ দ্বারা কাস্টম কনফিগ ওভাররাইড করতে নিশ্চিত করতে?", + "বর্তমান চ্যাটের কাস্টম সেটিংস স্বয়ংক্রিয়ভাবে ওভাররাইট হবে, গ্লোবাল সেটিংস সক্রিয় করতে নিশ্চিত?", }, HideContext: { - Title: "সংশ্লিষ্টতা প্রম্পটগুলি লুকান", - SubTitle: "চ্যাটে সংশ্লিষ্টতা প্রম্পটগুলি দেখাবেন না", + Title: "পূর্বনির্ধারিত চ্যাট লুকান", + SubTitle: + "লুকানোর পরে পূর্বনির্ধারিত চ্যাট চ্যাট ইন্টারফেসে প্রদর্শিত হবে না", }, Share: { - Title: "এই মাস্কটি শেয়ার করুন", - SubTitle: "এই মাস্কের একটি লিঙ্ক তৈরি করুন", + Title: "এই মাস্ক শেয়ার করুন", + SubTitle: "এই মাস্কের সরাসরি লিঙ্ক তৈরি করুন", Action: "লিঙ্ক কপি করুন", }, }, }, NewChat: { Return: "ফিরে যান", - Skip: "শুরু করুন", - Title: "মাস্ক নির্বাচন করুন", - SubTitle: "মাস্কের পিছনে আত্মার সঙ্গে চ্যাট করুন", - More: "আরো খুঁজুন", - NotShow: "এখনও দেখাবেন না", + Skip: "ডাইরেক্ট শুরু করুন", + NotShow: "আবার প্রদর্শন করবেন না", ConfirmNoShow: - "নিষ্ক্রিয় করতে নিশ্চিত করুন? পরে আপনি এটি সেটিংসে সক্ষম করতে পারবেন।", + "নিশ্চিত যে নিষ্ক্রিয় করবেন? নিষ্ক্রিয় করার পরে সেটিংসে পুনরায় সক্রিয় করা যাবে।", + Title: "একটি মাস্ক নির্বাচন করুন", + SubTitle: "এখন শুরু করুন, মাস্কের পিছনের চিন্তা প্রতিক্রিয়া করুন", + More: "সব দেখুন", + }, + + URLCommand: { + Code: "লিঙ্কে অ্যাক্সেস কোড ইতিমধ্যে অন্তর্ভুক্ত রয়েছে, অটো পূরণ করতে চান?", + Settings: + "লিঙ্কে প্রাক-নির্ধারিত সেটিংস অন্তর্ভুক্ত রয়েছে, অটো পূরণ করতে চান?", }, UI: { Confirm: "নিশ্চিত করুন", Cancel: "বাতিল করুন", Close: "বন্ধ করুন", - Create: "তৈরি করুন", - Edit: "সম্পাদন করুন", + Create: "নতুন তৈরি করুন", + Edit: "সম্পাদনা করুন", + Export: "রপ্তানি করুন", + Import: "আমদানি করুন", + Sync: "সিঙ্ক", + Config: "কনফিগারেশন", }, Exporter: { + Description: { + Title: "শুধুমাত্র কনটেক্সট পরিষ্কার করার পরে বার্তাগুলি প্রদর্শিত হবে", + }, Model: "মডেল", Messages: "বার্তা", - Topic: "টপিক", + Topic: "থিম", Time: "সময়", }, }; diff --git a/app/locales/cs.ts b/app/locales/cs.ts index e70a0e839d7..b8b56cecedf 100644 --- a/app/locales/cs.ts +++ b/app/locales/cs.ts @@ -1,75 +1,157 @@ import { SubmitKey } from "../store/config"; import type { PartialLocaleType } from "./index"; +import { getClientConfig } from "../config/client"; + +const isApp = !!getClientConfig()?.isApp; const cs: PartialLocaleType = { WIP: "V přípravě...", Error: { - Unauthorized: - "Neoprávněný přístup, zadejte přístupový kód na [stránce](/#/auth) nastavení.", + Unauthorized: isApp + ? "Byl zjištěn neplatný API Key, prosím přejděte na stránku [Nastavení](/#/settings) a zkontrolujte, zda je API Key správně nakonfigurován." + : "Heslo je nesprávné nebo prázdné, prosím přejděte na stránku [Přihlášení](/#/auth) a zadejte správné heslo, nebo na stránku [Nastavení](/#/settings) a zadejte svůj vlastní OpenAI API Key.", + }, + Auth: { + Title: "Potřebné heslo", + Tips: "Administrátor povolil ověření heslem, prosím zadejte přístupový kód níže", + SubTips: "nebo zadejte svůj OpenAI nebo Google API klíč", + Input: "Zadejte přístupový kód zde", + Confirm: "Potvrdit", + Later: "Později", }, ChatItem: { - ChatItemCount: (count: number) => `${count} zpráv`, + ChatItemCount: (count: number) => `${count} konverzací`, }, Chat: { - SubTitle: (count: number) => `${count} zpráv s ChatGPT`, + SubTitle: (count: number) => `Celkem ${count} konverzací`, + EditMessage: { + Title: "Upravit zprávy", + Topic: { + Title: "Téma konverzace", + SubTitle: "Změnit aktuální téma konverzace", + }, + }, Actions: { - ChatList: "Přejít na seznam chatů", - CompressedHistory: "Pokyn z komprimované paměti historie", - Export: "Exportovat všechny zprávy jako Markdown", + ChatList: "Zobrazit seznam zpráv", + CompressedHistory: "Zobrazit komprimovanou historii Prompt", + Export: "Exportovat konverzace", Copy: "Kopírovat", Stop: "Zastavit", - Retry: "Zopakovat", + Retry: "Zkusit znovu", + Pin: "Připnout", + PinToastContent: "1 konverzace byla připnuta k přednastaveným promptům", + PinToastAction: "Zobrazit", Delete: "Smazat", + Edit: "Upravit", }, - Rename: "Přejmenovat chat", - Typing: "Píše...", + Commands: { + new: "Nová konverzace", + newm: "Nová konverzace z masky", + next: "Další konverzace", + prev: "Předchozí konverzace", + clear: "Vymazat kontext", + del: "Smazat konverzaci", + }, + InputActions: { + Stop: "Zastavit odpověď", + ToBottom: "Přejít na nejnovější", + Theme: { + auto: "Automatické téma", + light: "Světelný režim", + dark: "Tmavý režim", + }, + Prompt: "Rychlé příkazy", + Masks: "Všechny masky", + Clear: "Vymazat konverzaci", + Settings: "Nastavení konverzace", + UploadImage: "Nahrát obrázek", + }, + Rename: "Přejmenovat konverzaci", + Typing: "Píše se…", Input: (submitKey: string) => { - var inputHints = `${submitKey} pro odeslání`; + var inputHints = `${submitKey} odeslat`; if (submitKey === String(SubmitKey.Enter)) { - inputHints += ", Shift + Enter pro řádkování"; + inputHints += ",Shift + Enter pro nový řádek"; } - return inputHints + ", / pro vyhledávání pokynů"; + return inputHints + ",/ pro doplnění, : pro příkaz"; }, Send: "Odeslat", Config: { - Reset: "Obnovit výchozí", - SaveAs: "Uložit jako Masku", + Reset: "Vymazat paměť", + SaveAs: "Uložit jako masku", }, + IsContext: "Přednastavené prompty", }, Export: { - Title: "Všechny zprávy", + Title: "Sdílet konverzace", Copy: "Kopírovat vše", - Download: "Stáhnout", - MessageFromYou: "Zpráva od vás", - MessageFromChatGPT: "Zpráva z ChatGPT", + Download: "Stáhnout soubor", + Share: "Sdílet na ShareGPT", + MessageFromYou: "Uživatel", + MessageFromChatGPT: "ChatGPT", + Format: { + Title: "Formát exportu", + SubTitle: "Lze exportovat jako Markdown text nebo PNG obrázek", + }, + IncludeContext: { + Title: "Zahrnout kontext masky", + SubTitle: "Zobrazit kontext masky ve zprávách", + }, + Steps: { + Select: "Vybrat", + Preview: "Náhled", + }, + Image: { + Toast: "Generování screenshotu", + Modal: "Dlouhým stiskem nebo pravým tlačítkem myši uložte obrázek", + }, + }, + Select: { + Search: "Hledat zprávy", + All: "Vybrat vše", + Latest: "Několik posledních", + Clear: "Zrušit výběr", }, Memory: { - Title: "Pokyn z paměti", - EmptyContent: "Zatím nic.", - Send: "Odeslat paměť", - Copy: "Kopírovat paměť", - Reset: "Obnovit relaci", - ResetConfirm: - "Resetováním se vymaže historie aktuálních konverzací i paměť historie pokynů. Opravdu chcete provést obnovu?", + Title: "Historie shrnutí", + EmptyContent: "Obsah konverzace je příliš krátký, není třeba shrnovat", + Send: "Automaticky komprimovat konverzace a odeslat jako kontext", + Copy: "Kopírovat shrnutí", + Reset: "[nepoužívá se]", + ResetConfirm: "Opravdu chcete vymazat historii shrnutí?", }, Home: { - NewChat: "Nový chat", - DeleteChat: "Potvrzujete smazání vybrané konverzace?", - DeleteToast: "Chat smazán", - Revert: "Zvrátit", + NewChat: "Nová konverzace", + DeleteChat: "Opravdu chcete smazat vybranou konverzaci?", + DeleteToast: "Konverzace byla smazána", + Revert: "Vrátit", }, Settings: { Title: "Nastavení", - SubTitle: "Všechna nastavení", + SubTitle: "Všechny možnosti nastavení", + Danger: { + Reset: { + Title: "Obnovit všechna nastavení", + SubTitle: "Obnovit všechny nastavení na výchozí hodnoty", + Action: "Okamžitě obnovit", + Confirm: "Opravdu chcete obnovit všechna nastavení?", + }, + Clear: { + Title: "Smazat všechna data", + SubTitle: "Smazat všechny chaty a nastavení", + Action: "Okamžitě smazat", + Confirm: "Opravdu chcete smazat všechny chaty a nastavení?", + }, + }, Lang: { - Name: "Language", // ATTENTION: if you wanna add a new translation, please do not translate this value, leave it as `Language` + Name: "Language", // POZOR: pokud chcete přidat nový překlad, prosím, nechte tuto hodnotu jako `Language` All: "Všechny jazyky", }, - Avatar: "Avatar", + Avatar: "Profilový obrázek", FontSize: { Title: "Velikost písma", - SubTitle: "Nastavení velikosti písma obsahu chatu", + SubTitle: "Velikost písma pro obsah chatu", }, FontFamily: { Title: "Chatové Písmo", @@ -78,162 +160,388 @@ const cs: PartialLocaleType = { Placeholder: "Název Písma", }, InjectSystemPrompts: { - Title: "Vložit systémové prompty", + Title: "Vložit systémové výzvy", SubTitle: - "Vynutit přidání simulovaného systémového promptu ChatGPT na začátek seznamu zpráv každého požadavku", + "Automaticky přidat systémovou výzvu simulující ChatGPT na začátek seznamu zpráv pro každý požadavek", }, + InputTemplate: { + Title: "Předzpracování uživatelského vstupu", + SubTitle: "Nejnovější zpráva uživatele bude vyplněna do této šablony", + }, + Update: { - Version: (x: string) => `Verze: ${x}`, - IsLatest: "Aktuální verze", + Version: (x: string) => `Aktuální verze: ${x}`, + IsLatest: "Jste na nejnovější verzi", CheckUpdate: "Zkontrolovat aktualizace", - IsChecking: "Kontrola aktualizace...", + IsChecking: "Kontrola aktualizací...", FoundUpdate: (x: string) => `Nalezena nová verze: ${x}`, - GoToUpdate: "Aktualizovat", + GoToUpdate: "Přejít na aktualizaci", }, - SendKey: "Odeslat klíč", + SendKey: "Klávesa pro odeslání", Theme: "Téma", - TightBorder: "Těsné ohraničení", + TightBorder: "Režim bez okrajů", SendPreviewBubble: { - Title: "Odesílat chatovací bublinu s náhledem", - SubTitle: "Zobrazit v náhledu bubliny", + Title: "Náhledová bublina", + SubTitle: "Náhled Markdown obsahu v náhledové bublině", + }, + AutoGenerateTitle: { + Title: "Automatické generování názvu", + SubTitle: "Generovat vhodný název na základě obsahu konverzace", + }, + Sync: { + CloudState: "Data na cloudu", + NotSyncYet: "Ještě nebylo synchronizováno", + Success: "Synchronizace úspěšná", + Fail: "Synchronizace selhala", + + Config: { + Modal: { + Title: "Nastavení cloudové synchronizace", + Check: "Zkontrolovat dostupnost", + }, + SyncType: { + Title: "Typ synchronizace", + SubTitle: "Vyberte oblíbený synchronizační server", + }, + Proxy: { + Title: "Povolit proxy", + SubTitle: + "Při synchronizaci v prohlížeči musí být proxy povolena, aby se předešlo problémům s CORS", + }, + ProxyUrl: { + Title: "Adresa proxy", + SubTitle: "Pouze pro interní proxy", + }, + + WebDav: { + Endpoint: "WebDAV adresa", + UserName: "Uživatelské jméno", + Password: "Heslo", + }, + + UpStash: { + Endpoint: "UpStash Redis REST URL", + UserName: "Název zálohy", + Password: "UpStash Redis REST Token", + }, + }, + + LocalState: "Lokální data", + Overview: (overview: any) => { + return `${overview.chat} konverzací, ${overview.message} zpráv, ${overview.prompt} promptů, ${overview.mask} masek`; + }, + ImportFailed: "Import selhal", }, Mask: { Splash: { - Title: "Úvodní obrazovka Masek", - SubTitle: "Před zahájením nového chatu zobrazte úvodní obrazovku Masek", + Title: "Úvodní stránka masky", + SubTitle: "Při zahájení nové konverzace zobrazit úvodní stránku masky", + }, + Builtin: { + Title: "Skrýt vestavěné masky", + SubTitle: "Skrýt vestavěné masky v seznamu všech masek", }, }, Prompt: { Disable: { - Title: "Deaktivovat automatické dokončování", - SubTitle: "Zadejte / pro spuštění automatického dokončování", + Title: "Zakázat automatické doplňování promptů", + SubTitle: + "Automatické doplňování se aktivuje zadáním / na začátku textového pole", }, - List: "Seznam pokynů", + List: "Seznam vlastních promptů", ListCount: (builtin: number, custom: number) => - `${builtin} vestavěných, ${custom} uživatelských`, + `Vestavěné ${builtin} položek, uživatelsky definované ${custom} položek`, Edit: "Upravit", Modal: { - Title: "Seznam pokynů", - Add: "Přidat pokyn", - Search: "Hledat pokyny", + Title: "Seznam promptů", + Add: "Nový", + Search: "Hledat prompty", }, EditModal: { - Title: "Editovat pokyn", + Title: "Upravit prompt", }, }, HistoryCount: { - Title: "Počet připojených zpráv", - SubTitle: "Počet odeslaných připojených zpráv na žádost", + Title: "Počet historických zpráv", + SubTitle: "Počet historických zpráv zahrnutých v každém požadavku", }, CompressThreshold: { - Title: "Práh pro kompresi historie", + Title: "Prahová hodnota komprese historických zpráv", SubTitle: - "Komprese proběhne, pokud délka nekomprimovaných zpráv přesáhne tuto hodnotu", + "Když nekomprimované historické zprávy překročí tuto hodnotu, dojde ke kompresi", }, Usage: { - Title: "Stav účtu", + Title: "Kontrola zůstatku", SubTitle(used: any, total: any) { - return `Použito tento měsíc $${used}, předplaceno $${total}`; + return `Tento měsíc použito $${used}, celkový předplatný objem $${total}`; }, - IsChecking: "Kontroluji...", - Check: "Zkontrolovat", - NoAccess: "Pro kontrolu zůstatku zadejte klíč API", + IsChecking: "Probíhá kontrola…", + Check: "Znovu zkontrolovat", + NoAccess: "Zadejte API Key nebo přístupové heslo pro zobrazení zůstatku", }, - Model: "Model", + Access: { + AccessCode: { + Title: "Přístupový kód", + SubTitle: "Administrátor aktivoval šifrovaný přístup", + Placeholder: "Zadejte přístupový kód", + }, + CustomEndpoint: { + Title: "Vlastní rozhraní", + SubTitle: "Použít vlastní Azure nebo OpenAI službu", + }, + Provider: { + Title: "Poskytovatel modelu", + SubTitle: "Přepnout mezi různými poskytovateli", + }, + OpenAI: { + ApiKey: { + Title: "API Key", + SubTitle: + "Použijte vlastní OpenAI Key k obejití přístupového omezení", + Placeholder: "OpenAI API Key", + }, + + Endpoint: { + Title: "Adresa rozhraní", + SubTitle: "Kromě výchozí adresy musí obsahovat http(s)://", + }, + }, + Azure: { + ApiKey: { + Title: "Rozhraní klíč", + SubTitle: "Použijte vlastní Azure Key k obejití přístupového omezení", + Placeholder: "Azure API Key", + }, + + Endpoint: { + Title: "Adresa rozhraní", + SubTitle: "Příklad:", + }, + + ApiVerion: { + Title: "Verze rozhraní (azure api version)", + SubTitle: "Vyberte konkrétní verzi", + }, + }, + Anthropic: { + ApiKey: { + Title: "Rozhraní klíč", + SubTitle: + "Použijte vlastní Anthropic Key k obejití přístupového omezení", + Placeholder: "Anthropic API Key", + }, + + Endpoint: { + Title: "Adresa rozhraní", + SubTitle: "Příklad:", + }, + + ApiVerion: { + Title: "Verze rozhraní (claude api version)", + SubTitle: "Vyberte konkrétní verzi API", + }, + }, + Google: { + ApiKey: { + Title: "API klíč", + SubTitle: "Získejte svůj API klíč od Google AI", + Placeholder: "Zadejte svůj Google AI Studio API klíč", + }, + + Endpoint: { + Title: "Konečná adresa", + SubTitle: "Příklad:", + }, + + ApiVersion: { + Title: "Verze API (pouze pro gemini-pro)", + SubTitle: "Vyberte konkrétní verzi API", + }, + GoogleSafetySettings: { + Title: "Úroveň bezpečnostního filtrování Google", + SubTitle: "Nastavit úroveň filtrování obsahu", + }, + }, + Baidu: { + ApiKey: { + Title: "API Key", + SubTitle: "Použijte vlastní Baidu API Key", + Placeholder: "Baidu API Key", + }, + SecretKey: { + Title: "Secret Key", + SubTitle: "Použijte vlastní Baidu Secret Key", + Placeholder: "Baidu Secret Key", + }, + Endpoint: { + Title: "Adresa rozhraní", + SubTitle: + "Nepodporuje vlastní nastavení, přejděte na .env konfiguraci", + }, + }, + ByteDance: { + ApiKey: { + Title: "Rozhraní klíč", + SubTitle: "Použijte vlastní ByteDance API Key", + Placeholder: "ByteDance API Key", + }, + Endpoint: { + Title: "Adresa rozhraní", + SubTitle: "Příklad:", + }, + }, + Alibaba: { + ApiKey: { + Title: "Rozhraní klíč", + SubTitle: "Použijte vlastní Alibaba Cloud API Key", + Placeholder: "Alibaba Cloud API Key", + }, + Endpoint: { + Title: "Adresa rozhraní", + SubTitle: "Příklad:", + }, + }, + CustomModel: { + Title: "Vlastní názvy modelů", + SubTitle: "Přidejte možnosti vlastních modelů, oddělené čárkami", + }, + }, + + Model: "Model (model)", Temperature: { - Title: "Teplota", - SubTitle: "Větší hodnota činí výstup náhodnějším", + Title: "Náhodnost (temperature)", + SubTitle: "Čím vyšší hodnota, tím náhodnější odpovědi", + }, + TopP: { + Title: "Jádrové vzorkování (top_p)", + SubTitle: "Podobné náhodnosti, ale neměňte spolu s náhodností", }, MaxTokens: { - Title: "Max. počet tokenů", - SubTitle: "Maximální délka vstupního tokenu a generovaných tokenů", + Title: "Omezení odpovědi (max_tokens)", + SubTitle: "Maximální počet Tokenů použitých v jednom interakci", }, PresencePenalty: { - Title: "Přítomnostní korekce", - SubTitle: "Větší hodnota zvyšuje pravděpodobnost nových témat.", + Title: "Čerstvost témat (presence_penalty)", + SubTitle: + "Čím vyšší hodnota, tím větší pravděpodobnost rozšíření na nová témata", }, FrequencyPenalty: { - Title: "Frekvenční penalizace", + Title: "Penalizace frekvence (frequency_penalty)", SubTitle: - "Větší hodnota snižující pravděpodobnost opakování stejného řádku", + "Čím vyšší hodnota, tím větší pravděpodobnost snížení opakování slov", }, }, Store: { - DefaultTopic: "Nová konverzace", - BotHello: "Ahoj! Jak mohu dnes pomoci?", - Error: "Něco se pokazilo, zkuste to prosím později.", + DefaultTopic: "Nový chat", + BotHello: "Jak vám mohu pomoci?", + Error: "Došlo k chybě, zkuste to prosím znovu později.", Prompt: { History: (content: string) => - "Toto je shrnutí historie chatu mezi umělou inteligencí a uživatelem v podobě rekapitulace: " + - content, + "Toto je shrnutí historie chatu jako kontext: " + content, Topic: - "Vytvořte prosím název o čtyřech až pěti slovech vystihující průběh našeho rozhovoru bez jakýchkoli úvodních slov, interpunkčních znamének, uvozovek, teček, symbolů nebo dalšího textu. Odstraňte uvozovky.", + "Použijte čtyři až pět slov pro stručné téma této věty, bez vysvětlení, interpunkce, citoslovcí, nadbytečného textu, bez tučného písma. Pokud téma neexistuje, vraťte pouze 'neformální chat'.", Summarize: - "Krátce shrň naši diskusi v rozsahu do 200 slov a použij ji jako podnět pro budoucí kontext.", + "Stručně shrňte obsah konverzace jako kontextový prompt pro budoucí použití, do 200 slov", }, }, Copy: { Success: "Zkopírováno do schránky", Failed: "Kopírování selhalo, prosím, povolte přístup ke schránce", }, + Download: { + Success: "Obsah byl stažen do vašeho adresáře.", + Failed: "Stahování selhalo.", + }, Context: { - Toast: (x: any) => `Použití ${x} kontextových pokynů`, - Edit: "Kontextové a paměťové pokyny", - Add: "Přidat pokyn", + Toast: (x: any) => `Obsahuje ${x} přednastavených promptů`, + Edit: "Nastavení aktuální konverzace", + Add: "Přidat novou konverzaci", + Clear: "Kontext byl vymazán", + Revert: "Obnovit kontext", }, Plugin: { Name: "Plugin", }, FineTuned: { - Sysmessage: "Jste asistent, který", + Sysmessage: "Jste asistent", }, Mask: { Name: "Maska", Page: { - Title: "Šablona pokynu", - SubTitle: (count: number) => `${count} šablon pokynů`, - Search: "Hledat v šablonách", - Create: "Vytvořit", + Title: "Přednastavené role masky", + SubTitle: (count: number) => `${count} definovaných rolí`, + Search: "Hledat role masky", + Create: "Nový", }, Item: { - Info: (count: number) => `${count} pokynů`, + Info: (count: number) => `Obsahuje ${count} přednastavených konverzací`, Chat: "Chat", View: "Zobrazit", Edit: "Upravit", Delete: "Smazat", - DeleteConfirm: "Potvrdit smazání?", + DeleteConfirm: "Opravdu chcete smazat?", }, EditModal: { Title: (readonly: boolean) => - `Editovat šablonu pokynu ${readonly ? "(pouze ke čtení)" : ""}`, - Download: "Stáhnout", - Clone: "Duplikovat", + `Upravit přednastavenou masku ${readonly ? " (jen pro čtení)" : ""}`, + Download: "Stáhnout přednastavení", + Clone: "Klonovat přednastavení", }, Config: { - Avatar: "Avatar Bota", - Name: "Jméno Bota", + Avatar: "Profilový obrázek", + Name: "Název role", + Sync: { + Title: "Použít globální nastavení", + SubTitle: "Použít globální modelová nastavení pro aktuální konverzaci", + Confirm: + "Vaše vlastní nastavení konverzace bude automaticky přepsáno, opravdu chcete použít globální nastavení?", + }, + HideContext: { + Title: "Skrýt přednastavené konverzace", + SubTitle: + "Po skrytí se přednastavené konverzace nebudou zobrazovat v chatovém rozhraní", + }, + Share: { + Title: "Sdílet tuto masku", + SubTitle: "Generovat přímý odkaz na tuto masku", + Action: "Kopírovat odkaz", + }, }, }, NewChat: { Return: "Zpět", - Skip: "Přeskočit", - Title: "Vyberte Masku", - SubTitle: "Chatovat s duší za Maskou", - More: "Najít více", - NotShow: "Nezobrazovat znovu", - ConfirmNoShow: "Potvrdit zakázání?Můžete jej povolit později v nastavení.", + Skip: "Začít hned", + NotShow: "Zobrazit už nikdy", + ConfirmNoShow: + "Opravdu chcete zakázat? Zakázání můžete kdykoli znovu povolit v nastavení.", + Title: "Vyberte masku", + SubTitle: "Začněte nyní a konfrontujte se s myslí za maskou", + More: "Zobrazit vše", + }, + + URLCommand: { + Code: "Byl detekován přístupový kód v odkazu, chcete jej automaticky vyplnit?", + Settings: + "Byla detekována přednastavená nastavení v odkazu, chcete je automaticky vyplnit?", }, UI: { Confirm: "Potvrdit", Cancel: "Zrušit", Close: "Zavřít", - Create: "Vytvořit", + Create: "Nový", Edit: "Upravit", + Export: "Exportovat", + Import: "Importovat", + Sync: "Synchronizovat", + Config: "Konfigurovat", }, Exporter: { + Description: { + Title: "Pouze zprávy po vymazání kontextu budou zobrazeny", + }, Model: "Model", Messages: "Zprávy", Topic: "Téma", diff --git a/app/locales/de.ts b/app/locales/de.ts index e50760d88f6..b25599bd998 100644 --- a/app/locales/de.ts +++ b/app/locales/de.ts @@ -1,75 +1,159 @@ import { SubmitKey } from "../store/config"; import type { PartialLocaleType } from "./index"; +import { getClientConfig } from "../config/client"; + +const isApp = !!getClientConfig()?.isApp; const de: PartialLocaleType = { WIP: "In Bearbeitung...", Error: { - Unauthorized: - "Unbefugter Zugriff, bitte geben Sie den Zugangscode auf der [Einstellungsseite](/#/auth) ein.", + Unauthorized: isApp + ? "Ungültiger API-Schlüssel erkannt. Bitte gehen Sie zur [Einstellungen](/#/settings) Seite, um zu überprüfen, ob der API-Schlüssel korrekt konfiguriert ist." + : "Das Passwort ist falsch oder leer. Bitte gehen Sie zur [Login](/#/auth) Seite, um das richtige Passwort einzugeben, oder fügen Sie Ihren OpenAI API-Schlüssel auf der [Einstellungen](/#/settings) Seite hinzu.", + }, + Auth: { + Title: "Passwort erforderlich", + Tips: "Der Administrator hat die Passwortüberprüfung aktiviert. Bitte geben Sie den Zugangscode unten ein.", + SubTips: "Oder geben Sie Ihren OpenAI oder Google API-Schlüssel ein.", + Input: "Geben Sie hier den Zugangscode ein", + Confirm: "Bestätigen", + Later: "Später", }, ChatItem: { - ChatItemCount: (count: number) => `${count} Nachrichten`, + ChatItemCount: (count: number) => `${count} Gespräche`, }, Chat: { - SubTitle: (count: number) => `${count} Nachrichten mit ChatGPT`, + SubTitle: (count: number) => `Insgesamt ${count} Gespräche`, + EditMessage: { + Title: "Nachricht bearbeiten", + Topic: { + Title: "Chat-Thema", + SubTitle: "Ändern Sie das aktuelle Chat-Thema", + }, + }, Actions: { - ChatList: "Zur Chat-Liste gehen", - CompressedHistory: "Komprimierter Gedächtnis-Prompt", - Export: "Alle Nachrichten als Markdown exportieren", + ChatList: "Nachrichtliste anzeigen", + CompressedHistory: "Komprimierte Historie anzeigen", + Export: "Chatverlauf exportieren", Copy: "Kopieren", - Stop: "Stop", - Retry: "Wiederholen", - Delete: "Delete", + Stop: "Stoppen", + Retry: "Erneut versuchen", + Pin: "Anheften", + PinToastContent: "1 Gespräch an den voreingestellten Prompt angeheftet", + PinToastAction: "Ansehen", + Delete: "Löschen", + Edit: "Bearbeiten", + }, + Commands: { + new: "Neues Gespräch", + newm: "Neues Gespräch aus Maske erstellen", + next: "Nächstes Gespräch", + prev: "Vorheriges Gespräch", + clear: "Kontext löschen", + del: "Gespräch löschen", + }, + InputActions: { + Stop: "Antwort stoppen", + ToBottom: "Zum neuesten Beitrag", + Theme: { + auto: "Automatisches Thema", + light: "Helles Thema", + dark: "Dunkles Thema", + }, + Prompt: "Schnellbefehle", + Masks: "Alle Masken", + Clear: "Chat löschen", + Settings: "Gesprächseinstellungen", + UploadImage: "Bild hochladen", }, - Rename: "Chat umbenennen", - Typing: "Tippen...", + Rename: "Gespräch umbenennen", + Typing: "Tippt…", Input: (submitKey: string) => { - var inputHints = `${submitKey} um zu Senden`; + var inputHints = `${submitKey} senden`; if (submitKey === String(SubmitKey.Enter)) { - inputHints += ", Umschalt + Eingabe für Zeilenumbruch"; + inputHints += ",Shift + Enter für Zeilenumbruch"; } - return inputHints + ", / zum Durchsuchen von Prompts"; + return inputHints + ",/ für Autovervollständigung, : für Befehle"; }, Send: "Senden", Config: { - Reset: "Reset to Default", - SaveAs: "Save as Mask", + Reset: "Erinnerung löschen", + SaveAs: "Als Maske speichern", }, + IsContext: "Voreingestellter Prompt", }, Export: { - Title: "Alle Nachrichten", + Title: "Chatverlauf teilen", Copy: "Alles kopieren", - Download: "Herunterladen", - MessageFromYou: "Deine Nachricht", - MessageFromChatGPT: "Nachricht von ChatGPT", + Download: "Datei herunterladen", + Share: "Auf ShareGPT teilen", + MessageFromYou: "Benutzer", + MessageFromChatGPT: "ChatGPT", + Format: { + Title: "Exportformat", + SubTitle: "Kann als Markdown-Text oder PNG-Bild exportiert werden", + }, + IncludeContext: { + Title: "Maske Kontext einbeziehen", + SubTitle: "Soll der Maskenkontext in den Nachrichten angezeigt werden?", + }, + Steps: { + Select: "Auswählen", + Preview: "Vorschau", + }, + Image: { + Toast: "Screenshot wird erstellt", + Modal: "Lang drücken oder Rechtsklick, um Bild zu speichern", + }, + }, + Select: { + Search: "Nachrichten suchen", + All: "Alles auswählen", + Latest: "Neueste", + Clear: "Auswahl aufheben", }, Memory: { - Title: "Gedächtnis-Prompt", - EmptyContent: "Noch nichts.", - Send: "Gedächtnis senden", - Copy: "Gedächtnis kopieren", - Reset: "Sitzung zurücksetzen", - ResetConfirm: - "Das Zurücksetzen löscht den aktuellen Gesprächsverlauf und das Langzeit-Gedächtnis. Möchten Sie wirklich zurücksetzen?", + Title: "Historische Zusammenfassung", + EmptyContent: + "Gesprächsinhalte sind zu kurz, keine Zusammenfassung erforderlich", + Send: "Chatverlauf automatisch komprimieren und als Kontext senden", + Copy: "Zusammenfassung kopieren", + Reset: "[nicht verwendet]", + ResetConfirm: "Zusammenfassung löschen bestätigen?", }, Home: { - NewChat: "Neuer Chat", - DeleteChat: "Bestätigen Sie, um das ausgewählte Gespräch zu löschen?", - DeleteToast: "Chat gelöscht", - Revert: "Zurücksetzen", + NewChat: "Neues Gespräch", + DeleteChat: "Bestätigen Sie das Löschen des ausgewählten Gesprächs?", + DeleteToast: "Gespräch gelöscht", + Revert: "Rückgängig machen", }, Settings: { Title: "Einstellungen", - SubTitle: "Alle Einstellungen", + SubTitle: "Alle Einstellungsmöglichkeiten", + Danger: { + Reset: { + Title: "Alle Einstellungen zurücksetzen", + SubTitle: "Setzt alle Einstellungen auf die Standardwerte zurück", + Action: "Jetzt zurücksetzen", + Confirm: "Bestätigen Sie das Zurücksetzen aller Einstellungen?", + }, + Clear: { + Title: "Alle Daten löschen", + SubTitle: "Löscht alle Chats und Einstellungsdaten", + Action: "Jetzt löschen", + Confirm: + "Bestätigen Sie das Löschen aller Chats und Einstellungsdaten?", + }, + }, Lang: { - Name: "Language", // ATTENTION: if you wanna add a new translation, please do not translate this value, leave it as `Language` + Name: "Sprache", // ACHTUNG: Wenn Sie eine neue Übersetzung hinzufügen möchten, übersetzen Sie diesen Wert bitte nicht, lassen Sie ihn als `Sprache` All: "Alle Sprachen", }, Avatar: "Avatar", FontSize: { Title: "Schriftgröße", - SubTitle: "Schriftgröße des Chat-Inhalts anpassen", + SubTitle: "Schriftgröße des Chat-Inhalts", }, FontFamily: { Title: "Chat-Schriftart", @@ -78,164 +162,404 @@ const de: PartialLocaleType = { Placeholder: "Schriftartname", }, InjectSystemPrompts: { - Title: "System-Prompts einfügen", + Title: "Systemweite Eingabeaufforderungen einfügen", SubTitle: - "Erzwingt das Hinzufügen eines simulierten systemweiten Prompts von ChatGPT am Anfang der Nachrichtenliste bei jeder Anfrage", + "Fügt jeder Nachricht am Anfang der Nachrichtenliste eine simulierte ChatGPT-Systemaufforderung hinzu", }, + InputTemplate: { + Title: "Benutzer-Eingabeverarbeitung", + SubTitle: + "Die neueste Nachricht des Benutzers wird in diese Vorlage eingefügt", + }, + Update: { - Version: (x: string) => `Version: ${x}`, - IsLatest: "Neueste Version", - CheckUpdate: "Update prüfen", - IsChecking: "Update wird geprüft...", + Version: (x: string) => `Aktuelle Version: ${x}`, + IsLatest: "Bereits die neueste Version", + CheckUpdate: "Auf Updates überprüfen", + IsChecking: "Überprüfe auf Updates...", FoundUpdate: (x: string) => `Neue Version gefunden: ${x}`, - GoToUpdate: "Aktualisieren", + GoToUpdate: "Zum Update gehen", }, - SendKey: "Senden-Taste", - Theme: "Erscheinungsbild", - TightBorder: "Enger Rahmen", + SendKey: "Sende-Taste", + Theme: "Thema", + TightBorder: "Randloser Modus", SendPreviewBubble: { - Title: "Vorschau-Bubble senden", - SubTitle: "Preview markdown in bubble", + Title: "Vorschau-Bubble", + SubTitle: "Markdown-Inhalt in der Vorschau-Bubble anzeigen", + }, + AutoGenerateTitle: { + Title: "Titel automatisch generieren", + SubTitle: + "Basierend auf dem Chat-Inhalt einen passenden Titel generieren", + }, + Sync: { + CloudState: "Cloud-Daten", + NotSyncYet: "Noch nicht synchronisiert", + Success: "Synchronisation erfolgreich", + Fail: "Synchronisation fehlgeschlagen", + + Config: { + Modal: { + Title: "Cloud-Synchronisation konfigurieren", + Check: "Verfügbarkeit überprüfen", + }, + SyncType: { + Title: "Synchronisationstyp", + SubTitle: "Wählen Sie den bevorzugten Synchronisationsserver aus", + }, + Proxy: { + Title: "Proxy aktivieren", + SubTitle: + "Beim Synchronisieren im Browser muss ein Proxy aktiviert werden, um Cross-Origin-Beschränkungen zu vermeiden", + }, + ProxyUrl: { + Title: "Proxy-Adresse", + SubTitle: "Nur für projektinterne Cross-Origin-Proxy", + }, + + WebDav: { + Endpoint: "WebDAV-Adresse", + UserName: "Benutzername", + Password: "Passwort", + }, + + UpStash: { + Endpoint: "UpStash Redis REST-Url", + UserName: "Sicherungsname", + Password: "UpStash Redis REST-Token", + }, + }, + + LocalState: "Lokale Daten", + Overview: (overview: any) => { + return `${overview.chat} Chats, ${overview.message} Nachrichten, ${overview.prompt} Eingabeaufforderungen, ${overview.mask} Masken`; + }, + ImportFailed: "Import fehlgeschlagen", }, Mask: { Splash: { - Title: "Mask Splash Screen", - SubTitle: "Show a mask splash screen before starting new chat", + Title: "Masken-Startseite", + SubTitle: + "Zeige die Masken-Startseite beim Erstellen eines neuen Chats", + }, + Builtin: { + Title: "Eingebaute Masken ausblenden", + SubTitle: "Blendet eingebaute Masken in allen Maskenlisten aus", }, }, Prompt: { Disable: { - Title: "Autovervollständigung deaktivieren", - SubTitle: "Autovervollständigung mit / starten", + Title: "Automatische Eingabeaufforderung deaktivieren", + SubTitle: + "Geben Sie am Anfang des Eingabefelds / ein, um die automatische Vervollständigung auszulösen", }, - List: "Prompt-Liste", + List: "Benutzerdefinierte Eingabeaufforderungsliste", ListCount: (builtin: number, custom: number) => - `${builtin} integriert, ${custom} benutzerdefiniert`, + `Eingebaut ${builtin} Stück, Benutzerdefiniert ${custom} Stück`, Edit: "Bearbeiten", Modal: { - Title: "Prompt List", - Add: "Add One", - Search: "Search Prompts", + Title: "Eingabeaufforderungsliste", + Add: "Neu erstellen", + Search: "Eingabeaufforderungen suchen", }, EditModal: { - Title: "Edit Prompt", + Title: "Eingabeaufforderung bearbeiten", }, }, HistoryCount: { - Title: "Anzahl der angehängten Nachrichten", - SubTitle: "Anzahl der pro Anfrage angehängten gesendeten Nachrichten", + Title: "Anzahl der historischen Nachrichten", + SubTitle: + "Anzahl der historischen Nachrichten, die bei jeder Anfrage mitgesendet werden", }, CompressThreshold: { - Title: "Schwellenwert für Verlaufskomprimierung", + Title: "Komprimierungsschwelle für historische Nachrichtenlänge", SubTitle: - "Komprimierung, wenn die Länge der unkomprimierten Nachrichten den Wert überschreitet", + "Wenn die unkomprimierten historischen Nachrichten diesen Wert überschreiten, wird komprimiert", }, Usage: { - Title: "Kontostand", + Title: "Guthabenabfrage", SubTitle(used: any, total: any) { - return `Diesen Monat ausgegeben $${used}, Abonnement $${total}`; + return `In diesem Monat verwendet $${used}, Abonnement insgesamt $${total}`; }, - IsChecking: "Wird überprüft...", - Check: "Erneut prüfen", - NoAccess: "API-Schlüssel eingeben, um den Kontostand zu überprüfen", + IsChecking: "Wird überprüft…", + Check: "Erneut überprüfen", + NoAccess: + "Geben Sie API-Schlüssel oder Zugangspasswort ein, um das Guthaben einzusehen", }, + + Access: { + AccessCode: { + Title: "Zugangscode", + SubTitle: + "Der Administrator hat die verschlüsselte Zugriffskontrolle aktiviert", + Placeholder: "Geben Sie den Zugangscode ein", + }, + CustomEndpoint: { + Title: "Benutzerdefinierte Schnittstelle", + SubTitle: "Benutzerdefinierte Azure- oder OpenAI-Dienste verwenden", + }, + Provider: { + Title: "Modellanbieter", + SubTitle: "Wechseln Sie zu verschiedenen Anbietern", + }, + OpenAI: { + ApiKey: { + Title: "API-Schlüssel", + SubTitle: + "Verwenden Sie benutzerdefinierten OpenAI-Schlüssel, um Passwortzugangsbeschränkungen zu umgehen", + Placeholder: "OpenAI API-Schlüssel", + }, + + Endpoint: { + Title: "Schnittstellenadresse", + SubTitle: "Neben der Standardadresse muss http(s):// enthalten sein", + }, + }, + Azure: { + ApiKey: { + Title: "Schnittstellenschlüssel", + SubTitle: + "Verwenden Sie benutzerdefinierten Azure-Schlüssel, um Passwortzugangsbeschränkungen zu umgehen", + Placeholder: "Azure API-Schlüssel", + }, + + Endpoint: { + Title: "Schnittstellenadresse", + SubTitle: "Beispiel:", + }, + + ApiVerion: { + Title: "Schnittstellenversion (azure api version)", + SubTitle: "Wählen Sie eine spezifische Teilversion aus", + }, + }, + Anthropic: { + ApiKey: { + Title: "Schnittstellenschlüssel", + SubTitle: + "Verwenden Sie benutzerdefinierten Anthropic-Schlüssel, um Passwortzugangsbeschränkungen zu umgehen", + Placeholder: "Anthropic API-Schlüssel", + }, + + Endpoint: { + Title: "Schnittstellenadresse", + SubTitle: "Beispiel:", + }, + + ApiVerion: { + Title: "Schnittstellenversion (claude api version)", + SubTitle: "Wählen Sie eine spezifische API-Version aus", + }, + }, + Google: { + ApiKey: { + Title: "API-Schlüssel", + SubTitle: "Holen Sie sich Ihren API-Schlüssel von Google AI", + Placeholder: "Geben Sie Ihren Google AI Studio API-Schlüssel ein", + }, + + Endpoint: { + Title: "Endpunktadresse", + SubTitle: "Beispiel:", + }, + + ApiVersion: { + Title: "API-Version (nur für gemini-pro)", + SubTitle: "Wählen Sie eine spezifische API-Version aus", + }, + GoogleSafetySettings: { + Title: "Google Sicherheitsfilterstufe", + SubTitle: "Inhaltfilterstufe einstellen", + }, + }, + Baidu: { + ApiKey: { + Title: "API-Schlüssel", + SubTitle: "Verwenden Sie benutzerdefinierten Baidu API-Schlüssel", + Placeholder: "Baidu API-Schlüssel", + }, + SecretKey: { + Title: "Geheimschlüssel", + SubTitle: "Verwenden Sie benutzerdefinierten Baidu Geheimschlüssel", + Placeholder: "Baidu Geheimschlüssel", + }, + Endpoint: { + Title: "Schnittstellenadresse", + SubTitle: + "Keine benutzerdefinierten Adressen unterstützen, konfigurieren Sie in .env", + }, + }, + ByteDance: { + ApiKey: { + Title: "Schnittstellenschlüssel", + SubTitle: "Verwenden Sie benutzerdefinierten ByteDance API-Schlüssel", + Placeholder: "ByteDance API-Schlüssel", + }, + Endpoint: { + Title: "Schnittstellenadresse", + SubTitle: "Beispiel:", + }, + }, + Alibaba: { + ApiKey: { + Title: "Schnittstellenschlüssel", + SubTitle: + "Verwenden Sie benutzerdefinierten Alibaba Cloud API-Schlüssel", + Placeholder: "Alibaba Cloud API-Schlüssel", + }, + Endpoint: { + Title: "Schnittstellenadresse", + SubTitle: "Beispiel:", + }, + }, + CustomModel: { + Title: "Benutzerdefinierter Modellname", + SubTitle: + "Fügen Sie benutzerdefinierte Modelloptionen hinzu, getrennt durch Kommas", + }, + }, + Model: "Modell", Temperature: { - Title: "Temperature", //Temperatur - SubTitle: "Ein größerer Wert führt zu zufälligeren Antworten", + Title: "Zufälligkeit (temperature)", + SubTitle: "Je höher der Wert, desto zufälliger die Antwort", + }, + TopP: { + Title: "Kern-Sampling (top_p)", + SubTitle: + "Ähnlich der Zufälligkeit, aber nicht zusammen mit Zufälligkeit ändern", }, MaxTokens: { - Title: "Max Tokens", //Maximale Token - SubTitle: "Maximale Anzahl der Anfrage- plus Antwort-Token", + Title: "Maximale Token-Anzahl pro Antwort", + SubTitle: "Maximale Anzahl der Tokens pro Interaktion", }, PresencePenalty: { - Title: "Presence Penalty", //Anwesenheitsstrafe + Title: "Themenfrische (presence_penalty)", SubTitle: - "Ein größerer Wert erhöht die Wahrscheinlichkeit, dass über neue Themen gesprochen wird", + "Je höher der Wert, desto wahrscheinlicher wird auf neue Themen eingegangen", }, FrequencyPenalty: { - Title: "Frequency Penalty", // HäufigkeitStrafe + Title: "Häufigkeitsstrafe (frequency_penalty)", SubTitle: - "Ein größerer Wert, der die Wahrscheinlichkeit verringert, dass dieselbe Zeile wiederholt wird", + "Je höher der Wert, desto wahrscheinlicher werden wiederholte Wörter reduziert", }, }, Store: { - DefaultTopic: "Neues Gespräch", - BotHello: "Hallo! Wie kann ich Ihnen heute helfen?", + DefaultTopic: "Neuer Chat", + BotHello: "Wie kann ich Ihnen helfen?", Error: - "Etwas ist schief gelaufen, bitte versuchen Sie es später noch einmal.", + "Ein Fehler ist aufgetreten, bitte versuchen Sie es später noch einmal", Prompt: { History: (content: string) => - "Dies ist eine Zusammenfassung des Chatverlaufs zwischen dem KI und dem Benutzer als Rückblick: " + + "Dies ist eine Zusammenfassung des bisherigen Chats als Hintergrundinformation: " + content, Topic: - "Bitte erstellen Sie einen vier- bis fünfwörtigen Titel, der unser Gespräch zusammenfasst, ohne Einleitung, Zeichensetzung, Anführungszeichen, Punkte, Symbole oder zusätzlichen Text. Entfernen Sie Anführungszeichen.", + "Geben Sie ein kurzes Thema in vier bis fünf Wörtern zurück, ohne Erklärungen, ohne Satzzeichen, ohne Füllwörter, ohne zusätzliche Texte und ohne Fettdruck. Wenn kein Thema vorhanden ist, geben Sie bitte „Allgemeines Gespräch“ zurück.", Summarize: - "Fassen Sie unsere Diskussion kurz in 200 Wörtern oder weniger zusammen, um sie als Pronpt für zukünftige Gespräche zu verwenden.", + "Fassen Sie den Gesprächsinhalt zusammen, um als Kontextaufforderung für den nächsten Schritt zu dienen, halten Sie es unter 200 Zeichen", }, }, Copy: { - Success: "In die Zwischenablage kopiert", + Success: "In die Zwischenablage geschrieben", Failed: - "Kopieren fehlgeschlagen, bitte geben Sie die Berechtigung zum Zugriff auf die Zwischenablage frei", + "Kopieren fehlgeschlagen, bitte erlauben Sie Zugriff auf die Zwischenablage", + }, + Download: { + Success: "Inhalt wurde in Ihrem Verzeichnis heruntergeladen.", + Failed: "Download fehlgeschlagen.", }, Context: { - Toast: (x: any) => `Mit ${x} Kontext-Prompts`, - Edit: "Kontext- und Gedächtnis-Prompts", - Add: "Hinzufügen", + Toast: (x: any) => `Beinhaltet ${x} vordefinierte Eingabeaufforderungen`, + Edit: "Aktuelle Gesprächseinstellungen", + Add: "Neues Gespräch hinzufügen", + Clear: "Kontext gelöscht", + Revert: "Kontext wiederherstellen", }, Plugin: { - Name: "Plugin", + Name: "Plugins", }, FineTuned: { - Sysmessage: "Du bist ein Assistent, der", + Sysmessage: "Du bist ein Assistent", }, Mask: { - Name: "Mask", + Name: "Masken", Page: { - Title: "Prompt Template", - SubTitle: (count: number) => `${count} prompt templates`, - Search: "Search Templates", - Create: "Create", + Title: "Vordefinierte Rollenmasken", + SubTitle: (count: number) => + `${count} vordefinierte Rollenbeschreibungen`, + Search: "Rollenmasken suchen", + Create: "Neu erstellen", }, Item: { - Info: (count: number) => `${count} prompts`, - Chat: "Chat", - View: "View", - Edit: "Edit", - Delete: "Delete", - DeleteConfirm: "Confirm to delete?", + Info: (count: number) => `Beinhaltet ${count} vordefinierte Gespräche`, + Chat: "Gespräch", + View: "Anzeigen", + Edit: "Bearbeiten", + Delete: "Löschen", + DeleteConfirm: "Bestätigen Sie das Löschen?", }, EditModal: { Title: (readonly: boolean) => - `Edit Prompt Template ${readonly ? "(readonly)" : ""}`, - Download: "Download", - Clone: "Clone", + `Vordefinierte Maske bearbeiten ${readonly ? "(Nur lesen)" : ""}`, + Download: "Vorgabe herunterladen", + Clone: "Vorgabe klonen", }, Config: { - Avatar: "Bot Avatar", - Name: "Bot Name", + Avatar: "Rollen-Avatar", + Name: "Rollenname", + Sync: { + Title: "Globale Einstellungen verwenden", + SubTitle: + "Soll das aktuelle Gespräch die globalen Modelleinstellungen verwenden?", + Confirm: + "Die benutzerdefinierten Einstellungen des aktuellen Gesprächs werden automatisch überschrieben. Bestätigen Sie, dass Sie die globalen Einstellungen aktivieren möchten?", + }, + HideContext: { + Title: "Vordefinierte Gespräche ausblenden", + SubTitle: + "Nach dem Ausblenden werden vordefinierte Gespräche nicht mehr im Chat angezeigt", + }, + Share: { + Title: "Diese Maske teilen", + SubTitle: "Generieren Sie einen Direktlink zu dieser Maske", + Action: "Link kopieren", + }, }, }, NewChat: { - Return: "Return", - Skip: "Skip", - Title: "Pick a Mask", - SubTitle: "Chat with the Soul behind the Mask", - More: "Find More", - NotShow: "Not Show Again", - ConfirmNoShow: "Confirm to disable?You can enable it in settings later.", + Return: "Zurück", + Skip: "Direkt beginnen", + NotShow: "Nicht mehr anzeigen", + ConfirmNoShow: + "Bestätigen Sie die Deaktivierung? Nach der Deaktivierung können Sie jederzeit in den Einstellungen wieder aktivieren.", + Title: "Wählen Sie eine Maske aus", + SubTitle: + "Starten Sie jetzt und lassen Sie sich von den Gedanken hinter der Maske inspirieren", + More: "Alle anzeigen", + }, + + URLCommand: { + Code: "Ein Zugangscode wurde im Link gefunden. Möchten Sie diesen automatisch einfügen?", + Settings: + "Vordefinierte Einstellungen wurden im Link gefunden. Möchten Sie diese automatisch einfügen?", }, UI: { - Confirm: "Confirm", - Cancel: "Cancel", - Close: "Close", - Create: "Create", - Edit: "Edit", + Confirm: "Bestätigen", + Cancel: "Abbrechen", + Close: "Schließen", + Create: "Neu erstellen", + Edit: "Bearbeiten", + Export: "Exportieren", + Import: "Importieren", + Sync: "Synchronisieren", + Config: "Konfigurieren", }, Exporter: { + Description: { + Title: "Nur Nachrichten nach dem Löschen des Kontexts werden angezeigt", + }, Model: "Modell", Messages: "Nachrichten", Topic: "Thema", diff --git a/app/locales/es.ts b/app/locales/es.ts index f595fa3fc4c..f904304c685 100644 --- a/app/locales/es.ts +++ b/app/locales/es.ts @@ -1,75 +1,163 @@ import { SubmitKey } from "../store/config"; import type { PartialLocaleType } from "./index"; +import { getClientConfig } from "../config/client"; + +const isApp = !!getClientConfig()?.isApp; const es: PartialLocaleType = { WIP: "En construcción...", Error: { - Unauthorized: - "Acceso no autorizado, por favor ingrese el código de acceso en la [página](/#/auth) de configuración.", + Unauthorized: isApp + ? "Se detectó una clave API inválida. Por favor, ve a la página de [Configuración](/#/settings) para verificar si la clave API está configurada correctamente." + : "La contraseña de acceso es incorrecta o está vacía. Por favor, ve a la página de [Iniciar sesión](/#/auth) para ingresar la contraseña correcta, o en la página de [Configuración](/#/settings) para introducir tu propia clave API de OpenAI.", + }, + Auth: { + Title: "Se requiere contraseña", + Tips: "El administrador ha habilitado la verificación de contraseña. Introduce el código de acceso a continuación", + SubTips: "O ingresa tu clave API de OpenAI o Google", + Input: "Introduce el código de acceso aquí", + Confirm: "Confirmar", + Later: "Más tarde", }, ChatItem: { - ChatItemCount: (count: number) => `${count} mensajes`, + ChatItemCount: (count: number) => `${count} conversaciones`, }, Chat: { - SubTitle: (count: number) => `${count} mensajes con ChatGPT`, + SubTitle: (count: number) => `Total de ${count} conversaciones`, + EditMessage: { + Title: "Editar registro de mensajes", + Topic: { + Title: "Tema de la conversación", + SubTitle: "Cambiar el tema de la conversación actual", + }, + }, Actions: { - ChatList: "Ir a la lista de chats", - CompressedHistory: "Historial de memoria comprimido", - Export: "Exportar todos los mensajes como Markdown", + ChatList: "Ver lista de mensajes", + CompressedHistory: "Ver historial de Prompts comprimidos", + Export: "Exportar historial de chat", Copy: "Copiar", Stop: "Detener", Retry: "Reintentar", - Delete: "Delete", + Pin: "Fijar", + PinToastContent: + "Se ha fijado 1 conversación a los prompts predeterminados", + PinToastAction: "Ver", + Delete: "Eliminar", + Edit: "Editar", + }, + Commands: { + new: "Nueva conversación", + newm: "Nueva conversación desde la máscara", + next: "Siguiente conversación", + prev: "Conversación anterior", + clear: "Limpiar contexto", + del: "Eliminar conversación", + }, + InputActions: { + Stop: "Detener respuesta", + ToBottom: "Ir al más reciente", + Theme: { + auto: "Tema automático", + light: "Modo claro", + dark: "Modo oscuro", + }, + Prompt: "Comandos rápidos", + Masks: "Todas las máscaras", + Clear: "Limpiar chat", + Settings: "Configuración de conversación", + UploadImage: "Subir imagen", }, - Rename: "Renombrar chat", - Typing: "Escribiendo...", + Rename: "Renombrar conversación", + Typing: "Escribiendo…", Input: (submitKey: string) => { - var inputHints = `Escribe algo y presiona ${submitKey} para enviar`; + var inputHints = `${submitKey} para enviar`; if (submitKey === String(SubmitKey.Enter)) { - inputHints += ", presiona Shift + Enter para nueva línea"; + inputHints += ",Shift + Enter para nueva línea"; } - return inputHints; + return ( + inputHints + ",/ para activar autocompletado,: para activar comandos" + ); }, Send: "Enviar", Config: { - Reset: "Reset to Default", - SaveAs: "Save as Mask", + Reset: "Borrar memoria", + SaveAs: "Guardar como máscara", }, + IsContext: "Prompt predeterminado", }, Export: { - Title: "Todos los mensajes", + Title: "Compartir historial de chat", Copy: "Copiar todo", - Download: "Descargar", - MessageFromYou: "Mensaje de ti", - MessageFromChatGPT: "Mensaje de ChatGPT", + Download: "Descargar archivo", + Share: "Compartir en ShareGPT", + MessageFromYou: "Usuario", + MessageFromChatGPT: "ChatGPT", + Format: { + Title: "Formato de exportación", + SubTitle: "Puedes exportar como texto Markdown o imagen PNG", + }, + IncludeContext: { + Title: "Incluir contexto de máscara", + SubTitle: "Mostrar contexto de máscara en los mensajes", + }, + Steps: { + Select: "Seleccionar", + Preview: "Vista previa", + }, + Image: { + Toast: "Generando captura de pantalla", + Modal: "Mantén presionado o haz clic derecho para guardar la imagen", + }, + }, + Select: { + Search: "Buscar mensajes", + All: "Seleccionar todo", + Latest: "Últimos mensajes", + Clear: "Limpiar selección", }, Memory: { - Title: "Historial de memoria", - EmptyContent: "Aún no hay nada.", - Copy: "Copiar todo", - Send: "Send Memory", - Reset: "Reset Session", - ResetConfirm: - "Resetting will clear the current conversation history and historical memory. Are you sure you want to reset?", + Title: "Resumen histórico", + EmptyContent: + "El contenido de la conversación es demasiado corto para resumir", + Send: "Comprimir automáticamente el historial de chat y enviarlo como contexto", + Copy: "Copiar resumen", + Reset: "[no usado]", + ResetConfirm: "¿Confirmar para borrar el resumen histórico?", }, Home: { - NewChat: "Nuevo chat", - DeleteChat: "¿Confirmar eliminación de la conversación seleccionada?", - DeleteToast: "Chat Deleted", - Revert: "Revert", + NewChat: "Nueva conversación", + DeleteChat: "¿Confirmar la eliminación de la conversación seleccionada?", + DeleteToast: "Conversación eliminada", + Revert: "Deshacer", }, Settings: { Title: "Configuración", - SubTitle: "Todas las configuraciones", + SubTitle: "Todas las opciones de configuración", + Danger: { + Reset: { + Title: "Restablecer todas las configuraciones", + SubTitle: + "Restablecer todas las configuraciones a los valores predeterminados", + Action: "Restablecer ahora", + Confirm: "¿Confirmar el restablecimiento de todas las configuraciones?", + }, + Clear: { + Title: "Eliminar todos los datos", + SubTitle: "Eliminar todos los chats y datos de configuración", + Action: "Eliminar ahora", + Confirm: + "¿Confirmar la eliminación de todos los chats y datos de configuración?", + }, + }, Lang: { - Name: "Language", // ATTENTION: if you wanna add a new translation, please do not translate this value, leave it as `Language` + Name: "Language", // ATENCIÓN: si deseas agregar una nueva traducción, por favor no traduzcas este valor, déjalo como `Language` All: "Todos los idiomas", }, Avatar: "Avatar", FontSize: { Title: "Tamaño de fuente", - SubTitle: "Ajustar el tamaño de fuente del contenido del chat", + SubTitle: "Tamaño de la fuente del contenido del chat", }, FontFamily: { Title: "Fuente del Chat", @@ -78,168 +166,400 @@ const es: PartialLocaleType = { Placeholder: "Nombre de la Fuente", }, InjectSystemPrompts: { - Title: "Inyectar Prompts del Sistema", + Title: "Inyectar mensajes del sistema", SubTitle: - "Agregar forzosamente un prompt de sistema simulado de ChatGPT al comienzo de la lista de mensajes en cada solicitud", + "Forzar la adición de un mensaje del sistema simulado de ChatGPT al principio de cada lista de mensajes", }, + InputTemplate: { + Title: "Preprocesamiento de entrada del usuario", + SubTitle: "El último mensaje del usuario se rellenará en esta plantilla", + }, + Update: { - Version: (x: string) => `Versión: ${x}`, - IsLatest: "Última versión", + Version: (x: string) => `Versión actual: ${x}`, + IsLatest: "Ya estás en la última versión", CheckUpdate: "Buscar actualizaciones", IsChecking: "Buscando actualizaciones...", - FoundUpdate: (x: string) => `Se encontró una nueva versión: ${x}`, - GoToUpdate: "Actualizar", + FoundUpdate: (x: string) => `Nueva versión encontrada: ${x}`, + GoToUpdate: "Ir a actualizar", }, - SendKey: "Tecla de envío", + SendKey: "Tecla de enviar", Theme: "Tema", - TightBorder: "Borde ajustado", + TightBorder: "Modo sin borde", SendPreviewBubble: { - Title: "Enviar burbuja de vista previa", - SubTitle: "Preview markdown in bubble", + Title: "Vista previa del globo", + SubTitle: + "Previsualiza el contenido Markdown en un globo de vista previa", + }, + AutoGenerateTitle: { + Title: "Generar título automáticamente", + SubTitle: "Generar un título adecuado basado en el contenido del chat", + }, + Sync: { + CloudState: "Datos en la nube", + NotSyncYet: "Aún no se ha sincronizado", + Success: "Sincronización exitosa", + Fail: "Sincronización fallida", + + Config: { + Modal: { + Title: "Configurar sincronización en la nube", + Check: "Verificar disponibilidad", + }, + SyncType: { + Title: "Tipo de sincronización", + SubTitle: "Selecciona el servidor de sincronización preferido", + }, + Proxy: { + Title: "Habilitar proxy", + SubTitle: + "Debes habilitar el proxy para sincronizar en el navegador y evitar restricciones de CORS", + }, + ProxyUrl: { + Title: "Dirección del proxy", + SubTitle: "Solo para el proxy CORS incluido en este proyecto", + }, + + WebDav: { + Endpoint: "Dirección WebDAV", + UserName: "Nombre de usuario", + Password: "Contraseña", + }, + + UpStash: { + Endpoint: "URL de REST de UpStash Redis", + UserName: "Nombre de respaldo", + Password: "Token de REST de UpStash Redis", + }, + }, + + LocalState: "Datos locales", + Overview: (overview: any) => { + return `${overview.chat} conversaciones, ${overview.message} mensajes, ${overview.prompt} prompts, ${overview.mask} máscaras`; + }, + ImportFailed: "Importación fallida", }, Mask: { Splash: { - Title: "Mask Splash Screen", - SubTitle: "Show a mask splash screen before starting new chat", + Title: "Pantalla de inicio de máscara", + SubTitle: + "Mostrar la pantalla de inicio de la máscara al iniciar un nuevo chat", + }, + Builtin: { + Title: "Ocultar máscaras integradas", + SubTitle: + "Ocultar las máscaras integradas en todas las listas de máscaras", }, }, Prompt: { Disable: { - Title: "Desactivar autocompletado", - SubTitle: "Escribe / para activar el autocompletado", + Title: "Deshabilitar autocompletado de prompts", + SubTitle: + "Escribe / al principio del campo de entrada para activar el autocompletado", }, - List: "Lista de autocompletado", + List: "Lista de prompts personalizados", ListCount: (builtin: number, custom: number) => - `${builtin} incorporado, ${custom} definido por el usuario`, + `Integrados ${builtin}, definidos por el usuario ${custom}`, Edit: "Editar", Modal: { - Title: "Prompt List", - Add: "Add One", - Search: "Search Prompts", + Title: "Lista de prompts", + Add: "Nuevo", + Search: "Buscar prompts", }, EditModal: { - Title: "Edit Prompt", + Title: "Editar prompt", }, }, HistoryCount: { - Title: "Cantidad de mensajes adjuntos", - SubTitle: "Número de mensajes enviados adjuntos por solicitud", + Title: "Número de mensajes históricos adjuntos", + SubTitle: "Número de mensajes históricos enviados con cada solicitud", }, CompressThreshold: { - Title: "Umbral de compresión de historial", + Title: "Umbral de compresión de mensajes históricos", SubTitle: - "Se comprimirán los mensajes si la longitud de los mensajes no comprimidos supera el valor", + "Cuando los mensajes históricos no comprimidos superan este valor, se realizará la compresión", }, Usage: { - Title: "Saldo de la cuenta", + Title: "Consulta de saldo", SubTitle(used: any, total: any) { - return `Usado $${used}, subscription $${total}`; + return `Saldo usado este mes: $${used}, total suscrito: $${total}`; }, - IsChecking: "Comprobando...", - Check: "Comprobar de nuevo", - NoAccess: "Introduzca la clave API para comprobar el saldo", + IsChecking: "Verificando…", + Check: "Revisar de nuevo", + NoAccess: + "Introduce la clave API o la contraseña de acceso para ver el saldo", }, - Model: "Modelo", + Access: { + AccessCode: { + Title: "Contraseña de acceso", + SubTitle: "El administrador ha habilitado el acceso encriptado", + Placeholder: "Introduce la contraseña de acceso", + }, + CustomEndpoint: { + Title: "Interfaz personalizada", + SubTitle: "¿Usar servicios personalizados de Azure u OpenAI?", + }, + Provider: { + Title: "Proveedor de modelos", + SubTitle: "Cambiar entre diferentes proveedores", + }, + OpenAI: { + ApiKey: { + Title: "Clave API", + SubTitle: + "Usa una clave API de OpenAI personalizada para omitir la restricción de acceso por contraseña", + Placeholder: "Clave API de OpenAI", + }, + + Endpoint: { + Title: "Dirección del endpoint", + SubTitle: + "Debe incluir http(s):// además de la dirección predeterminada", + }, + }, + Azure: { + ApiKey: { + Title: "Clave de interfaz", + SubTitle: + "Usa una clave de Azure personalizada para omitir la restricción de acceso por contraseña", + Placeholder: "Clave API de Azure", + }, + + Endpoint: { + Title: "Dirección del endpoint", + SubTitle: "Ejemplo:", + }, + + ApiVerion: { + Title: "Versión de la interfaz (versión de api de azure)", + SubTitle: "Selecciona una versión específica", + }, + }, + Anthropic: { + ApiKey: { + Title: "Clave de interfaz", + SubTitle: + "Usa una clave de Anthropic personalizada para omitir la restricción de acceso por contraseña", + Placeholder: "Clave API de Anthropic", + }, + + Endpoint: { + Title: "Dirección del endpoint", + SubTitle: "Ejemplo:", + }, + + ApiVerion: { + Title: "Versión de la interfaz (versión de claude api)", + SubTitle: "Selecciona una versión específica de la API", + }, + }, + Google: { + ApiKey: { + Title: "Clave API", + SubTitle: "Obtén tu clave API de Google AI", + Placeholder: "Introduce tu clave API de Google AI Studio", + }, + + Endpoint: { + Title: "Dirección del endpoint", + SubTitle: "Ejemplo:", + }, + + ApiVersion: { + Title: "Versión de la API (solo para gemini-pro)", + SubTitle: "Selecciona una versión específica de la API", + }, + GoogleSafetySettings: { + Title: "Nivel de filtrado de seguridad de Google", + SubTitle: "Configura el nivel de filtrado de contenido", + }, + }, + Baidu: { + ApiKey: { + Title: "Clave API", + SubTitle: "Usa una clave API de Baidu personalizada", + Placeholder: "Clave API de Baidu", + }, + SecretKey: { + Title: "Clave secreta", + SubTitle: "Usa una clave secreta de Baidu personalizada", + Placeholder: "Clave secreta de Baidu", + }, + Endpoint: { + Title: "Dirección del endpoint", + SubTitle: + "No admite personalización, dirígete a .env para configurarlo", + }, + }, + ByteDance: { + ApiKey: { + Title: "Clave de interfaz", + SubTitle: "Usa una clave API de ByteDance personalizada", + Placeholder: "Clave API de ByteDance", + }, + Endpoint: { + Title: "Dirección del endpoint", + SubTitle: "Ejemplo:", + }, + }, + Alibaba: { + ApiKey: { + Title: "Clave de interfaz", + SubTitle: "Usa una clave API de Alibaba Cloud personalizada", + Placeholder: "Clave API de Alibaba Cloud", + }, + Endpoint: { + Title: "Dirección del endpoint", + SubTitle: "Ejemplo:", + }, + }, + CustomModel: { + Title: "Nombre del modelo personalizado", + SubTitle: + "Agrega opciones de modelos personalizados, separados por comas", + }, + }, + + Model: "Modelo (model)", Temperature: { - Title: "Temperatura", - SubTitle: "Un valor mayor genera una salida más aleatoria", + Title: "Aleatoriedad (temperature)", + SubTitle: "Cuanto mayor sea el valor, más aleatorio será el resultado", + }, + TopP: { + Title: "Muestreo por núcleo (top_p)", + SubTitle: "Similar a la aleatoriedad, pero no cambies ambos a la vez", }, MaxTokens: { - Title: "Máximo de tokens", - SubTitle: "Longitud máxima de tokens de entrada y tokens generados", + Title: "Límite de tokens por respuesta (max_tokens)", + SubTitle: "Número máximo de tokens utilizados en una sola interacción", }, PresencePenalty: { - Title: "Penalización de presencia", + Title: "Novedad de temas (presence_penalty)", SubTitle: - "Un valor mayor aumenta la probabilidad de hablar sobre nuevos temas", + "Cuanto mayor sea el valor, más probable es que se amplíen a nuevos temas", }, FrequencyPenalty: { - Title: "Penalización de frecuencia", + Title: "Penalización de frecuencia (frequency_penalty)", SubTitle: - "Un valor mayor que disminuye la probabilidad de repetir la misma línea", + "Cuanto mayor sea el valor, más probable es que se reduzcan las palabras repetidas", }, }, Store: { - DefaultTopic: "Nueva conversación", - BotHello: "¡Hola! ¿Cómo puedo ayudarte hoy?", - Error: "Algo salió mal, por favor intenta nuevamente más tarde.", + DefaultTopic: "Nuevo chat", + BotHello: "¿En qué puedo ayudarte?", + Error: "Hubo un error, inténtalo de nuevo más tarde", Prompt: { History: (content: string) => - "Este es un resumen del historial del chat entre la IA y el usuario como recapitulación: " + - content, + "Este es un resumen del chat histórico como referencia: " + content, Topic: - "Por favor, genera un título de cuatro a cinco palabras que resuma nuestra conversación sin ningún inicio, puntuación, comillas, puntos, símbolos o texto adicional. Elimina las comillas que lo envuelven.", + "Devuelve un tema breve de esta frase en cuatro a cinco palabras, sin explicación, sin puntuación, sin muletillas, sin texto adicional, sin negritas. Si no hay tema, devuelve 'charlas casuales'", Summarize: - "Resuma nuestra discusión brevemente en 200 caracteres o menos para usarlo como un recordatorio para futuros contextos.", + "Resume brevemente el contenido de la conversación para usar como un prompt de contexto, manteniéndolo dentro de 200 palabras", }, }, Copy: { Success: "Copiado al portapapeles", - Failed: - "La copia falló, por favor concede permiso para acceder al portapapeles", + Failed: "Error al copiar, por favor otorga permisos al portapapeles", + }, + Download: { + Success: "Contenido descargado en tu directorio.", + Failed: "Error al descargar.", }, Context: { - Toast: (x: any) => `With ${x} contextual prompts`, - Edit: "Contextual and Memory Prompts", - Add: "Add One", + Toast: (x: any) => `Contiene ${x} prompts predefinidos`, + Edit: "Configuración del chat actual", + Add: "Agregar una conversación", + Clear: "Contexto borrado", + Revert: "Restaurar contexto", }, Plugin: { - Name: "Plugin", + Name: "Complemento", }, FineTuned: { - Sysmessage: "Eres un asistente que", + Sysmessage: "Eres un asistente", }, Mask: { - Name: "Mask", + Name: "Máscara", Page: { - Title: "Prompt Template", - SubTitle: (count: number) => `${count} prompt templates`, - Search: "Search Templates", - Create: "Create", + Title: "Máscaras de rol predefinidas", + SubTitle: (count: number) => `${count} definiciones de rol predefinidas`, + Search: "Buscar máscara de rol", + Create: "Crear nuevo", }, Item: { - Info: (count: number) => `${count} prompts`, + Info: (count: number) => `Contiene ${count} conversaciones predefinidas`, Chat: "Chat", - View: "View", - Edit: "Edit", - Delete: "Delete", - DeleteConfirm: "Confirm to delete?", + View: "Ver", + Edit: "Editar", + Delete: "Eliminar", + DeleteConfirm: "¿Confirmar eliminación?", }, EditModal: { Title: (readonly: boolean) => - `Edit Prompt Template ${readonly ? "(readonly)" : ""}`, - Download: "Download", - Clone: "Clone", + `Editar máscara predefinida ${readonly ? "(solo lectura)" : ""}`, + Download: "Descargar predefinido", + Clone: "Clonar predefinido", }, Config: { - Avatar: "Bot Avatar", - Name: "Bot Name", + Avatar: "Avatar del rol", + Name: "Nombre del rol", + Sync: { + Title: "Usar configuración global", + SubTitle: + "¿Usar la configuración global del modelo para la conversación actual?", + Confirm: + "La configuración personalizada de la conversación actual se sobrescribirá automáticamente, ¿confirmar habilitar la configuración global?", + }, + HideContext: { + Title: "Ocultar conversaciones predefinidas", + SubTitle: + "Las conversaciones predefinidas ocultas no aparecerán en la interfaz de chat", + }, + Share: { + Title: "Compartir esta máscara", + SubTitle: "Generar un enlace directo a esta máscara", + Action: "Copiar enlace", + }, }, }, NewChat: { - Return: "Return", - Skip: "Skip", - Title: "Pick a Mask", - SubTitle: "Chat with the Soul behind the Mask", - More: "Find More", - NotShow: "Not Show Again", - ConfirmNoShow: "Confirm to disable?You can enable it in settings later.", + Return: "Regresar", + Skip: "Comenzar ahora", + NotShow: "No mostrar más", + ConfirmNoShow: + "¿Confirmar desactivación? Puedes reactivar en la configuración en cualquier momento.", + Title: "Selecciona una máscara", + SubTitle: "Comienza ahora y colisiona con la mente detrás de la máscara", + More: "Ver todo", + }, + + URLCommand: { + Code: "Detectado un código de acceso en el enlace, ¿deseas autocompletarlo?", + Settings: + "Detectada configuración predefinida en el enlace, ¿deseas autocompletarla?", }, UI: { - Confirm: "Confirm", - Cancel: "Cancel", - Close: "Close", - Create: "Create", - Edit: "Edit", + Confirm: "Confirmar", + Cancel: "Cancelar", + Close: "Cerrar", + Create: "Crear", + Edit: "Editar", + Export: "Exportar", + Import: "Importar", + Sync: "Sincronizar", + Config: "Configurar", }, Exporter: { + Description: { + Title: "Solo se mostrarán los mensajes después de borrar el contexto", + }, Model: "Modelo", Messages: "Mensajes", Topic: "Tema", - Time: "Time", + Time: "Hora", }, }; diff --git a/app/locales/fr.ts b/app/locales/fr.ts index 0fac154ed8e..7fca618951c 100644 --- a/app/locales/fr.ts +++ b/app/locales/fr.ts @@ -1,115 +1,161 @@ import { SubmitKey } from "../store/config"; import type { PartialLocaleType } from "./index"; +import { getClientConfig } from "../config/client"; + +const isApp = !!getClientConfig()?.isApp; const fr: PartialLocaleType = { WIP: "Prochainement...", Error: { - Unauthorized: - "Accès non autorisé, veuillez saisir le code d'accès dans la [page](/#/auth) des paramètres.", + Unauthorized: isApp + ? "Clé API invalide détectée. Veuillez vérifier si la clé API est correctement configurée dans la page [Paramètres](/#/settings)." + : "Le mot de passe d'accès est incorrect ou manquant. Veuillez entrer le mot de passe d'accès correct sur la page [Connexion](/#/auth) ou entrer votre propre clé API OpenAI sur la page [Paramètres](/#/settings).", + }, + Auth: { + Title: "Mot de passe requis", + Tips: "L'administrateur a activé la vérification par mot de passe. Veuillez entrer le code d'accès ci-dessous", + SubTips: "Ou entrez votre clé API OpenAI ou Google", + Input: "Entrez le code d'accès ici", + Confirm: "Confirmer", + Later: "Plus tard", }, ChatItem: { - ChatItemCount: (count: number) => `${count} messages en total`, + ChatItemCount: (count: number) => `${count} conversations`, }, Chat: { - SubTitle: (count: number) => `${count} messages échangés avec ChatGPT`, + SubTitle: (count: number) => `Total de ${count} conversations`, + EditMessage: { + Title: "Modifier l'historique des messages", + Topic: { + Title: "Sujet de la discussion", + SubTitle: "Modifier le sujet de la discussion actuel", + }, + }, Actions: { - ChatList: "Aller à la liste de discussion", - CompressedHistory: "Mémoire d'historique compressée Prompt", - Export: "Exporter tous les messages en tant que Markdown", + ChatList: "Voir la liste des messages", + CompressedHistory: "Voir l'historique des prompts compressés", + Export: "Exporter l'historique de la discussion", Copy: "Copier", Stop: "Arrêter", Retry: "Réessayer", - Delete: "Supprimer", Pin: "Épingler", - PinToastContent: "Épingler 2 messages à des messages contextuels", + PinToastContent: "1 conversation épinglée aux prompts prédéfinis", PinToastAction: "Voir", + Delete: "Supprimer", Edit: "Modifier", }, Commands: { - new: "Commencer une nouvelle conversation", - newm: "Démarrer une nouvelle conversation avec un assistant", - next: "Conversation suivante", - prev: "Conversation précédente", + new: "Nouvelle discussion", + newm: "Créer une discussion à partir du masque", + next: "Discussion suivante", + prev: "Discussion précédente", clear: "Effacer le contexte", - del: "Supprimer la Conversation", + del: "Supprimer la discussion", }, InputActions: { - Stop: "Stop", - ToBottom: "Au dernier", + Stop: "Arrêter la réponse", + ToBottom: "Aller au plus récent", Theme: { - auto: "Auto", - light: "Thème clair", - dark: "Thème sombre", + auto: "Thème automatique", + light: "Mode clair", + dark: "Mode sombre", }, - Prompt: "Instructions", - Masks: "Assistants", - Clear: "Effacer le contexte", - Settings: "Réglages", + Prompt: "Commandes rapides", + Masks: "Tous les masques", + Clear: "Effacer la discussion", + Settings: "Paramètres de la discussion", + UploadImage: "Télécharger une image", }, - Rename: "Renommer la conversation", + Rename: "Renommer la discussion", Typing: "En train d'écrire…", Input: (submitKey: string) => { - var inputHints = `Appuyez sur ${submitKey} pour envoyer`; + var inputHints = `${submitKey} pour envoyer`; if (submitKey === String(SubmitKey.Enter)) { - inputHints += ", Shift + Enter pour insérer un saut de ligne"; + inputHints += ",Shift + Enter pour passer à la ligne"; } - return inputHints + ", / pour rechercher des prompts"; + return inputHints + ",/ pour compléter, : pour déclencher des commandes"; }, Send: "Envoyer", Config: { - Reset: "Restaurer les paramètres par défaut", - SaveAs: "Enregistrer en tant que masque", + Reset: "Effacer la mémoire", + SaveAs: "Enregistrer comme masque", }, + IsContext: "Prompt prédéfini", }, Export: { - Title: "Tous les messages", - Copy: "Tout sélectionner", - Download: "Télécharger", - MessageFromYou: "Message de votre part", - MessageFromChatGPT: "Message de ChatGPT", + Title: "Partager l'historique des discussions", + Copy: "Tout copier", + Download: "Télécharger le fichier", + Share: "Partager sur ShareGPT", + MessageFromYou: "Utilisateur", + MessageFromChatGPT: "ChatGPT", + Format: { + Title: "Format d'exportation", + SubTitle: "Vous pouvez exporter en texte Markdown ou en image PNG", + }, + IncludeContext: { + Title: "Inclure le contexte du masque", + SubTitle: "Afficher le contexte du masque dans les messages", + }, + Steps: { + Select: "Sélectionner", + Preview: "Aperçu", + }, + Image: { + Toast: "Génération de la capture d'écran", + Modal: + "Appuyez longuement ou faites un clic droit pour enregistrer l'image", + }, + }, + Select: { + Search: "Rechercher des messages", + All: "Tout sélectionner", + Latest: "Derniers messages", + Clear: "Effacer la sélection", }, Memory: { - Title: "Prompt mémoire", - EmptyContent: "Rien encore.", - Send: "Envoyer la mémoire", - Copy: "Copier la mémoire", - Reset: "Réinitialiser la session", - ResetConfirm: - "La réinitialisation supprimera l'historique de la conversation actuelle ainsi que la mémoire de l'historique. Êtes-vous sûr de vouloir procéder à la réinitialisation?", + Title: "Résumé historique", + EmptyContent: "Le contenu de la discussion est trop court pour être résumé", + Send: "Compresser automatiquement l'historique des discussions et l'envoyer comme contexte", + Copy: "Copier le résumé", + Reset: "[unused]", + ResetConfirm: "Confirmer la suppression du résumé historique ?", }, Home: { NewChat: "Nouvelle discussion", - DeleteChat: "Confirmer la suppression de la conversation sélectionnée ?", - DeleteToast: "Conversation supprimée", - Revert: "Revenir en arrière", + DeleteChat: "Confirmer la suppression de la discussion sélectionnée ?", + DeleteToast: "Discussion supprimée", + Revert: "Annuler", }, Settings: { Title: "Paramètres", - SubTitle: "Toutes les configurations", + SubTitle: "Toutes les options de configuration", + Danger: { Reset: { - Title: "Restaurer les paramètres", - SubTitle: "Restaurer les paramètres par défaut", - Action: "Reinitialiser", - Confirm: "Confirmer la réinitialisation des paramètres?", + Title: "Réinitialiser tous les paramètres", + SubTitle: + "Réinitialiser toutes les options de configuration aux valeurs par défaut", + Action: "Réinitialiser maintenant", + Confirm: "Confirmer la réinitialisation de tous les paramètres ?", }, Clear: { - Title: "Supprimer toutes les données", + Title: "Effacer toutes les données", SubTitle: - "Effacer toutes les données, y compris les conversations et les paramètres", - Action: "Supprimer", - Confirm: "Confirmer la suppression de toutes les données?", + "Effacer toutes les discussions et les données de configuration", + Action: "Effacer maintenant", + Confirm: + "Confirmer l'effacement de toutes les discussions et données de configuration ?", }, }, Lang: { - Name: "Language", // ATTENTION : si vous souhaitez ajouter une nouvelle traduction, ne traduisez pas cette valeur, laissez-la sous forme de `Language` + Name: "Language", // ATTENTION: if you wanna add a new translation, please do not translate this value, leave it as `Language` All: "Toutes les langues", }, - Avatar: "Avatar", FontSize: { - Title: "Taille des polices", - SubTitle: "Ajuste la taille de police du contenu de la conversation", + Title: "Taille de la police", + SubTitle: "Taille de la police pour le contenu des discussions", }, FontFamily: { Title: "Police de Chat", @@ -120,181 +166,379 @@ const fr: PartialLocaleType = { InjectSystemPrompts: { Title: "Injecter des invites système", SubTitle: - "Ajoute de force une invite système simulée de ChatGPT au début de la liste des messages pour chaque demande", + "Ajouter de manière forcée une invite système simulée de ChatGPT au début de chaque liste de messages", }, InputTemplate: { - Title: "Template", - SubTitle: "Le message le plus récent sera ajouté à ce template.", + Title: "Prétraitement des entrées utilisateur", + SubTitle: + "Le dernier message de l'utilisateur sera intégré dans ce modèle", }, + Update: { - Version: (x: string) => `Version : ${x}`, - IsLatest: "Dernière version", - CheckUpdate: "Vérifier la mise à jour", - IsChecking: "Vérification de la mise à jour...", - FoundUpdate: (x: string) => `Nouvelle version disponible : ${x}`, - GoToUpdate: "Mise à jour", - }, - SendKey: "Clé d'envoi", + Version: (x: string) => `Version actuelle : ${x}`, + IsLatest: "Vous avez la dernière version", + CheckUpdate: "Vérifier les mises à jour", + IsChecking: "Vérification des mises à jour en cours...", + FoundUpdate: (x: string) => `Nouvelle version trouvée : ${x}`, + GoToUpdate: "Aller à la mise à jour", + }, + SendKey: "Touche d'envoi", Theme: "Thème", - TightBorder: "Bordure serrée", + TightBorder: "Mode sans bordure", SendPreviewBubble: { - Title: "Aperçu de l'envoi dans une bulle", - SubTitle: "Aperçu du Markdown dans une bulle", + Title: "Bulle d'aperçu", + SubTitle: "Aperçu du contenu Markdown dans la bulle d'aperçu", + }, + AutoGenerateTitle: { + Title: "Génération automatique de titres", + SubTitle: + "Générer un titre approprié en fonction du contenu de la discussion", + }, + Sync: { + CloudState: "Données cloud", + NotSyncYet: "Pas encore synchronisé", + Success: "Synchronisation réussie", + Fail: "Échec de la synchronisation", + + Config: { + Modal: { + Title: "Configurer la synchronisation cloud", + Check: "Vérifier la disponibilité", + }, + SyncType: { + Title: "Type de synchronisation", + SubTitle: "Choisissez le serveur de synchronisation préféré", + }, + Proxy: { + Title: "Activer le proxy", + SubTitle: + "Lors de la synchronisation dans le navigateur, le proxy doit être activé pour éviter les restrictions de domaine croisé", + }, + ProxyUrl: { + Title: "Adresse du proxy", + SubTitle: + "Uniquement pour le proxy de domaine croisé fourni par le projet", + }, + + WebDav: { + Endpoint: "Adresse WebDAV", + UserName: "Nom d'utilisateur", + Password: "Mot de passe", + }, + + UpStash: { + Endpoint: "URL REST Redis UpStash", + UserName: "Nom de sauvegarde", + Password: "Token REST Redis UpStash", + }, + }, + + LocalState: "Données locales", + Overview: (overview: any) => { + return `${overview.chat} discussions, ${overview.message} messages, ${overview.prompt} invites, ${overview.mask} masques`; + }, + ImportFailed: "Échec de l'importation", }, Mask: { Splash: { - Title: "Écran de masque", + Title: "Page de démarrage du masque", SubTitle: - "Afficher un écran de masque avant de démarrer une nouvelle discussion", + "Afficher la page de démarrage du masque lors de la création d'une nouvelle discussion", }, Builtin: { - Title: "Masquer Les Assistants Intégrés", - SubTitle: "Masquer les assistants intégrés par défaut", + Title: "Masquer les masques intégrés", + SubTitle: + "Masquer les masques intégrés dans toutes les listes de masques", }, }, Prompt: { Disable: { - Title: "Désactiver la saisie semi-automatique", - SubTitle: "Appuyez sur / pour activer la saisie semi-automatique", + Title: "Désactiver la complétion automatique des invites", + SubTitle: + "Saisir / au début de la zone de texte pour déclencher la complétion automatique", }, - List: "Liste de prompts", + List: "Liste des invites personnalisées", ListCount: (builtin: number, custom: number) => - `${builtin} intégré, ${custom} personnalisé`, + `${builtin} intégrées, ${custom} définies par l'utilisateur`, Edit: "Modifier", Modal: { - Title: "Liste de prompts", - Add: "Ajouter un élément", - Search: "Rechercher des prompts", + Title: "Liste des invites", + Add: "Créer", + Search: "Rechercher des invites", }, EditModal: { - Title: "Modifier le prompt", + Title: "Modifier les invites", }, }, HistoryCount: { - Title: "Nombre de messages joints", - SubTitle: "Nombre de messages envoyés attachés par demande", + Title: "Nombre de messages historiques", + SubTitle: "Nombre de messages historiques envoyés avec chaque demande", }, CompressThreshold: { - Title: "Seuil de compression de l'historique", + Title: "Seuil de compression des messages historiques", SubTitle: - "Comprimera si la longueur des messages non compressés dépasse cette valeur", + "Compresser les messages historiques lorsque leur longueur dépasse cette valeur", }, Usage: { - Title: "Solde du compte", + Title: "Vérification du solde", SubTitle(used: any, total: any) { - return `Épuisé ce mois-ci $${used}, abonnement $${total}`; + return `Utilisé ce mois-ci : $${used}, Total d'abonnement : $${total}`; + }, + IsChecking: "Vérification en cours…", + Check: "Re-vérifier", + NoAccess: + "Entrez la clé API ou le mot de passe d'accès pour vérifier le solde", + }, + + Access: { + AccessCode: { + Title: "Mot de passe d'accès", + SubTitle: "L'administrateur a activé l'accès sécurisé", + Placeholder: "Veuillez entrer le mot de passe d'accès", + }, + CustomEndpoint: { + Title: "Interface personnalisée", + SubTitle: "Utiliser un service Azure ou OpenAI personnalisé", + }, + Provider: { + Title: "Fournisseur de modèle", + SubTitle: "Changer de fournisseur de service", + }, + OpenAI: { + ApiKey: { + Title: "Clé API", + SubTitle: + "Utiliser une clé OpenAI personnalisée pour contourner les restrictions d'accès par mot de passe", + Placeholder: "Clé API OpenAI", + }, + + Endpoint: { + Title: "Adresse de l'interface", + SubTitle: "Doit inclure http(s):// en dehors de l'adresse par défaut", + }, + }, + Azure: { + ApiKey: { + Title: "Clé d'interface", + SubTitle: + "Utiliser une clé Azure personnalisée pour contourner les restrictions d'accès par mot de passe", + Placeholder: "Clé API Azure", + }, + + Endpoint: { + Title: "Adresse de l'interface", + SubTitle: "Exemple :", + }, + + ApiVerion: { + Title: "Version de l'interface (version API azure)", + SubTitle: "Choisissez une version spécifique", + }, + }, + Anthropic: { + ApiKey: { + Title: "Clé d'interface", + SubTitle: + "Utiliser une clé Anthropic personnalisée pour contourner les restrictions d'accès par mot de passe", + Placeholder: "Clé API Anthropic", + }, + + Endpoint: { + Title: "Adresse de l'interface", + SubTitle: "Exemple :", + }, + + ApiVerion: { + Title: "Version de l'interface (version API claude)", + SubTitle: "Choisissez une version spécifique de l'API", + }, + }, + Google: { + ApiKey: { + Title: "Clé API", + SubTitle: "Obtenez votre clé API Google AI", + Placeholder: "Entrez votre clé API Google AI Studio", + }, + + Endpoint: { + Title: "Adresse de l'interface", + SubTitle: "Exemple :", + }, + + ApiVersion: { + Title: "Version de l'API (pour gemini-pro uniquement)", + SubTitle: "Choisissez une version spécifique de l'API", + }, + GoogleSafetySettings: { + Title: "Niveau de filtrage de sécurité Google", + SubTitle: "Définir le niveau de filtrage du contenu", + }, + }, + Baidu: { + ApiKey: { + Title: "Clé API", + SubTitle: "Utiliser une clé API Baidu personnalisée", + Placeholder: "Clé API Baidu", + }, + SecretKey: { + Title: "Clé secrète", + SubTitle: "Utiliser une clé secrète Baidu personnalisée", + Placeholder: "Clé secrète Baidu", + }, + Endpoint: { + Title: "Adresse de l'interface", + SubTitle: + "Non pris en charge pour les configurations personnalisées dans .env", + }, + }, + ByteDance: { + ApiKey: { + Title: "Clé d'interface", + SubTitle: "Utiliser une clé API ByteDance personnalisée", + Placeholder: "Clé API ByteDance", + }, + Endpoint: { + Title: "Adresse de l'interface", + SubTitle: "Exemple :", + }, + }, + Alibaba: { + ApiKey: { + Title: "Clé d'interface", + SubTitle: "Utiliser une clé API Alibaba Cloud personnalisée", + Placeholder: "Clé API Alibaba Cloud", + }, + Endpoint: { + Title: "Adresse de l'interface", + SubTitle: "Exemple :", + }, + }, + CustomModel: { + Title: "Nom du modèle personnalisé", + SubTitle: + "Ajouter des options de modèles personnalisés, séparées par des virgules", }, - IsChecking: "Vérification...", - Check: "Vérifier", - NoAccess: "Entrez la clé API pour vérifier le solde", }, Model: "Modèle", Temperature: { - Title: "Température", - SubTitle: "Une valeur plus élevée rendra les réponses plus aléatoires", + Title: "Aléatoire (temperature)", + SubTitle: "Plus la valeur est élevée, plus les réponses sont aléatoires", }, TopP: { - Title: "Top P", + Title: "Échantillonnage par noyau (top_p)", SubTitle: - "Ne modifiez pas à moins que vous ne sachiez ce que vous faites", + "Semblable à l'aléatoire, mais ne pas modifier en même temps que l'aléatoire", }, MaxTokens: { - Title: "Limite de Tokens", - SubTitle: "Longueur maximale des tokens d'entrée et des tokens générés", + Title: "Limite de réponse unique (max_tokens)", + SubTitle: "Nombre maximal de tokens utilisés pour une interaction unique", }, PresencePenalty: { - Title: "Pénalité de présence", + Title: "Nouveauté du sujet (presence_penalty)", SubTitle: - "Une valeur plus élevée augmentera la probabilité d'introduire de nouveaux sujets", + "Plus la valeur est élevée, plus il est probable d'élargir aux nouveaux sujets", }, FrequencyPenalty: { - Title: "Pénalité de fréquence", + Title: "Pénalité de fréquence (frequency_penalty)", SubTitle: - "Une valeur plus élevée diminuant la probabilité de répéter la même ligne", + "Plus la valeur est élevée, plus il est probable de réduire les répétitions", }, }, Store: { - DefaultTopic: "Nouvelle conversation", - BotHello: "Bonjour ! Comment puis-je vous aider aujourd'hui ?", - Error: "Quelque chose s'est mal passé, veuillez réessayer plus tard.", + DefaultTopic: "Nouvelle discussion", + BotHello: "Comment puis-je vous aider ?", + Error: "Une erreur est survenue, veuillez réessayer plus tard", Prompt: { History: (content: string) => - "Ceci est un résumé de l'historique des discussions entre l'IA et l'utilisateur : " + - content, + "Voici le résumé de la discussion précédente : " + content, Topic: - "Veuillez générer un titre de quatre à cinq mots résumant notre conversation sans introduction, ponctuation, guillemets, points, symboles ou texte supplémentaire. Supprimez les guillemets inclus.", + "Utilisez quatre à cinq mots pour retourner le sujet succinct de cette phrase, sans explication, sans ponctuation, sans interjections, sans texte superflu, sans gras. Si aucun sujet, retournez simplement « discussion informelle »", Summarize: - "Résumez brièvement nos discussions en 200 mots ou moins pour les utiliser comme prompt de contexte futur.", + "Faites un résumé succinct de la discussion, à utiliser comme prompt de contexte ultérieur, en moins de 200 mots", }, }, Copy: { Success: "Copié dans le presse-papiers", - Failed: - "La copie a échoué, veuillez accorder l'autorisation d'accès au presse-papiers", + Failed: "Échec de la copie, veuillez autoriser l'accès au presse-papiers", + }, + Download: { + Success: "Le contenu a été téléchargé dans votre répertoire.", + Failed: "Échec du téléchargement.", }, Context: { - Toast: (x: any) => `Avec ${x} contextes de prompts`, - Edit: "Contextes et mémoires de prompts", - Add: "Ajouter un prompt", + Toast: (x: any) => `Contient ${x} invites prédéfinies`, + Edit: "Paramètres de la discussion actuelle", + Add: "Ajouter une discussion", + Clear: "Contexte effacé", + Revert: "Restaurer le contexte", }, Plugin: { - Name: "Extension", + Name: "Plugin", }, FineTuned: { - Sysmessage: "Eres un asistente que", + Sysmessage: "Vous êtes un assistant", }, Mask: { Name: "Masque", Page: { - Title: "Modèle de prompt", - SubTitle: (count: number) => `${count} modèles de prompts`, - Search: "Rechercher des modèles", + Title: "Masques de rôle prédéfinis", + SubTitle: (count: number) => `${count} définitions de rôle prédéfinies`, + Search: "Rechercher des masques de rôle", Create: "Créer", }, Item: { - Info: (count: number) => `${count} prompts`, + Info: (count: number) => `Contient ${count} discussions prédéfinies`, Chat: "Discussion", - View: "Vue", + View: "Voir", Edit: "Modifier", Delete: "Supprimer", - DeleteConfirm: "Confirmer la suppression?", + DeleteConfirm: "Confirmer la suppression ?", }, EditModal: { Title: (readonly: boolean) => - `Modifier le modèle de prompt ${readonly ? "(en lecture seule)" : ""}`, - Download: "Télécharger", - Clone: "Dupliquer", + `Modifier le masque prédéfini ${readonly ? " (lecture seule)" : ""}`, + Download: "Télécharger le masque", + Clone: "Cloner le masque", }, Config: { - Avatar: "Avatar de lassistant", - Name: "Nom de lassistant", + Avatar: "Avatar du rôle", + Name: "Nom du rôle", Sync: { - Title: "Utiliser la configuration globale", - SubTitle: "Utiliser la configuration globale dans cette conversation", - Confirm: "Voulez-vous definir votre configuration personnalisée ?", + Title: "Utiliser les paramètres globaux", + SubTitle: + "Cette discussion utilise-t-elle les paramètres du modèle globaux ?", + Confirm: + "Les paramètres personnalisés de cette discussion seront automatiquement remplacés. Confirmer l'activation des paramètres globaux ?", }, HideContext: { - Title: "Masquer les invites contextuelles", - SubTitle: "Ne pas afficher les instructions contextuelles dans le chat", + Title: "Masquer les discussions prédéfinies", + SubTitle: + "Les discussions prédéfinies ne seront pas affichées dans l'interface de discussion après masquage", }, Share: { Title: "Partager ce masque", - SubTitle: "Générer un lien vers ce masque", + SubTitle: "Générer un lien direct pour ce masque", Action: "Copier le lien", }, }, }, NewChat: { Return: "Retour", - Skip: "Passer", - Title: "Choisir un assitant", - SubTitle: "Discutez avec l'âme derrière le masque", - More: "En savoir plus", - NotShow: "Ne pas afficher à nouveau", + Skip: "Commencer directement", + NotShow: "Ne plus afficher", ConfirmNoShow: - "Confirmez-vous vouloir désactiver cela? Vous pouvez le réactiver plus tard dans les paramètres.", + "Confirmer la désactivation ? Vous pourrez réactiver cette option à tout moment dans les paramètres.", + Title: "Choisir un masque", + SubTitle: "Commencez maintenant, rencontrez les pensées derrière le masque", + More: "Voir tout", + }, + + URLCommand: { + Code: "Code d'accès détecté dans le lien, souhaitez-vous le remplir automatiquement ?", + Settings: + "Paramètres prédéfinis détectés dans le lien, souhaitez-vous les remplir automatiquement ?", }, UI: { @@ -302,9 +546,17 @@ const fr: PartialLocaleType = { Cancel: "Annuler", Close: "Fermer", Create: "Créer", - Edit: "Éditer", + Edit: "Modifier", + Export: "Exporter", + Import: "Importer", + Sync: "Synchroniser", + Config: "Configurer", }, Exporter: { + Description: { + Title: + "Seuls les messages après avoir effacé le contexte seront affichés", + }, Model: "Modèle", Messages: "Messages", Topic: "Sujet", diff --git a/app/locales/id.ts b/app/locales/id.ts index 0353433f9c7..80e859d2ed7 100644 --- a/app/locales/id.ts +++ b/app/locales/id.ts @@ -1,144 +1,158 @@ import { SubmitKey } from "../store/config"; -import { PartialLocaleType } from "./index"; +import type { PartialLocaleType } from "./index"; +import { getClientConfig } from "../config/client"; + +const isApp = !!getClientConfig()?.isApp; const id: PartialLocaleType = { WIP: "Coming Soon...", Error: { - Unauthorized: - "Akses tidak diizinkan, silakan masukkan kode akses atau masukkan kunci API OpenAI Anda. di halaman [autentikasi](/#/auth) atau di halaman [Pengaturan](/#/settings).", + Unauthorized: isApp + ? "API Key tidak valid terdeteksi, silakan periksa apakah API Key telah dikonfigurasi dengan benar di halaman [Pengaturan](/#/settings)." + : "Kata sandi akses tidak benar atau kosong, silakan masukkan kata sandi akses yang benar di halaman [Masuk](/#/auth), atau masukkan OpenAI API Key Anda di halaman [Pengaturan](/#/settings).", }, Auth: { - Title: "Diperlukan Kode Akses", - Tips: "Masukkan kode akses di bawah", - SubTips: "Atau masukkan kunci API OpenAI Anda", - Input: "Kode Akses", + Title: "Kebutuhan Kata Sandi", + Tips: "Administrator telah mengaktifkan verifikasi kata sandi, silakan masukkan kode akses di bawah ini", + SubTips: "Atau masukkan kunci API OpenAI atau Google Anda", + Input: "Masukkan kode akses di sini", Confirm: "Konfirmasi", Later: "Nanti", }, ChatItem: { - ChatItemCount: (count: number) => `${count} pesan`, + ChatItemCount: (count: number) => `${count} percakapan`, }, Chat: { - SubTitle: (count: number) => `${count} pesan`, + SubTitle: (count: number) => `Total ${count} percakapan`, + EditMessage: { + Title: "Edit Riwayat Pesan", + Topic: { + Title: "Topik Obrolan", + SubTitle: "Ubah topik obrolan saat ini", + }, + }, Actions: { - ChatList: "Buka Daftar Chat", - CompressedHistory: "Ekspor Riwayat Terkompresi", - Export: "Ekspor Semua Pesan sebagai Markdown", + ChatList: "Lihat daftar pesan", + CompressedHistory: "Lihat riwayat Prompt yang dikompresi", + Export: "Ekspor riwayat obrolan", Copy: "Salin", Stop: "Berhenti", - Retry: "Coba Lagi", - Pin: "Pin", - PinToastContent: "2 pesan telah ditandai", + Retry: "Coba lagi", + Pin: "Sematkan", + PinToastContent: "1 percakapan telah disematkan ke prompt default", PinToastAction: "Lihat", Delete: "Hapus", Edit: "Edit", }, Commands: { - new: "Mulai Chat Baru", - newm: "Mulai Chat Baru dengan Masks", - next: "Chat Selanjutnya", - prev: "Chat Sebelumnya", - clear: "Bersihkan Percakapan", - del: "Hapus Chat", + new: "Obrolan Baru", + newm: "Buat Obrolan Baru dari Masker", + next: "Obrolan Berikutnya", + prev: "Obrolan Sebelumnya", + clear: "Hapus Konteks", + del: "Hapus Obrolan", }, InputActions: { - Stop: "Berhenti", - ToBottom: "Ke Bagian Bawah", + Stop: "Hentikan Respons", + ToBottom: "Gulir ke bawah", Theme: { - auto: "Otomatis", - light: "Tema Terang", - dark: "Tema Gelap", + auto: "Tema Otomatis", + light: "Mode Terang", + dark: "Mode Gelap", }, - Prompt: "Prompts", - Masks: "Masks", - Clear: "Bersihkan Percakapan", - Settings: "Pengaturan", - }, - Rename: "Ubah Nama Chat", - Typing: "Mengetik...", + Prompt: "Perintah Cepat", + Masks: "Semua Masker", + Clear: "Hapus Obrolan", + Settings: "Pengaturan Obrolan", + UploadImage: "Unggah Gambar", + }, + Rename: "Ganti Nama Obrolan", + Typing: "Sedang Mengetik…", Input: (submitKey: string) => { - var inputHints = `${submitKey} untuk mengirim`; + var inputHints = `${submitKey} kirim`; if (submitKey === String(SubmitKey.Enter)) { - inputHints += ", Shift + Enter untuk membalut"; + inputHints += ",Shift + Enter untuk baris baru"; } - return ( - inputHints + ", / untuk mencari prompt, : untuk menggunakan perintah" - ); + return inputHints + ",/ untuk melengkapi, : untuk memicu perintah"; }, Send: "Kirim", Config: { - Reset: "Reset ke Default", - SaveAs: "Simpan sebagai Masks", + Reset: "Hapus Memori", + SaveAs: "Simpan sebagai Masker", }, + IsContext: "Prompt Default", }, Export: { - Title: "Ekspor Pesan", + Title: "Bagikan Riwayat Obrolan", Copy: "Salin Semua", - Download: "Unduh", - MessageFromYou: "Pesan dari Anda", - MessageFromChatGPT: "Pesan dari ChatGPT", + Download: "Unduh File", Share: "Bagikan ke ShareGPT", + MessageFromYou: "Pengguna", + MessageFromChatGPT: "ChatGPT", Format: { Title: "Format Ekspor", - SubTitle: "Markdown atau Gambar PNG", + SubTitle: "Dapat mengekspor teks Markdown atau gambar PNG", }, IncludeContext: { - Title: "Sertakan Konteks", - SubTitle: "Apakah akan menyertakan masks", + Title: "Sertakan Konteks Masker", + SubTitle: "Apakah akan menampilkan konteks masker dalam pesan", }, Steps: { Select: "Pilih", - Preview: "Pratinjau", + Preview: "Prabaca", + }, + Image: { + Toast: "Sedang Membuat Screenshot", + Modal: "Tekan lama atau klik kanan untuk menyimpan gambar", }, }, Select: { - Search: "Cari", + Search: "Cari Pesan", All: "Pilih Semua", - Latest: "Pilih Terbaru", - Clear: "Bersihkan", + Latest: "Beberapa Terbaru", + Clear: "Hapus Pilihan", }, Memory: { - Title: "Prompt Memori", - EmptyContent: "Belum ada yang tersedia.", - Send: "Kirim Memori", - Copy: "Salin Memori", - Reset: "Reset", - ResetConfirm: - "Jika Anda mereset, riwayat obrolan saat ini dan memori historis akan dihapus. Apakah Anda yakin ingin melakukan reset?", + Title: "Ringkasan Sejarah", + EmptyContent: "Isi percakapan terlalu pendek, tidak perlu dirangkum", + Send: "Otomatis kompres riwayat obrolan dan kirim sebagai konteks", + Copy: "Salin Ringkasan", + Reset: "[unused]", + ResetConfirm: "Konfirmasi untuk menghapus ringkasan sejarah?", }, Home: { NewChat: "Obrolan Baru", - DeleteChat: "Anda yakin ingin menghapus percakapan yang dipilih?", + DeleteChat: "Konfirmasi untuk menghapus percakapan yang dipilih?", DeleteToast: "Percakapan telah dihapus", - Revert: "Kembali", + Revert: "Batalkan", }, Settings: { Title: "Pengaturan", - SubTitle: "Semua Pengaturan", + SubTitle: "Semua opsi pengaturan", + Danger: { Reset: { - Title: "Setel Ulang Semua Pengaturan", - SubTitle: "Mengembalikan semua pengaturan ke nilai default", - Action: "Setel Ulang", - Confirm: - "Anda yakin ingin mengembalikan semua pengaturan ke nilai default?", + Title: "Atur Ulang Semua Pengaturan", + SubTitle: "Atur ulang semua opsi pengaturan ke nilai default", + Action: "Atur Ulang Sekarang", + Confirm: "Konfirmasi untuk mengatur ulang semua pengaturan?", }, Clear: { Title: "Hapus Semua Data", - SubTitle: "Semua data yang tersimpan secara lokal akan dihapus", - Action: "Hapus", + SubTitle: "Hapus semua data obrolan dan pengaturan", + Action: "Hapus Sekarang", Confirm: - "Apakah Anda yakin ingin menghapus semua data yang tersimpan secara lokal?", + "Konfirmasi untuk menghapus semua data obrolan dan pengaturan?", }, }, Lang: { - Name: "Bahasa", // ATTENTION: if you wanna add a new translation, please do not translate this value, leave it as `Language` + Name: "Language", // PERHATIAN: jika Anda ingin menambahkan terjemahan baru, harap jangan terjemahkan nilai ini, biarkan sebagai `Language` All: "Semua Bahasa", }, Avatar: "Avatar", FontSize: { Title: "Ukuran Font", - SubTitle: "Ubah ukuran font konten chat", + SubTitle: "Ukuran font untuk konten obrolan", }, FontFamily: { Title: "Font Obrolan", @@ -147,88 +161,101 @@ const id: PartialLocaleType = { Placeholder: "Nama Font", }, InjectSystemPrompts: { - Title: "Suntikkan Petunjuk Sistem", + Title: "Suntikkan Pesan Sistem", SubTitle: - "Tambahkan petunjuk simulasi sistem ChatGPT di awal daftar pesan yang diminta dalam setiap permintaan", + "Memaksa menambahkan pesan sistem simulasi ChatGPT di awal daftar pesan setiap permintaan", }, InputTemplate: { - Title: "Template Input", - SubTitle: "Pesan baru akan diisi menggunakan template ini", + Title: "Pra-pemrosesan Input Pengguna", + SubTitle: "Pesan terbaru pengguna akan diisi ke template ini", }, Update: { - Version: (x: string) => `Version: ${x}`, - IsLatest: "Versi terbaru", + Version: (x: string) => `Versi Saat Ini: ${x}`, + IsLatest: "Sudah versi terbaru", CheckUpdate: "Periksa Pembaruan", - IsChecking: "Memeriksa pembaruan...", - FoundUpdate: (x: string) => `Versi terbaru ditemukan: ${x}`, - GoToUpdate: "Perbarui Sekarang", + IsChecking: "Sedang memeriksa pembaruan...", + FoundUpdate: (x: string) => `Versi Baru Ditemukan: ${x}`, + GoToUpdate: "Pergi ke Pembaruan", + }, + SendKey: "Kunci Kirim", + Theme: "Tema", + TightBorder: "Mode Tanpa Border", + SendPreviewBubble: { + Title: "Preview Bubble", + SubTitle: "Pratinjau konten Markdown di bubble pratinjau", }, AutoGenerateTitle: { - Title: "Hasilkan Judul Otomatis", - SubTitle: "Hasilkan judul yang sesuai berdasarkan konten percakapan", + Title: "Otomatis Membuat Judul", + SubTitle: "Membuat judul yang sesuai berdasarkan konten obrolan", }, Sync: { - CloudState: "Pembaruan Terakhir", + CloudState: "Data Cloud", NotSyncYet: "Belum disinkronkan", Success: "Sinkronisasi Berhasil", Fail: "Sinkronisasi Gagal", Config: { Modal: { - Title: "Konfigurasi Sinkronisasi", + Title: "Konfigurasi Sinkronisasi Cloud", + Check: "Periksa Ketersediaan", }, SyncType: { - Title: "Tipe Sinkronisasi", - SubTitle: "Pilih layanan sinkronisasi favorit Anda", + Title: "Jenis Sinkronisasi", + SubTitle: "Pilih server sinkronisasi favorit", }, Proxy: { - Title: "Aktifkan Proxy CORS", + Title: "Aktifkan Proxy", SubTitle: - "Aktifkan Proxy untuk menghindari pembatasan atau pemblokiran lintas sumber", + "Saat menyinkronkan di browser, proxy harus diaktifkan untuk menghindari pembatasan lintas domain", }, ProxyUrl: { - Title: "Lokasi Titik Akhir Proxy CORS", - SubTitle: "Hanya berlaku untuk Proxy CORS bawaan untuk proyek ini", + Title: "Alamat Proxy", + SubTitle: "Hanya berlaku untuk proxy lintas domain bawaan proyek ini", }, WebDav: { - Endpoint: "Lokasi Titik Akhir WebDAV", - UserName: "User Pengguna", + Endpoint: "Alamat WebDAV", + UserName: "Nama Pengguna", Password: "Kata Sandi", }, + + UpStash: { + Endpoint: "Url REST Redis UpStash", + UserName: "Nama Cadangan", + Password: "Token REST Redis UpStash", + }, }, - }, - SendKey: "Kirim", - Theme: "Tema", - TightBorder: "Batas Ketat", - SendPreviewBubble: { - Title: "Pratinjau Obrolan", - SubTitle: "Pratinjau Obrolan dengan markdown", + + LocalState: "Data Lokal", + Overview: (overview: any) => { + return `${overview.chat} percakapan, ${overview.message} pesan, ${overview.prompt} prompt, ${overview.mask} masker`; + }, + ImportFailed: "Impor Gagal", }, Mask: { Splash: { - Title: "Layar Pembuka Masks", - SubTitle: - "Tampilkan layar pembuka masks sebelum memulai percakapan baru", + Title: "Halaman Awal Masker", + SubTitle: "Tampilkan halaman awal masker saat memulai obrolan baru", }, Builtin: { - Title: "Sembunyikan Masks Bawaan", - SubTitle: "Sembunyikan Masks bawaan dari daftar masks", + Title: "Sembunyikan Masker Bawaan", + SubTitle: "Sembunyikan masker bawaan dari semua daftar masker", }, }, Prompt: { Disable: { - Title: "Nonaktifkan Otomatisasi", - SubTitle: "Aktifkan/Matikan otomatisasi", + Title: "Nonaktifkan Pelengkapan Prompt Otomatis", + SubTitle: + "Ketik / di awal kotak input untuk memicu pelengkapan otomatis", }, - List: "Daftar Prompt", + List: "Daftar Prompt Kustom", ListCount: (builtin: number, custom: number) => - `${builtin} bawaan, ${custom} penggunaan khusus`, + `Bawaan ${builtin} item, pengguna ${custom} item`, Edit: "Edit", Modal: { Title: "Daftar Prompt", - Add: "Tambahkan", + Add: "Baru", Search: "Cari Prompt", }, EditModal: { @@ -236,142 +263,284 @@ const id: PartialLocaleType = { }, }, HistoryCount: { - Title: "Jumlah Pesan Riwayat", - SubTitle: "Jumlah pesan yang akan dikirim setiap permintaan", + Title: "Jumlah Pesan Sejarah", + SubTitle: "Jumlah pesan sejarah yang dibawa setiap permintaan", }, CompressThreshold: { - Title: "Batas Kompresi Riwayat", + Title: "Ambang Batas Kompresi Pesan Sejarah", SubTitle: - "Jika panjang pesan melebihi batas yang ditentukan, pesan tersebut akan dikompresi", + "Ketika pesan sejarah yang tidak terkompresi melebihi nilai ini, akan dikompresi", }, Usage: { - Title: "Saldo Akun", + Title: "Cek Saldo", SubTitle(used: any, total: any) { - return `Digunakan bulan ini: ${used}, total langganan: ${total}`; + return `Digunakan bulan ini $${used}, total langganan $${total}`; + }, + IsChecking: "Sedang memeriksa…", + Check: "Periksa Lagi", + NoAccess: "Masukkan API Key atau kata sandi akses untuk melihat saldo", + }, + + Access: { + AccessCode: { + Title: "Kata Sandi Akses", + SubTitle: "Administrator telah mengaktifkan akses terenkripsi", + Placeholder: "Masukkan kata sandi akses", + }, + CustomEndpoint: { + Title: "Antarmuka Kustom", + SubTitle: "Apakah akan menggunakan layanan Azure atau OpenAI kustom", + }, + Provider: { + Title: "Penyedia Layanan Model", + SubTitle: "Ganti penyedia layanan yang berbeda", + }, + OpenAI: { + ApiKey: { + Title: "API Key", + SubTitle: + "Gunakan OpenAI Key kustom untuk menghindari batasan akses kata sandi", + Placeholder: "OpenAI API Key", + }, + + Endpoint: { + Title: "Alamat Antarmuka", + SubTitle: "Selain alamat default, harus menyertakan http(s)://", + }, + }, + Azure: { + ApiKey: { + Title: "Kunci Antarmuka", + SubTitle: + "Gunakan Azure Key kustom untuk menghindari batasan akses kata sandi", + Placeholder: "Azure API Key", + }, + + Endpoint: { + Title: "Alamat Antarmuka", + SubTitle: "Contoh:", + }, + + ApiVerion: { + Title: "Versi Antarmuka (azure api version)", + SubTitle: "Pilih versi parsial tertentu", + }, + }, + Anthropic: { + ApiKey: { + Title: "Kunci Antarmuka", + SubTitle: + "Gunakan Anthropic Key kustom untuk menghindari batasan akses kata sandi", + Placeholder: "Anthropic API Key", + }, + + Endpoint: { + Title: "Alamat Antarmuka", + SubTitle: "Contoh:", + }, + + ApiVerion: { + Title: "Versi Antarmuka (claude api version)", + SubTitle: "Pilih versi API tertentu", + }, + }, + Google: { + ApiKey: { + Title: "Kunci API", + SubTitle: "Dapatkan kunci API Anda dari Google AI", + Placeholder: "Masukkan kunci API Studio Google AI Anda", + }, + + Endpoint: { + Title: "Alamat Akhir", + SubTitle: "Contoh:", + }, + + ApiVersion: { + Title: "Versi API (hanya untuk gemini-pro)", + SubTitle: "Pilih versi API tertentu", + }, + GoogleSafetySettings: { + Title: "Tingkat Filter Keamanan Google", + SubTitle: "Atur tingkat filter konten", + }, + }, + Baidu: { + ApiKey: { + Title: "API Key", + SubTitle: "Gunakan Baidu API Key kustom", + Placeholder: "Baidu API Key", + }, + SecretKey: { + Title: "Secret Key", + SubTitle: "Gunakan Baidu Secret Key kustom", + Placeholder: "Baidu Secret Key", + }, + Endpoint: { + Title: "Alamat Antarmuka", + SubTitle: "Tidak mendukung kustom, pergi ke .env untuk konfigurasi", + }, + }, + ByteDance: { + ApiKey: { + Title: "Kunci Antarmuka", + SubTitle: "Gunakan ByteDance API Key kustom", + Placeholder: "ByteDance API Key", + }, + Endpoint: { + Title: "Alamat Antarmuka", + SubTitle: "Contoh:", + }, + }, + Alibaba: { + ApiKey: { + Title: "Kunci Antarmuka", + SubTitle: "Gunakan Alibaba Cloud API Key kustom", + Placeholder: "Alibaba Cloud API Key", + }, + Endpoint: { + Title: "Alamat Antarmuka", + SubTitle: "Contoh:", + }, + }, + CustomModel: { + Title: "Nama Model Kustom", + SubTitle: "Tambahkan opsi model kustom, pisahkan dengan koma", }, - IsChecking: "Memeriksa...", - Check: "Periksa", - NoAccess: "Masukkan kunci API untuk memeriksa saldo", }, Model: "Model", Temperature: { - Title: "Suhu", - SubTitle: "Semakin tinggi nilainya, semakin acak keluarannya", + Title: "Randomness (temperature)", + SubTitle: "Semakin tinggi nilainya, semakin acak responsnya", }, TopP: { - Title: "Top P", - SubTitle: "Tidak mengubah nilai dengan suhu", + Title: "Sampling Inti (top_p)", + SubTitle: + "Mirip dengan randomness, tetapi jangan ubah bersama randomness", }, MaxTokens: { - Title: "Token Maksimum", - SubTitle: "Panjang maksimum token input dan output", + Title: "Batas Token Per Respons", + SubTitle: "Jumlah token maksimum yang digunakan per interaksi", }, PresencePenalty: { - Title: "Penalti Kehadiran", - SubTitle: "Semakin tinggi nilai, semakin mungkin topik baru muncul", + Title: "Kedekatan Topik (presence_penalty)", + SubTitle: + "Semakin tinggi nilainya, semakin besar kemungkinan memperluas ke topik baru", }, FrequencyPenalty: { - Title: "Penalti Frekuensi", + Title: "Hukuman Frekuensi (frequency_penalty)", SubTitle: - "Semakin tinggi nilai, semakin rendah kemungkinan penggunaan ulang baris yang sama", + "Semakin tinggi nilainya, semakin besar kemungkinan mengurangi kata-kata yang berulang", }, }, Store: { - DefaultTopic: "Percakapan Baru", - BotHello: "Halo! Bagaimana saya bisa membantu Anda hari ini?", - Error: "Terjadi kesalahan, silakan coba lagi nanti.", + DefaultTopic: "Obrolan Baru", + BotHello: "Ada yang bisa saya bantu?", + Error: "Terjadi kesalahan, coba lagi nanti", Prompt: { History: (content: string) => - "Ini adalah ringkasan singkat dari riwayat percakapan: " + content, + "Ini adalah ringkasan obrolan sebelumnya sebagai latar belakang: " + + content, Topic: - "Buat judul berisi empat hingga lima kata untuk percakapan kita yang tidak akan disertakan dalam ringkasan percakapan, seperti instruksi, format, kutipan, tanda baca awal, tanda kutip pendahuluan, atau karakter tambahan. Silakan coba dengan kutipan berakhir.", + "Gunakan empat hingga lima kata untuk langsung memberikan ringkasan topik kalimat ini, tanpa penjelasan, tanpa tanda baca, tanpa kata pengisi, tanpa teks tambahan, tanpa menebalkan. Jika tidak ada topik, langsung jawab 'Obrolan Santai'", Summarize: - "Buat ringkasan percakapan dalam 200 kata yang akan digunakan sebagai promp di masa depan.", + "Berikan ringkasan singkat tentang konten obrolan, untuk digunakan sebagai prompt konteks selanjutnya, dalam 200 kata atau kurang", }, }, Copy: { - Success: "Tersalin ke clipboard", - Failed: - "Gagal menyalin, mohon berikan izin untuk mengakses clipboard atau Clipboard API tidak didukung (Tauri)", + Success: "Telah disalin ke clipboard", + Failed: "Gagal menyalin, mohon berikan izin clipboard", }, Download: { - Success: "Konten berhasil diunduh ke direktori Anda.", + Success: "Konten telah diunduh ke direktori Anda.", Failed: "Unduhan gagal.", }, Context: { - Toast: (x: any) => `Dengan ${x} promp kontekstual`, + Toast: (x: any) => `Berisi ${x} prompt preset`, Edit: "Pengaturan Obrolan Saat Ini", - Add: "Tambahkan Promp", - Clear: "Bersihkan Konteks", - Revert: "Kembali ke Posisi Sebelumnya", + Add: "Tambah Obrolan", + Clear: "Konteks telah dihapus", + Revert: "Kembalikan Konteks", }, Plugin: { Name: "Plugin", }, FineTuned: { - Sysmessage: "Anda adalah asisten yang", + Sysmessage: "Anda adalah seorang asisten", }, Mask: { - Name: "Masks", + Name: "Masker", Page: { - Title: "Template Promp", - SubTitle: (count: number) => `${count} template prompt`, - Search: "Cari template", - Create: "Buat", + Title: "Preset Karakter Masker", + SubTitle: (count: number) => `${count} definisi karakter preset`, + Search: "Cari Masker Karakter", + Create: "Buat Baru", }, Item: { - Info: (count: number) => `${count} prompt`, + Info: (count: number) => `Berisi ${count} obrolan preset`, Chat: "Obrolan", View: "Lihat", Edit: "Edit", Delete: "Hapus", - DeleteConfirm: "Anda yakin ingin menghapus?", + DeleteConfirm: "Konfirmasi penghapusan?", }, EditModal: { Title: (readonly: boolean) => - `Edit Template Prompt ${readonly ? "(hanya baca)" : ""}`, - Download: "Unduh", - Clone: "Duplikat", + `Edit Masker Preset ${readonly ? "(Hanya Baca)" : ""}`, + Download: "Unduh Preset", + Clone: "Klon Preset", }, Config: { - Avatar: "Avatar Bot", - Name: "Nama Bot", + Avatar: "Avatar Karakter", + Name: "Nama Karakter", Sync: { - Title: "Gunakan Konfigurasi Global", - SubTitle: "Gunakan konfigurasi global dalam percakapan ini", + Title: "Gunakan Pengaturan Global", + SubTitle: + "Apakah obrolan saat ini akan menggunakan pengaturan model global?", Confirm: - "Pastikan untuk mengganti konfigurasi kustom dengan konfigurasi global?", + "Pengaturan kustom obrolan saat ini akan ditimpa secara otomatis, konfirmasi untuk mengaktifkan pengaturan global?", }, HideContext: { - Title: "Sembunyikan Prompt Konteks", - SubTitle: "Tidak menampilkan prompt konteks dalam obrolan", + Title: "Sembunyikan Obrolan Preset", + SubTitle: + "Setelah disembunyikan, obrolan preset tidak akan muncul di antarmuka obrolan", }, Share: { - Title: "Bagikan Masks Ini", - SubTitle: "Buat tautan untuk masks ini", + Title: "Bagikan Masker Ini", + SubTitle: "Hasilkan tautan langsung ke masker ini", Action: "Salin Tautan", }, }, }, NewChat: { Return: "Kembali", - Skip: "Lewati", - Title: "Pilih Masks", - SubTitle: "Berkonversasilah dengan diri Anda di balik masks", - More: "Lebih Lanjut", - NotShow: "Jangan Tampilkan Sekarang", + Skip: "Mulai Sekarang", + NotShow: "Jangan Tampilkan Lagi", ConfirmNoShow: - "Pastikan untuk menonaktifkannya? Anda dapat mengaktifkannya nanti melalui pengaturan.", + "Konfirmasi untuk menonaktifkan? Setelah dinonaktifkan, Anda dapat mengaktifkannya kembali kapan saja di pengaturan.", + Title: "Pilih Masker", + SubTitle: "Mulai sekarang, berinteraksi dengan pemikiran di balik masker", + More: "Lihat Semua", + }, + + URLCommand: { + Code: "Terdeteksi bahwa tautan sudah mengandung kode akses, apakah akan diisi secara otomatis?", + Settings: + "Terdeteksi bahwa tautan mengandung pengaturan preset, apakah akan diisi secara otomatis?", }, UI: { Confirm: "Konfirmasi", Cancel: "Batal", Close: "Tutup", - Create: "Buat", + Create: "Buat Baru", Edit: "Edit", + Export: "Ekspor", + Import: "Impor", + Sync: "Sinkronkan", + Config: "Konfigurasi", }, Exporter: { Description: { @@ -380,11 +549,7 @@ const id: PartialLocaleType = { Model: "Model", Messages: "Pesan", Topic: "Topik", - Time: "Tanggal & Waktu", - }, - URLCommand: { - Code: "Kode akses terdeteksi dari url, konfirmasi untuk mendaftar ? ", - Settings: "Pengaturan terdeteksi dari url, konfirmasi untuk diterapkan ?", + Time: "Waktu", }, }; diff --git a/app/locales/it.ts b/app/locales/it.ts index 5981c8d3db3..06e9592c5ec 100644 --- a/app/locales/it.ts +++ b/app/locales/it.ts @@ -1,75 +1,163 @@ import { SubmitKey } from "../store/config"; import type { PartialLocaleType } from "./index"; +import { getClientConfig } from "../config/client"; + +const isApp = !!getClientConfig()?.isApp; const it: PartialLocaleType = { WIP: "Work in progress...", Error: { - Unauthorized: - "Accesso non autorizzato, inserire il codice di accesso nella [pagina](/#/auth) delle impostazioni.", + Unauthorized: isApp + ? "API Key non valido rilevato. Vai alla pagina [Impostazioni](/#/settings) per controllare se l'API Key è configurata correttamente." + : "La password di accesso è errata o mancante. Vai alla pagina [Login](/#/auth) per inserire la password corretta o inserisci la tua API Key OpenAI nella pagina [Impostazioni](/#/settings).", + }, + Auth: { + Title: "Password richiesta", + Tips: "L'amministratore ha abilitato la verifica della password. Inserisci il codice di accesso qui sotto", + SubTips: "O inserisci la tua chiave API OpenAI o Google", + Input: "Inserisci il codice di accesso qui", + Confirm: "Conferma", + Later: "Più tardi", }, ChatItem: { - ChatItemCount: (count: number) => `${count} messaggi`, + ChatItemCount: (count: number) => `${count} conversazioni`, }, Chat: { - SubTitle: (count: number) => `${count} messaggi con ChatGPT`, + SubTitle: (count: number) => `Totale ${count} conversazioni`, + EditMessage: { + Title: "Modifica cronologia messaggi", + Topic: { + Title: "Argomento della chat", + SubTitle: "Modifica l'argomento della chat corrente", + }, + }, Actions: { - ChatList: "Vai alla Chat List", - CompressedHistory: "Prompt di memoria della cronologia compressa", - Export: "Esportazione di tutti i messaggi come Markdown", + ChatList: "Visualizza l'elenco dei messaggi", + CompressedHistory: "Visualizza la cronologia Prompt compressa", + Export: "Esporta la cronologia chat", Copy: "Copia", - Stop: "Stop", + Stop: "Interrompi", Retry: "Riprova", - Delete: "Delete", + Pin: "Fissa", + PinToastContent: "1 conversazione fissata ai suggerimenti predefiniti", + PinToastAction: "Visualizza", + Delete: "Elimina", + Edit: "Modifica", + }, + Commands: { + new: "Nuova chat", + newm: "Nuova chat da maschera", + next: "Chat successiva", + prev: "Chat precedente", + clear: "Pulisci contesto", + del: "Elimina chat", + }, + InputActions: { + Stop: "Interrompi risposta", + ToBottom: "Scorri fino al più recente", + Theme: { + auto: "Tema automatico", + light: "Tema chiaro", + dark: "Tema scuro", + }, + Prompt: "Comandi rapidi", + Masks: "Tutte le maschere", + Clear: "Pulisci chat", + Settings: "Impostazioni conversazione", + UploadImage: "Carica immagine", }, - Rename: "Rinomina Chat", - Typing: "Typing…", + Rename: "Rinomina conversazione", + Typing: "Digitazione in corso…", Input: (submitKey: string) => { - var inputHints = `Scrivi qualcosa e premi ${submitKey} per inviare`; + var inputHints = `${submitKey} per inviare`; if (submitKey === String(SubmitKey.Enter)) { - inputHints += ", premi Shift + Enter per andare a capo"; + inputHints += ",Shift + Enter per andare a capo"; } - return inputHints; + return ( + inputHints + + ",/ per attivare il completamento automatico, : per attivare il comando" + ); }, Send: "Invia", Config: { - Reset: "Reset to Default", - SaveAs: "Save as Mask", + Reset: "Pulisci memoria", + SaveAs: "Salva come maschera", }, + IsContext: "Suggerimenti predefiniti", }, Export: { - Title: "Tutti i messaggi", + Title: "Condividi cronologia chat", Copy: "Copia tutto", - Download: "Scarica", - MessageFromYou: "Messaggio da te", - MessageFromChatGPT: "Messaggio da ChatGPT", + Download: "Scarica file", + Share: "Condividi su ShareGPT", + MessageFromYou: "Utente", + MessageFromChatGPT: "ChatGPT", + Format: { + Title: "Formato di esportazione", + SubTitle: "Puoi esportare come testo Markdown o immagine PNG", + }, + IncludeContext: { + Title: "Includi contesto maschera", + SubTitle: "Mostrare il contesto della maschera nei messaggi", + }, + Steps: { + Select: "Seleziona", + Preview: "Anteprima", + }, + Image: { + Toast: "Generazione dello screenshot in corso", + Modal: + "Tieni premuto o fai clic con il tasto destro per salvare l'immagine", + }, + }, + Select: { + Search: "Cerca messaggi", + All: "Seleziona tutto", + Latest: "Ultimi messaggi", + Clear: "Pulisci selezione", }, Memory: { - Title: "Prompt di memoria", - EmptyContent: "Vuoto.", - Copy: "Copia tutto", - Send: "Send Memory", - Reset: "Reset Session", - ResetConfirm: - "Ripristinare cancellerà la conversazione corrente e la cronologia di memoria. Sei sicuro che vuoi riavviare?", + Title: "Riassunto storico", + EmptyContent: + "Il contenuto della conversazione è troppo breve, nessun riassunto necessario", + Send: "Comprimi automaticamente la cronologia chat e inviala come contesto", + Copy: "Copia riassunto", + Reset: "[unused]", + ResetConfirm: "Confermi la cancellazione del riassunto storico?", }, Home: { - NewChat: "Nuova Chat", - DeleteChat: "Confermare la cancellazione della conversazione selezionata?", - DeleteToast: "Chat Cancellata", - Revert: "Revert", + NewChat: "Nuova chat", + DeleteChat: "Confermi l'eliminazione della conversazione selezionata?", + DeleteToast: "Conversazione eliminata", + Revert: "Annulla", }, Settings: { Title: "Impostazioni", - SubTitle: "Tutte le impostazioni", + SubTitle: "Tutte le opzioni di impostazione", + Danger: { + Reset: { + Title: "Ripristina tutte le impostazioni", + SubTitle: "Ripristina tutte le opzioni ai valori predefiniti", + Action: "Ripristina subito", + Confirm: "Confermi il ripristino di tutte le impostazioni?", + }, + Clear: { + Title: "Elimina tutti i dati", + SubTitle: "Elimina tutte le chat e i dati delle impostazioni", + Action: "Elimina subito", + Confirm: + "Confermi l'eliminazione di tutte le chat e dei dati delle impostazioni?", + }, + }, Lang: { - Name: "Language", // ATTENTION: if you wanna add a new translation, please do not translate this value, leave it as `Language` + Name: "Language", // ATTENZIONE: se vuoi aggiungere una nuova traduzione, non tradurre questo valore, lascialo come `Language` All: "Tutte le lingue", }, Avatar: "Avatar", FontSize: { - Title: "Dimensione carattere", - SubTitle: "Regolare la dimensione dei caratteri del contenuto della chat", + Title: "Dimensione del carattere", + SubTitle: "Dimensione del carattere per il contenuto della chat", }, FontFamily: { Title: "Font della Chat", @@ -78,167 +166,401 @@ const it: PartialLocaleType = { Placeholder: "Nome del Font", }, InjectSystemPrompts: { - Title: "Inserisci Prompts di Sistema", + Title: "Inserisci suggerimenti di sistema", + SubTitle: + "Aggiungi forzatamente un suggerimento di sistema simulato di ChatGPT all'inizio della lista dei messaggi per ogni richiesta", + }, + InputTemplate: { + Title: "Preprocessing dell'input utente", SubTitle: - "Aggiungi forzatamente un prompt di sistema simulato di ChatGPT all'inizio della lista dei messaggi per ogni richiesta", + "L'ultimo messaggio dell'utente verrà inserito in questo modello", }, + Update: { - Version: (x: string) => `Versione: ${x}`, - IsLatest: "Ultima versione", + Version: (x: string) => `Versione attuale: ${x}`, + IsLatest: "È l'ultima versione", CheckUpdate: "Controlla aggiornamenti", - IsChecking: "Sto controllando gli aggiornamenti...", - FoundUpdate: (x: string) => `Trovata nuova versione: ${x}`, - GoToUpdate: "Aggiorna", + IsChecking: "Verifica aggiornamenti in corso...", + FoundUpdate: (x: string) => `Nuova versione trovata: ${x}`, + GoToUpdate: "Vai all'aggiornamento", }, - SendKey: "Tasto invia", + SendKey: "Tasto di invio", Theme: "Tema", - TightBorder: "Schermo intero", + TightBorder: "Modalità senza bordi", SendPreviewBubble: { - Title: "Anteprima di digitazione", - SubTitle: "Preview markdown in bubble", + Title: "Bolla di anteprima", + SubTitle: "Anteprima del contenuto Markdown nella bolla di anteprima", + }, + AutoGenerateTitle: { + Title: "Generazione automatica del titolo", + SubTitle: + "Genera un titolo appropriato in base al contenuto della conversazione", + }, + Sync: { + CloudState: "Dati cloud", + NotSyncYet: "Non è ancora avvenuta alcuna sincronizzazione", + Success: "Sincronizzazione riuscita", + Fail: "Sincronizzazione fallita", + + Config: { + Modal: { + Title: "Configura sincronizzazione cloud", + Check: "Controlla disponibilità", + }, + SyncType: { + Title: "Tipo di sincronizzazione", + SubTitle: "Scegli il server di sincronizzazione preferito", + }, + Proxy: { + Title: "Abilita proxy", + SubTitle: + "Durante la sincronizzazione nel browser, è necessario abilitare il proxy per evitare restrizioni CORS", + }, + ProxyUrl: { + Title: "Indirizzo proxy", + SubTitle: "Solo per il proxy CORS fornito con questo progetto", + }, + + WebDav: { + Endpoint: "Indirizzo WebDAV", + UserName: "Nome utente", + Password: "Password", + }, + + UpStash: { + Endpoint: "URL REST di UpStash Redis", + UserName: "Nome di backup", + Password: "Token REST di UpStash Redis", + }, + }, + + LocalState: "Dati locali", + Overview: (overview: any) => { + return `${overview.chat} chat, ${overview.message} messaggi, ${overview.prompt} suggerimenti, ${overview.mask} maschere`; + }, + ImportFailed: "Importazione fallita", }, Mask: { Splash: { - Title: "Mask Splash Screen", - SubTitle: "Show a mask splash screen before starting new chat", + Title: "Pagina di avvio delle maschere", + SubTitle: + "Mostra la pagina di avvio delle maschere quando si avvia una nuova chat", + }, + Builtin: { + Title: "Nascondi maschere predefinite", + SubTitle: + "Nascondi le maschere predefinite in tutte le liste delle maschere", }, }, Prompt: { Disable: { - Title: "Disabilita l'auto completamento", - SubTitle: "Input / per attivare il completamento automatico", + Title: "Disabilita completamento automatico dei suggerimenti", + SubTitle: + "Inserisci / all'inizio della casella di input per attivare il completamento automatico", }, - List: "Elenco dei suggerimenti", + List: "Elenco dei suggerimenti personalizzati", ListCount: (builtin: number, custom: number) => - `${builtin} built-in, ${custom} user-defined`, + `${builtin} predefiniti, ${custom} definiti dall'utente`, Edit: "Modifica", Modal: { - Title: "Prompt List", - Add: "Add One", - Search: "Search Prompts", + Title: "Elenco dei suggerimenti", + Add: "Nuovo", + Search: "Cerca suggerimenti", }, EditModal: { - Title: "Edit Prompt", + Title: "Modifica suggerimenti", }, }, HistoryCount: { - Title: "Conteggio dei messaggi allegati", - SubTitle: "Numero di messaggi inviati allegati per richiesta", + Title: "Numero di messaggi storici inclusi", + SubTitle: "Numero di messaggi storici inclusi in ogni richiesta", }, CompressThreshold: { - Title: "Soglia di compressione della cronologia", + Title: "Soglia di compressione dei messaggi storici", SubTitle: - "Comprimerà se la lunghezza dei messaggi non compressi supera il valore", + "Quando i messaggi storici non compressi superano questo valore, verranno compressi", }, Usage: { - Title: "Bilancio Account", + Title: "Verifica saldo", SubTitle(used: any, total: any) { - return `Attualmente usato in questo mese $${used}, soglia massima $${total}`; + return `Utilizzato questo mese $${used}, totale abbonamento $${total}`; }, - IsChecking: "Controllando...", - Check: "Controlla ancora", - NoAccess: "Inserire la chiave API per controllare il saldo", + IsChecking: "Verifica in corso…", + Check: "Verifica di nuovo", + NoAccess: + "Inserisci API Key o password di accesso per visualizzare il saldo", }, - Model: "Modello GPT", + Access: { + AccessCode: { + Title: "Password di accesso", + SubTitle: "L'amministratore ha abilitato l'accesso criptato", + Placeholder: "Inserisci la password di accesso", + }, + CustomEndpoint: { + Title: "Interfaccia personalizzata", + SubTitle: "Utilizzare servizi Azure o OpenAI personalizzati", + }, + Provider: { + Title: "Fornitore del modello", + SubTitle: "Cambia fornitore di servizi", + }, + OpenAI: { + ApiKey: { + Title: "API Key", + SubTitle: + "Utilizza una chiave OpenAI personalizzata per bypassare le limitazioni di accesso", + Placeholder: "API Key OpenAI", + }, + + Endpoint: { + Title: "Indirizzo dell'interfaccia", + SubTitle: "Deve includere http(s):// oltre all'indirizzo predefinito", + }, + }, + Azure: { + ApiKey: { + Title: "Chiave dell'interfaccia", + SubTitle: + "Utilizza una chiave Azure personalizzata per bypassare le limitazioni di accesso", + Placeholder: "Chiave API Azure", + }, + + Endpoint: { + Title: "Indirizzo dell'interfaccia", + SubTitle: "Esempio:", + }, + + ApiVerion: { + Title: "Versione dell'interfaccia (versione api azure)", + SubTitle: "Scegli una versione specifica", + }, + }, + Anthropic: { + ApiKey: { + Title: "Chiave dell'interfaccia", + SubTitle: + "Utilizza una chiave Anthropic personalizzata per bypassare le limitazioni di accesso", + Placeholder: "API Key Anthropic", + }, + + Endpoint: { + Title: "Indirizzo dell'interfaccia", + SubTitle: "Esempio:", + }, + + ApiVerion: { + Title: "Versione dell'interfaccia (versione api claude)", + SubTitle: "Scegli una versione API specifica", + }, + }, + Google: { + ApiKey: { + Title: "API Key", + SubTitle: "Ottieni la tua chiave API da Google AI", + Placeholder: "Inserisci la tua chiave API Google AI Studio", + }, + + Endpoint: { + Title: "Indirizzo dell'interfaccia", + SubTitle: "Esempio:", + }, + + ApiVersion: { + Title: "Versione API (solo per gemini-pro)", + SubTitle: "Scegli una versione API specifica", + }, + GoogleSafetySettings: { + Title: "Livello di filtraggio sicurezza Google", + SubTitle: "Imposta il livello di filtraggio dei contenuti", + }, + }, + Baidu: { + ApiKey: { + Title: "API Key", + SubTitle: "Utilizza una chiave API Baidu personalizzata", + Placeholder: "API Key Baidu", + }, + SecretKey: { + Title: "Secret Key", + SubTitle: "Utilizza una chiave segreta Baidu personalizzata", + Placeholder: "Secret Key Baidu", + }, + Endpoint: { + Title: "Indirizzo dell'interfaccia", + SubTitle: + "Non supporta configurazioni personalizzate, andare su .env", + }, + }, + ByteDance: { + ApiKey: { + Title: "Chiave dell'interfaccia", + SubTitle: "Utilizza una chiave API ByteDance personalizzata", + Placeholder: "API Key ByteDance", + }, + Endpoint: { + Title: "Indirizzo dell'interfaccia", + SubTitle: "Esempio:", + }, + }, + Alibaba: { + ApiKey: { + Title: "Chiave dell'interfaccia", + SubTitle: "Utilizza una chiave API Alibaba Cloud personalizzata", + Placeholder: "API Key Alibaba Cloud", + }, + Endpoint: { + Title: "Indirizzo dell'interfaccia", + SubTitle: "Esempio:", + }, + }, + CustomModel: { + Title: "Nome del modello personalizzato", + SubTitle: + "Aggiungi opzioni di modelli personalizzati, separati da virgole", + }, + }, + + Model: "Modello (model)", Temperature: { - Title: "Temperature", - SubTitle: "Un valore maggiore rende l'output più casuale", + Title: "Casualità (temperature)", + SubTitle: "Valore più alto, risposte più casuali", + }, + TopP: { + Title: "Campionamento nucleare (top_p)", + SubTitle: + "Simile alla casualità, ma non cambiarlo insieme alla casualità", }, MaxTokens: { - Title: "Token massimi", - SubTitle: "Lunghezza massima dei token in ingresso e dei token generati", + Title: "Limite di token per risposta (max_tokens)", + SubTitle: "Numero massimo di token per ogni interazione", }, PresencePenalty: { - Title: "Penalità di presenza", + Title: "Novità del tema (presence_penalty)", SubTitle: - "Un valore maggiore aumenta la probabilità di parlare di nuovi argomenti", + "Valore più alto, maggiore possibilità di espandere a nuovi argomenti", }, FrequencyPenalty: { - Title: "Penalità di frequenza", + Title: "Penalità di frequenza (frequency_penalty)", SubTitle: - "Un valore maggiore che diminuisce la probabilità di ripetere la stessa riga", + "Valore più alto, maggiore possibilità di ridurre le ripetizioni", }, }, Store: { - DefaultTopic: "Nuova conversazione", - BotHello: "Ciao, come posso aiutarti oggi?", - Error: "Qualcosa è andato storto, riprova più tardi.", + DefaultTopic: "Nuova chat", + BotHello: "Come posso aiutarti?", + Error: "Si è verificato un errore, riprova più tardi", Prompt: { History: (content: string) => - "Questo è un riassunto della cronologia delle chat tra l'IA e l'utente:" + - content, + "Questo è un riassunto della chat storica come contesto: " + content, Topic: - "Si prega di generare un titolo di quattro o cinque parole che riassuma la nostra conversazione senza alcuna traccia, punteggiatura, virgolette, punti, simboli o testo aggiuntivo. Rimuovere le virgolette", + "Riporta il tema di questa frase in modo conciso con quattro o cinque parole, senza spiegazioni, punteggiatura, interiezioni, testo superfluo e senza grassetto. Se non c'è un tema, rispondi direttamente con 'chit-chat'", Summarize: - "Riassumi brevemente la nostra discussione in 200 caratteri o meno per usarla come spunto per una futura conversazione.", + "Riassumi brevemente il contenuto della conversazione come prompt di contesto per il seguito, mantenendolo entro 200 parole", }, }, Copy: { - Success: "Copiato sugli appunti", - Failed: - "Copia fallita, concedere l'autorizzazione all'accesso agli appunti", + Success: "Copiato negli appunti", + Failed: "Copia fallita, concedi i permessi per gli appunti", + }, + Download: { + Success: "Contenuto scaricato nella tua directory.", + Failed: "Download fallito.", }, Context: { - Toast: (x: any) => `Con ${x} prompts contestuali`, - Edit: "Prompt contestuali e di memoria", - Add: "Aggiungi altro", + Toast: (x: any) => `Include ${x} suggerimenti predefiniti`, + Edit: "Impostazioni della conversazione attuale", + Add: "Aggiungi una conversazione", + Clear: "Contesto cancellato", + Revert: "Ripristina contesto", }, Plugin: { Name: "Plugin", }, FineTuned: { - Sysmessage: "Sei un assistente che", + Sysmessage: "Sei un assistente", }, Mask: { - Name: "Mask", + Name: "Maschera", Page: { - Title: "Prompt Template", - SubTitle: (count: number) => `${count} prompt templates`, - Search: "Search Templates", - Create: "Create", + Title: "Maschere dei ruoli predefiniti", + SubTitle: (count: number) => `${count} definizioni di ruoli predefiniti`, + Search: "Cerca maschere di ruolo", + Create: "Crea nuovo", }, Item: { - Info: (count: number) => `${count} prompts`, - Chat: "Chat", - View: "View", - Edit: "Edit", - Delete: "Delete", - DeleteConfirm: "Confirm to delete?", + Info: (count: number) => `Include ${count} conversazioni predefinite`, + Chat: "Conversazione", + View: "Visualizza", + Edit: "Modifica", + Delete: "Elimina", + DeleteConfirm: "Confermi eliminazione?", }, EditModal: { Title: (readonly: boolean) => - `Edit Prompt Template ${readonly ? "(readonly)" : ""}`, - Download: "Download", - Clone: "Clone", + `Modifica maschera predefinita ${readonly ? "(sola lettura)" : ""}`, + Download: "Scarica predefinito", + Clone: "Clona predefinito", }, Config: { - Avatar: "Bot Avatar", - Name: "Bot Name", + Avatar: "Avatar del ruolo", + Name: "Nome del ruolo", + Sync: { + Title: "Utilizza impostazioni globali", + SubTitle: + "La conversazione attuale utilizzerà le impostazioni globali del modello", + Confirm: + "Le impostazioni personalizzate della conversazione attuale verranno sovrascritte automaticamente, confermi l'attivazione delle impostazioni globali?", + }, + HideContext: { + Title: "Nascondi conversazioni predefinite", + SubTitle: + "Le conversazioni predefinite non appariranno nella finestra della chat dopo averle nascoste", + }, + Share: { + Title: "Condividi questa maschera", + SubTitle: "Genera un link diretto a questa maschera", + Action: "Copia link", + }, }, }, NewChat: { - Return: "Return", - Skip: "Skip", - Title: "Pick a Mask", - SubTitle: "Chat with the Soul behind the Mask", - More: "Find More", - NotShow: "Not Show Again", - ConfirmNoShow: "Confirm to disable?You can enable it in settings later.", + Return: "Torna", + Skip: "Inizia subito", + NotShow: "Non mostrare più", + ConfirmNoShow: + "Confermi di disabilitare? Dopo la disabilitazione, puoi riattivare in qualsiasi momento dalle impostazioni.", + Title: "Scegli una maschera", + SubTitle: "Inizia ora e interagisci con il pensiero dietro la maschera", + More: "Vedi tutto", + }, + + URLCommand: { + Code: "Codice di accesso rilevato nel link, riempirlo automaticamente?", + Settings: + "Impostazioni predefinite rilevate nel link, riempirle automaticamente?", }, UI: { - Confirm: "Confirm", - Cancel: "Cancel", - Close: "Close", - Create: "Create", - Edit: "Edit", + Confirm: "Conferma", + Cancel: "Annulla", + Close: "Chiudi", + Create: "Crea", + Edit: "Modifica", + Export: "Esporta", + Import: "Importa", + Sync: "Sincronizza", + Config: "Configura", }, Exporter: { + Description: { + Title: + "Solo i messaggi dopo la cancellazione del contesto verranno visualizzati", + }, Model: "Modello", Messages: "Messaggi", - Topic: "Argomento", + Topic: "Tema", Time: "Tempo", }, }; diff --git a/app/locales/jp.ts b/app/locales/jp.ts index 94ed8f8acdc..acd22744774 100644 --- a/app/locales/jp.ts +++ b/app/locales/jp.ts @@ -1,117 +1,152 @@ import { SubmitKey } from "../store/config"; import type { PartialLocaleType } from "./index"; +import { getClientConfig } from "../config/client"; + +const isApp = !!getClientConfig()?.isApp; const jp: PartialLocaleType = { WIP: "この機能は開発中です", Error: { - Unauthorized: - "現在は未承認状態です。左下の設定ボタンをクリックし、アクセスパスワードかOpenAIのAPIキーを入力してください。", + Unauthorized: isApp + ? "無効なAPIキーが検出されました。[設定](/#/settings)ページでAPIキーが正しく設定されているか確認してください。" + : "アクセスパスワードが正しくないか空です。[ログイン](/#/auth)ページで正しいアクセスパスワードを入力するか、[設定](/#/settings)ページで自分のOpenAI APIキーを入力してください。", + }, + Auth: { + Title: "パスワードが必要です", + Tips: "管理者がパスワード認証を有効にしました。以下にアクセスコードを入力してください", + SubTips: "または、OpenAIまたはGoogle APIキーを入力してください", + Input: "ここにアクセスコードを入力", + Confirm: "確認", + Later: "後で", }, ChatItem: { - ChatItemCount: (count: number) => `${count} 通のチャット`, + ChatItemCount: (count: number) => `${count}件の会話`, }, Chat: { - SubTitle: (count: number) => `ChatGPTとの ${count} 通のチャット`, + SubTitle: (count: number) => `合計${count}件の会話`, EditMessage: { - Title: "全てのメッセージを修正", + Title: "メッセージ履歴を編集", Topic: { - Title: "トピック", - SubTitle: "このトピックを変える", + Title: "チャットテーマ", + SubTitle: "現在のチャットテーマを変更", }, }, Actions: { - ChatList: "メッセージリストを表示", - CompressedHistory: "圧縮された履歴プロンプトを表示", + ChatList: "メッセージリストを見る", + CompressedHistory: "圧縮された履歴プロンプトを見る", Export: "チャット履歴をエクスポート", Copy: "コピー", Stop: "停止", - Retry: "リトライ", - Pin: "ピン", - PinToastContent: - "コンテキストプロンプトに1つのメッセージをピン留めしました", - PinToastAction: "表示", + Retry: "再試行", + Pin: "固定", + PinToastContent: "1件の会話をプリセットプロンプトに固定しました", + PinToastAction: "見る", Delete: "削除", Edit: "編集", }, + Commands: { + new: "新しいチャット", + newm: "マスクから新しいチャット", + next: "次のチャット", + prev: "前のチャット", + clear: "コンテキストをクリア", + del: "チャットを削除", + }, + InputActions: { + Stop: "応答を停止", + ToBottom: "最新へスクロール", + Theme: { + auto: "自動テーマ", + light: "ライトモード", + dark: "ダークモード", + }, + Prompt: "クイックコマンド", + Masks: "すべてのマスク", + Clear: "チャットをクリア", + Settings: "チャット設定", + UploadImage: "画像をアップロード", + }, Rename: "チャットの名前を変更", Typing: "入力中…", Input: (submitKey: string) => { - var inputHints = `${submitKey} で送信`; + var inputHints = `${submitKey}で送信`; if (submitKey === String(SubmitKey.Enter)) { - inputHints += ",Shift + Enter で改行"; + inputHints += "、Shift + Enterで改行"; } - return inputHints + ",/ で自動補完をトリガー"; + return inputHints + "、/で補完をトリガー、:でコマンドをトリガー"; }, Send: "送信", Config: { - Reset: "リセット", - SaveAs: "保存", + Reset: "メモリをクリア", + SaveAs: "マスクとして保存", }, + IsContext: "プリセットプロンプト", }, Export: { - Title: "チャット履歴をMarkdown形式でエクスポート", + Title: "チャット履歴を共有", Copy: "すべてコピー", Download: "ファイルをダウンロード", - MessageFromYou: "あなたからのメッセージ", - MessageFromChatGPT: "ChatGPTからのメッセージ", + Share: "ShareGPTに共有", + MessageFromYou: "ユーザー", + MessageFromChatGPT: "ChatGPT", Format: { - Title: "フォーマットをエクスポート", - SubTitle: "マークダウン形式、PNG画像形式を選択できます。", + Title: "エクスポート形式", + SubTitle: "MarkdownテキストまたはPNG画像としてエクスポートできます", }, IncludeContext: { - Title: "コンテキストを含みますか?", - SubTitle: "コンテキストを含ませるか否か", + Title: "マスクコンテキストを含む", + SubTitle: "メッセージにマスクコンテキストを表示するかどうか", }, Steps: { - Select: "エクスポート設定", + Select: "選択", Preview: "プレビュー", }, Image: { - Toast: "画像生成中...", - Modal: "長押し、または右クリックで保存してください。", + Toast: "スクリーンショットを生成中", + Modal: "長押しまたは右クリックして画像を保存", }, }, Select: { - Search: "検索", + Search: "メッセージを検索", All: "すべて選択", - Latest: "新しいメッセージを選択", - Clear: "クリア", + Latest: "最新の数件", + Clear: "選択をクリア", }, Memory: { - Title: "履歴メモリ", - EmptyContent: "まだ記憶されていません", - Send: "メモリを送信", - Copy: "メモリをコピー", - Reset: "チャットをリセット", - ResetConfirm: - "リセット後、現在のチャット履歴と過去のメモリがクリアされます。リセットしてもよろしいですか?", + Title: "履歴の要約", + EmptyContent: "対話内容が短いため、要約は不要です", + Send: "チャット履歴を自動的に圧縮し、コンテキストとして送信", + Copy: "要約をコピー", + Reset: "[unused]", + ResetConfirm: "履歴の要約をリセットしてもよろしいですか?", }, Home: { NewChat: "新しいチャット", - DeleteChat: "選択したチャットを削除してもよろしいですか?", - DeleteToast: "チャットが削除されました", + DeleteChat: "選択した会話を削除してもよろしいですか?", + DeleteToast: "会話を削除しました", Revert: "元に戻す", }, Settings: { Title: "設定", - SubTitle: "設定オプション", + SubTitle: "すべての設定オプション", + Danger: { Reset: { - Title: "設定をリセット", - SubTitle: "すべての設定項目をデフォルトにリセットします", - Action: "今すぐリセットする", - Confirm: "すべての設定項目をリセットしてもよろしいですか?", + Title: "すべての設定をリセット", + SubTitle: "すべての設定項目をデフォルト値にリセット", + Action: "今すぐリセット", + Confirm: "すべての設定をリセットしてもよろしいですか?", }, Clear: { - Title: "データを消去", - SubTitle: "すべてのチャット履歴と設定を消去します", - Action: "今すぐ消去する", - Confirm: "すべてのチャット履歴と設定を消去しますか?", + Title: "すべてのデータをクリア", + SubTitle: "すべてのチャット、設定データをクリア", + Action: "今すぐクリア", + Confirm: "すべてのチャット、設定データをクリアしてもよろしいですか?", }, }, Lang: { Name: "Language", // ATTENTION: if you wanna add a new translation, please do not translate this value, leave it as `Language` - All: "全ての言語", + All: "すべての言語", }, Avatar: "アバター", FontSize: { @@ -125,183 +160,387 @@ const jp: PartialLocaleType = { Placeholder: "フォント名", }, InjectSystemPrompts: { - Title: "システムプロンプトの挿入", + Title: "システムプロンプトの注入", SubTitle: - "各リクエストのメッセージリストの先頭に、ChatGPTのシステムプロンプトを強制的に追加します", + "すべてのリクエストメッセージリストの先頭にChatGPTのシステムプロンプトを強制的に追加", }, InputTemplate: { - Title: "入力の前処理", - SubTitle: "新規入力がこのテンプレートに埋め込まれます", + Title: "ユーザー入力のプリプロセス", + SubTitle: "最新のメッセージをこのテンプレートに埋め込む", }, + Update: { Version: (x: string) => `現在のバージョン:${x}`, IsLatest: "最新バージョンです", - CheckUpdate: "アップデートを確認", - IsChecking: "アップデートを確認しています...", - FoundUpdate: (x: string) => `新しいバージョンが見つかりました:${x}`, - GoToUpdate: "更新する", + CheckUpdate: "更新を確認", + IsChecking: "更新を確認中...", + FoundUpdate: (x: string) => `新しいバージョンを発見:${x}`, + GoToUpdate: "更新へ進む", }, SendKey: "送信キー", Theme: "テーマ", TightBorder: "ボーダーレスモード", SendPreviewBubble: { - Title: "プレビューバブルの送信", - SubTitle: "プレビューバブルでマークダウンコンテンツをプレビュー", + Title: "プレビューバブル", + SubTitle: "プレビューバブルでMarkdownコンテンツをプレビュー", + }, + AutoGenerateTitle: { + Title: "自動タイトル生成", + SubTitle: "チャット内容に基づいて適切なタイトルを生成", + }, + Sync: { + CloudState: "クラウドデータ", + NotSyncYet: "まだ同期されていません", + Success: "同期に成功しました", + Fail: "同期に失敗しました", + + Config: { + Modal: { + Title: "クラウド同期の設定", + Check: "可用性を確認", + }, + SyncType: { + Title: "同期タイプ", + SubTitle: "好きな同期サーバーを選択", + }, + Proxy: { + Title: "プロキシを有効化", + SubTitle: + "ブラウザで同期する場合、クロスオリジン制限を避けるためにプロキシを有効にする必要があります", + }, + ProxyUrl: { + Title: "プロキシURL", + SubTitle: "このプロジェクトに組み込まれたクロスオリジンプロキシ専用", + }, + + WebDav: { + Endpoint: "WebDAV エンドポイント", + UserName: "ユーザー名", + Password: "パスワード", + }, + + UpStash: { + Endpoint: "UpStash Redis REST URL", + UserName: "バックアップ名", + Password: "UpStash Redis REST トークン", + }, + }, + + LocalState: "ローカルデータ", + Overview: (overview: any) => { + return `${overview.chat} 回の対話、${overview.message} 件のメッセージ、${overview.prompt} 件のプロンプト、${overview.mask} 件のマスク`; + }, + ImportFailed: "インポートに失敗しました", }, Mask: { Splash: { - Title: "キャラクターページ", - SubTitle: "新規チャット作成時にキャラクターページを表示する", + Title: "マスク起動画面", + SubTitle: "新しいチャットを作成する際にマスク起動画面を表示", }, Builtin: { - Title: "ビルトインマスクを非表示", - SubTitle: "マスクリストからビルトインを非表示する", + Title: "内蔵マスクを非表示", + SubTitle: "すべてのマスクリストで内蔵マスクを非表示", }, }, Prompt: { Disable: { - Title: "プロンプトの自動補完を無効にする", - SubTitle: - "入力フィールドの先頭に / を入力すると、自動補完がトリガーされます。", + Title: "プロンプトの自動補完を無効化", + SubTitle: "入力フィールドの先頭に / を入力して自動補完をトリガー", }, List: "カスタムプロンプトリスト", ListCount: (builtin: number, custom: number) => - `組み込み ${builtin} 件、ユーザー定義 ${custom} 件`, + `内蔵 ${builtin} 件、ユーザー定義 ${custom} 件`, Edit: "編集", Modal: { Title: "プロンプトリスト", - Add: "新規追加", - Search: "プロンプトワード検索", + Add: "新規作成", + Search: "プロンプトを検索", }, EditModal: { - Title: "編集", + Title: "プロンプトを編集", }, }, HistoryCount: { - Title: "履歴メッセージ数を添付", - SubTitle: "リクエストごとに添付する履歴メッセージ数", + Title: "履歴メッセージ数", + SubTitle: "各リクエストに含まれる履歴メッセージの数", }, CompressThreshold: { - Title: "履歴メッセージの長さ圧縮しきい値", - SubTitle: - "圧縮されていない履歴メッセージがこの値を超えた場合、圧縮が行われます。", + Title: "履歴メッセージの圧縮閾値", + SubTitle: "未圧縮の履歴メッセージがこの値を超えた場合、圧縮が行われます", }, Usage: { - Title: "残高照会", + Title: "残高確認", SubTitle(used: any, total: any) { - return `今月は $${used} を使用しました。総額は $${total} です。`; + return `今月の使用量 $${used}、サブスクリプション合計 $${total}`; }, - IsChecking: "確認中...", + IsChecking: "確認中…", Check: "再確認", - NoAccess: "APIキーまたはアクセスパスワードを入力して残高を表示", + NoAccess: "APIキーまたはアクセスパスワードを入力して残高を確認", + }, + + Access: { + AccessCode: { + Title: "アクセスパスワード", + SubTitle: "管理者が暗号化アクセスを有効にしました", + Placeholder: "アクセスパスワードを入力してください", + }, + CustomEndpoint: { + Title: "カスタムエンドポイント", + SubTitle: "カスタムAzureまたはOpenAIサービスを使用するかどうか", + }, + Provider: { + Title: "モデルプロバイダー", + SubTitle: "異なるプロバイダーに切り替える", + }, + OpenAI: { + ApiKey: { + Title: "APIキー", + SubTitle: "カスタムOpenAIキーを使用してパスワードアクセス制限を回避", + Placeholder: "OpenAI APIキー", + }, + + Endpoint: { + Title: "エンドポイント", + SubTitle: + "デフォルト以外のアドレスにはhttp(s)://を含める必要があります", + }, + }, + Azure: { + ApiKey: { + Title: "APIキー", + SubTitle: "カスタムAzureキーを使用してパスワードアクセス制限を回避", + Placeholder: "Azure APIキー", + }, + + Endpoint: { + Title: "エンドポイント", + SubTitle: "例:", + }, + + ApiVerion: { + Title: "APIバージョン (azure api version)", + SubTitle: "特定のバージョンを選択", + }, + }, + Anthropic: { + ApiKey: { + Title: "APIキー", + SubTitle: + "カスタムAnthropicキーを使用してパスワードアクセス制限を回避", + Placeholder: "Anthropic APIキー", + }, + + Endpoint: { + Title: "エンドポイント", + SubTitle: "例:", + }, + + ApiVerion: { + Title: "APIバージョン (claude api version)", + SubTitle: "特定のAPIバージョンを選択", + }, + }, + Google: { + ApiKey: { + Title: "APIキー", + SubTitle: "Google AIからAPIキーを取得", + Placeholder: "Google AI Studio APIキーを入力", + }, + + Endpoint: { + Title: "エンドポイント", + SubTitle: "例:", + }, + + ApiVersion: { + Title: "APIバージョン(gemini-pro専用)", + SubTitle: "特定のAPIバージョンを選択", + }, + GoogleSafetySettings: { + Title: "Google セーフティ設定", + SubTitle: "コンテンツフィルタリングレベルを設定", + }, + }, + Baidu: { + ApiKey: { + Title: "APIキー", + SubTitle: "カスタムBaidu APIキーを使用", + Placeholder: "Baidu APIキー", + }, + SecretKey: { + Title: "シークレットキー", + SubTitle: "カスタムBaiduシークレットキーを使用", + Placeholder: "Baiduシークレットキー", + }, + Endpoint: { + Title: "エンドポイント", + SubTitle: "カスタムはサポートしていません、.env設定に進んでください", + }, + }, + ByteDance: { + ApiKey: { + Title: "APIキー", + SubTitle: "カスタムByteDance APIキーを使用", + Placeholder: "ByteDance APIキー", + }, + Endpoint: { + Title: "エンドポイント", + SubTitle: "例:", + }, + }, + Alibaba: { + ApiKey: { + Title: "APIキー", + SubTitle: "カスタムAlibaba Cloud APIキーを使用", + Placeholder: "Alibaba Cloud APIキー", + }, + Endpoint: { + Title: "エンドポイント", + SubTitle: "例:", + }, + }, + CustomModel: { + Title: "カスタムモデル名", + SubTitle: "カスタムモデルの選択肢を追加、英語のカンマで区切る", + }, }, + Model: "モデル (model)", Temperature: { Title: "ランダム性 (temperature)", + SubTitle: "値が大きいほど応答がランダムになります", + }, + TopP: { + Title: "トップP (top_p)", SubTitle: - "値が大きいほど、回答がランダムになります。1以上の値には文字化けが含まれる可能性があります。", + "ランダム性に似ていますが、ランダム性と一緒に変更しないでください", }, MaxTokens: { - Title: "シングルレスポンス制限 (max_tokens)", - SubTitle: "1回のインタラクションで使用される最大トークン数", + Title: "1回の応答制限 (max_tokens)", + SubTitle: "1回の対話で使用される最大トークン数", }, PresencePenalty: { - Title: "トピックの新鮮度 (presence_penalty)", - SubTitle: "値が大きいほど、新しいトピックへの展開が可能になります。", + Title: "新鮮度 (presence_penalty)", + SubTitle: "値が大きいほど新しいトピックに移行する可能性が高くなります", }, FrequencyPenalty: { - Title: "話題の頻度 (frequency_penalty)", - SubTitle: "値が大きいほど、重複語を低減する可能性が高くなります", - }, - AutoGenerateTitle: { - Title: "タイトルの自動生成", - SubTitle: "会話内容に基づいて適切なタイトルを生成する", + Title: "頻度ペナルティ (frequency_penalty)", + SubTitle: "値が大きいほど繰り返しの単語が減少します", }, }, Store: { DefaultTopic: "新しいチャット", - BotHello: "何かお手伝いできることはありますか", - Error: "エラーが発生しました。しばらくしてからやり直してください。", + BotHello: "何かお手伝いできますか?", + Error: "エラーが発生しました。後でもう一度試してください", Prompt: { History: (content: string) => - "これは、AI とユーザの過去のチャットを要約した前提となるストーリーです:" + - content, + "これは前提としての履歴チャットの要約です:" + content, Topic: - "4~5文字でこの文章の簡潔な主題を返してください。説明、句読点、感嘆詞、余分なテキストは無しで。もし主題がない場合は、「おしゃべり」を返してください", + "この文の簡潔なテーマを四から五文字で返してください。説明、句読点、感嘆詞、余計なテキストは不要です。太字も不要です。テーマがない場合は「雑談」と返してください", Summarize: - "あなたとユーザの会話を簡潔にまとめて、後続のコンテキストプロンプトとして使ってください。200字以内に抑えてください。", + "対話の内容を簡潔に要約し、後続のコンテキストプロンプトとして使用します。200文字以内に抑えてください", }, }, Copy: { Success: "クリップボードに書き込みました", - Failed: "コピーに失敗しました。クリップボード許可を与えてください。", + Failed: "コピーに失敗しました。クリップボードの権限を付与してください", + }, + Download: { + Success: "内容がダウンロードされました", + Failed: "ダウンロードに失敗しました", }, Context: { - Toast: (x: any) => `キャラクターが ${x} 件設定されました`, - Edit: "キャラクタープリセットとモデル設定", - Add: "追加", + Toast: (x: any) => `${x} 件のプリセットプロンプトが含まれています`, + Edit: "現在の対話設定", + Add: "対話を追加", + Clear: "コンテキストがクリアされました", + Revert: "コンテキストを元に戻す", + }, + Plugin: { + Name: "プラグイン", + }, + FineTuned: { + Sysmessage: "あなたはアシスタントです", }, - Plugin: { Name: "プラグイン" }, - FineTuned: { Sysmessage: "あなたはアシスタントです" }, Mask: { - Name: "キャラクタープリセット", + Name: "マスク", Page: { - Title: "キャラクタープリセット", - SubTitle: (count: number) => `${count} 件見つかりました。`, - Search: "検索", - Create: "新規", + Title: "プリセットキャラクターマスク", + SubTitle: (count: number) => `${count} 件のプリセットキャラクター定義`, + Search: "キャラクターマスクを検索", + Create: "新規作成", }, Item: { - Info: (count: number) => `包含 ${count} 条预设对话`, - Chat: "会話", - View: "詳細", + Info: (count: number) => `${count} 件のプリセット対話が含まれています`, + Chat: "対話", + View: "表示", Edit: "編集", Delete: "削除", - DeleteConfirm: "本当に削除しますか?", + DeleteConfirm: "削除してもよろしいですか?", }, EditModal: { Title: (readonly: boolean) => - `キャラクタープリセットを編集 ${readonly ? "(読み取り専用)" : ""}`, - Download: "ダウンロード", - Clone: "複製", + `プリセットマスクの編集 ${readonly ? "(読み取り専用)" : ""}`, + Download: "プリセットをダウンロード", + Clone: "プリセットをクローン", }, Config: { - Avatar: "キャラクターのアイコン", - Name: "キャラクターの名前", + Avatar: "キャラクターアバター", + Name: "キャラクター名", Sync: { - Title: "グローバル設定を利用する", - SubTitle: "このチャットでグローバル設定を利用します。", + Title: "グローバル設定を使用", + SubTitle: "現在の対話でグローバルモデル設定を使用するかどうか", Confirm: - "カスタム設定を上書きしてグローバル設定を使用します、よろしいですか?", + "現在の対話のカスタム設定が自動的に上書きされます。グローバル設定を有効にしてもよろしいですか?", }, HideContext: { - Title: "キャラクター設定を表示しない", - SubTitle: "チャット画面でのキャラクター設定を非表示にします。", + Title: "プリセット対話を非表示", + SubTitle: + "非表示にすると、プリセット対話はチャット画面に表示されません", + }, + Share: { + Title: "このマスクを共有", + SubTitle: "このマスクの直リンクを生成", + Action: "リンクをコピー", }, }, }, NewChat: { Return: "戻る", - Skip: "スキップ", - Title: "キャラクター", - SubTitle: "さあ、AIにキャラクターを設定して会話を始めてみましょう", - More: "もっと探す", - NotShow: "今後は表示しない", - ConfirmNoShow: "いつでも設定から有効化できます。", + Skip: "直接開始", + NotShow: "今後表示しない", + ConfirmNoShow: + "無効にしてもよろしいですか?無効にした後、設定でいつでも再度有効にできます。", + Title: "マスクを選択", + SubTitle: "今すぐ始めよう、マスクの背後にある魂と思考の衝突", + More: "すべて表示", + }, + + URLCommand: { + Code: "リンクにアクセスコードが含まれています。自動入力しますか?", + Settings: "リンクにプリセット設定が含まれています。自動入力しますか?", }, UI: { Confirm: "確認", Cancel: "キャンセル", Close: "閉じる", - Create: "新規", + Create: "新規作成", Edit: "編集", + Export: "エクスポート", + Import: "インポート", + Sync: "同期", + Config: "設定", }, + Exporter: { + Description: { + Title: "コンテキストをクリアした後のメッセージのみが表示されます", + }, Model: "モデル", Messages: "メッセージ", - Topic: "トピック", + Topic: "テーマ", Time: "時間", }, }; diff --git a/app/locales/ko.ts b/app/locales/ko.ts index b392e1c77bb..7f66a461ebb 100644 --- a/app/locales/ko.ts +++ b/app/locales/ko.ts @@ -1,76 +1,157 @@ import { SubmitKey } from "../store/config"; - import type { PartialLocaleType } from "./index"; +import { getClientConfig } from "../config/client"; + +const isApp = !!getClientConfig()?.isApp; const ko: PartialLocaleType = { WIP: "곧 출시 예정...", Error: { - Unauthorized: - "권한이 없습니다. 설정 페이지에서 액세스 코드를 [입력하세요](/#/auth).", + Unauthorized: isApp + ? "유효하지 않은 API 키가 감지되었습니다. [설정](/#/settings) 페이지에서 API 키가 올바르게 구성되었는지 확인하십시오." + : "잘못된 접근 비밀번호이거나 비밀번호가 비어 있습니다. [로그인](/#/auth) 페이지에서 올바른 접근 비밀번호를 입력하거나 [설정](/#/settings) 페이지에서 OpenAI API 키를 입력하십시오.", + }, + Auth: { + Title: "비밀번호 필요", + Tips: "관리자가 비밀번호 인증을 활성화했습니다. 아래에 접근 코드를 입력하십시오.", + SubTips: "또는 OpenAI 또는 Google API 키를 입력하십시오.", + Input: "여기에 접근 코드를 입력하십시오.", + Confirm: "확인", + Later: "나중에 하기", }, ChatItem: { - ChatItemCount: (count: number) => `${count}개의 메시지`, + ChatItemCount: (count: number) => `${count} 개의 대화`, }, Chat: { - SubTitle: (count: number) => `ChatGPT와의 ${count}개의 메시지`, + SubTitle: (count: number) => `총 ${count} 개의 대화`, + EditMessage: { + Title: "메시지 기록 편집", + Topic: { + Title: "채팅 주제", + SubTitle: "현재 채팅 주제 변경", + }, + }, Actions: { - ChatList: "채팅 목록으로 이동", - CompressedHistory: "압축된 기억력 메모리 프롬프트", - Export: "모든 메시지를 Markdown으로 내보내기", + ChatList: "메시지 목록 보기", + CompressedHistory: "압축된 히스토리 프롬프트 보기", + Export: "채팅 기록 내보내기", Copy: "복사", - Stop: "중지", + Stop: "정지", Retry: "다시 시도", + Pin: "고정", + PinToastContent: "1 개의 대화를 프롬프트에 고정했습니다.", + PinToastAction: "보기", Delete: "삭제", + Edit: "편집", + }, + Commands: { + new: "새 채팅", + newm: "마스크에서 새 채팅", + next: "다음 채팅", + prev: "이전 채팅", + clear: "컨텍스트 지우기", + del: "채팅 삭제", + }, + InputActions: { + Stop: "응답 중지", + ToBottom: "최신으로 스크롤", + Theme: { + auto: "자동 테마", + light: "라이트 모드", + dark: "다크 모드", + }, + Prompt: "빠른 명령", + Masks: "모든 마스크", + Clear: "채팅 지우기", + Settings: "채팅 설정", + UploadImage: "이미지 업로드", }, Rename: "채팅 이름 변경", - Typing: "입력 중...", + Typing: "입력 중…", Input: (submitKey: string) => { - var inputHints = `${submitKey}를 눌러 보내기`; + var inputHints = `${submitKey} 전송`; if (submitKey === String(SubmitKey.Enter)) { - inputHints += ", Shift + Enter로 줄 바꿈"; + inputHints += ",Shift + Enter 줄 바꿈"; } - return inputHints + ", 프롬프트 검색을 위해 / 입력"; + return inputHints + ",/ 자동 완성,: 명령어 입력"; }, - Send: "보내기", + Send: "전송", Config: { - Reset: "기본값으로 재설정", + Reset: "기억 지우기", SaveAs: "마스크로 저장", }, + IsContext: "프롬프트 설정", }, Export: { - Title: "모든 메시지", + Title: "채팅 기록 공유", Copy: "모두 복사", - Download: "다운로드", - MessageFromYou: "나의 메시지", - MessageFromChatGPT: "ChatGPT의 메시지", + Download: "파일 다운로드", + Share: "ShareGPT에 공유", + MessageFromYou: "사용자", + MessageFromChatGPT: "ChatGPT", + Format: { + Title: "내보내기 형식", + SubTitle: "Markdown 텍스트 또는 PNG 이미지로 내보낼 수 있습니다.", + }, + IncludeContext: { + Title: "프롬프트 컨텍스트 포함", + SubTitle: "메시지에 프롬프트 컨텍스트를 표시할지 여부", + }, + Steps: { + Select: "선택", + Preview: "미리보기", + }, + Image: { + Toast: "스크린샷 생성 중", + Modal: "길게 누르거나 오른쪽 클릭하여 이미지를 저장하십시오.", + }, + }, + Select: { + Search: "메시지 검색", + All: "모두 선택", + Latest: "최근 몇 개", + Clear: "선택 지우기", }, Memory: { - Title: "기억 프롬프트", - EmptyContent: "아직 내용이 없습니다.", - Send: "기억 보내기", - Copy: "기억 복사", - Reset: "세션 재설정", - ResetConfirm: - "재설정하면 현재 대화 기록과 기억력이 삭제됩니다. 정말 재설정하시겠습니까?", + Title: "기록 요약", + EmptyContent: "대화 내용이 너무 짧아 요약할 필요 없음", + Send: "자동으로 채팅 기록을 압축하여 컨텍스트로 전송", + Copy: "요약 복사", + Reset: "[사용되지 않음]", + ResetConfirm: "기록 요약을 지우겠습니까?", }, Home: { - NewChat: "새로운 채팅", + NewChat: "새 채팅", DeleteChat: "선택한 대화를 삭제하시겠습니까?", - DeleteToast: "채팅이 삭제되었습니다.", + DeleteToast: "대화가 삭제되었습니다.", Revert: "되돌리기", }, Settings: { Title: "설정", - SubTitle: "모든 설정", + SubTitle: "모든 설정 옵션", + Danger: { + Reset: { + Title: "모든 설정 초기화", + SubTitle: "모든 설정 항목을 기본값으로 초기화", + Action: "지금 초기화", + Confirm: "모든 설정을 초기화하시겠습니까?", + }, + Clear: { + Title: "모든 데이터 지우기", + SubTitle: "모든 채팅 및 설정 데이터 지우기", + Action: "지금 지우기", + Confirm: "모든 채팅 및 설정 데이터를 지우시겠습니까?", + }, + }, Lang: { - Name: "Language", // ATTENTION: if you wanna add a new translation, please do not translate this value, leave it as `Language` - All: "All Languages", + Name: "Language", // 주의: 새 번역을 추가하려면 이 값을 번역하지 말고 그대로 유지하세요. + All: "모든 언어", }, Avatar: "아바타", FontSize: { Title: "글꼴 크기", - SubTitle: "채팅 내용의 글꼴 크기 조정", + SubTitle: "채팅 내용의 글꼴 크기", }, FontFamily: { Title: "채팅 폰트", @@ -78,43 +159,100 @@ const ko: PartialLocaleType = { Placeholder: "폰트 이름", }, InjectSystemPrompts: { - Title: "시스템 프롬프트 주입", + Title: "시스템 수준 프롬프트 삽입", SubTitle: - "각 요청의 메시지 목록의 시작에 ChatGPT 시스템 프롬프트를 강제로 추가합니다", + "각 요청 메시지 목록의 시작 부분에 ChatGPT 시스템 프롬프트를 강제로 추가", + }, + InputTemplate: { + Title: "사용자 입력 전처리", + SubTitle: "사용자의 최신 메시지가 이 템플릿에 채워집니다.", }, + Update: { - Version: (x: string) => `버전: ${x}`, - IsLatest: "최신 버전", + Version: (x: string) => `현재 버전: ${x}`, + IsLatest: "최신 버전입니다.", CheckUpdate: "업데이트 확인", IsChecking: "업데이트 확인 중...", FoundUpdate: (x: string) => `새 버전 발견: ${x}`, - GoToUpdate: "업데이트", + GoToUpdate: "업데이트로 이동", }, SendKey: "전송 키", Theme: "테마", - TightBorder: "조밀한 테두리", + TightBorder: "테두리 없는 모드", SendPreviewBubble: { - Title: "미리 보기 버블 전송", - SubTitle: "버블에서 마크다운 미리 보기", + Title: "미리보기 버블", + SubTitle: "미리보기 버블에서 Markdown 콘텐츠 미리보기", + }, + AutoGenerateTitle: { + Title: "제목 자동 생성", + SubTitle: "대화 내용에 따라 적절한 제목 생성", + }, + Sync: { + CloudState: "클라우드 데이터", + NotSyncYet: "아직 동기화되지 않았습니다.", + Success: "동기화 성공", + Fail: "동기화 실패", + + Config: { + Modal: { + Title: "클라우드 동기화 구성", + Check: "사용 가능성 확인", + }, + SyncType: { + Title: "동기화 유형", + SubTitle: "선호하는 동기화 서버 선택", + }, + Proxy: { + Title: "프록시 사용", + SubTitle: + "브라우저에서 동기화할 때 프록시를 활성화하여 교차 출처 제한을 피해야 함", + }, + ProxyUrl: { + Title: "프록시 주소", + SubTitle: "이 프로젝트에서 제공하는 교차 출처 프록시만 해당", + }, + + WebDav: { + Endpoint: "WebDAV 주소", + UserName: "사용자 이름", + Password: "비밀번호", + }, + + UpStash: { + Endpoint: "UpStash Redis REST URL", + UserName: "백업 이름", + Password: "UpStash Redis REST Token", + }, + }, + + LocalState: "로컬 데이터", + Overview: (overview: any) => { + return `${overview.chat} 회의 대화, ${overview.message} 개의 메시지, ${overview.prompt} 개의 프롬프트, ${overview.mask} 개의 마스크`; + }, + ImportFailed: "가져오기 실패", }, Mask: { Splash: { - Title: "마스크 시작 화면", - SubTitle: "새로운 채팅 시작 전에 마스크 시작 화면 표시", + Title: "마스크 시작 페이지", + SubTitle: "새 채팅 시 마스크 시작 페이지 표시", + }, + Builtin: { + Title: "내장 마스크 숨기기", + SubTitle: "모든 마스크 목록에서 내장 마스크 숨기기", }, }, Prompt: { Disable: { - Title: "자동 완성 비활성화", - SubTitle: "자동 완성을 활성화하려면 /를 입력하세요.", + Title: "프롬프트 자동 완성 비활성화", + SubTitle: "입력 상자 시작 부분에 / 를 입력하여 자동 완성 활성화", }, - List: "프롬프트 목록", + List: "사용자 정의 프롬프트 목록", ListCount: (builtin: number, custom: number) => - `내장 ${builtin}개, 사용자 정의 ${custom}개`, + `내장 ${builtin} 개, 사용자 정의 ${custom} 개`, Edit: "편집", Modal: { Title: "프롬프트 목록", - Add: "추가", + Add: "새로 만들기", Search: "프롬프트 검색", }, EditModal: { @@ -122,116 +260,278 @@ const ko: PartialLocaleType = { }, }, HistoryCount: { - Title: "첨부된 메시지 수", - SubTitle: "요청당 첨부된 전송된 메시지 수", + Title: "히스토리 메시지 수", + SubTitle: "각 요청에 포함된 히스토리 메시지 수", }, CompressThreshold: { - Title: "기록 압축 임계값", - SubTitle: "미압축 메시지 길이가 임계값을 초과하면 압축됨", + Title: "히스토리 메시지 길이 압축 임계값", + SubTitle: "압축되지 않은 히스토리 메시지가 이 값을 초과하면 압축 수행", }, Usage: { - Title: "계정 잔액", + Title: "잔액 조회", SubTitle(used: any, total: any) { - return `이번 달 사용액 ${used}, 구독액 ${total}`; + return `이번 달 사용된 금액: $${used},총 구독 금액: $${total}`; }, IsChecking: "확인 중...", - Check: "확인", - NoAccess: "잔액 확인을 위해 API 키를 입력하세요.", + Check: "다시 확인", + NoAccess: "잔액을 보려면 API 키 또는 접근 비밀번호를 입력하십시오.", }, - Model: "모델", + Access: { + AccessCode: { + Title: "접근 비밀번호", + SubTitle: "관리자가 암호화된 접근을 활성화했습니다.", + Placeholder: "접근 비밀번호를 입력하십시오.", + }, + CustomEndpoint: { + Title: "커스텀 엔드포인트", + SubTitle: "커스텀 Azure 또는 OpenAI 서비스를 사용할지 여부", + }, + Provider: { + Title: "모델 서비스 제공업체", + SubTitle: "다른 서비스 제공업체로 전환", + }, + OpenAI: { + ApiKey: { + Title: "API 키", + SubTitle: "커스텀 OpenAI 키를 사용하여 비밀번호 접근 제한 우회", + Placeholder: "OpenAI API 키", + }, + + Endpoint: { + Title: "엔드포인트 주소", + SubTitle: "기본 주소 외에 http(s)://을 포함해야 함", + }, + }, + Azure: { + ApiKey: { + Title: "엔드포인트 키", + SubTitle: "커스텀 Azure 키를 사용하여 비밀번호 접근 제한 우회", + Placeholder: "Azure API 키", + }, + + Endpoint: { + Title: "엔드포인트 주소", + SubTitle: "예: ", + }, + + ApiVerion: { + Title: "API 버전 (azure api version)", + SubTitle: "특정 부분 버전 선택", + }, + }, + Anthropic: { + ApiKey: { + Title: "엔드포인트 키", + SubTitle: "커스텀 Anthropic 키를 사용하여 비밀번호 접근 제한 우회", + Placeholder: "Anthropic API 키", + }, + + Endpoint: { + Title: "엔드포인트 주소", + SubTitle: "예: ", + }, + + ApiVerion: { + Title: "API 버전 (claude api version)", + SubTitle: "특정 API 버전 입력", + }, + }, + Google: { + ApiKey: { + Title: "API 키", + SubTitle: "Google AI에서 API 키를 가져오세요.", + Placeholder: "Google AI Studio API 키 입력", + }, + + Endpoint: { + Title: "엔드포인트 주소", + SubTitle: "예: ", + }, + + ApiVersion: { + Title: "API 버전 (gemini-pro 전용)", + SubTitle: "특정 API 버전 선택", + }, + GoogleSafetySettings: { + Title: "Google 안전 필터링 수준", + SubTitle: "콘텐츠 필터링 수준 설정", + }, + }, + Baidu: { + ApiKey: { + Title: "API 키", + SubTitle: "커스텀 Baidu API 키 사용", + Placeholder: "Baidu API 키", + }, + SecretKey: { + Title: "Secret 키", + SubTitle: "커스텀 Baidu Secret 키 사용", + Placeholder: "Baidu Secret 키", + }, + Endpoint: { + Title: "엔드포인트 주소", + SubTitle: "커스터마이즈는 .env에서 설정", + }, + }, + ByteDance: { + ApiKey: { + Title: "엔드포인트 키", + SubTitle: "커스텀 ByteDance API 키 사용", + Placeholder: "ByteDance API 키", + }, + Endpoint: { + Title: "엔드포인트 주소", + SubTitle: "예: ", + }, + }, + Alibaba: { + ApiKey: { + Title: "엔드포인트 키", + SubTitle: "커스텀 Alibaba Cloud API 키 사용", + Placeholder: "Alibaba Cloud API 키", + }, + Endpoint: { + Title: "엔드포인트 주소", + SubTitle: "예: ", + }, + }, + CustomModel: { + Title: "커스텀 모델 이름", + SubTitle: "커스텀 모델 옵션 추가, 영어 쉼표로 구분", + }, + }, + + Model: "모델 (model)", Temperature: { - Title: "온도 (temperature)", - SubTitle: "값이 클수록 더 무작위한 출력이 생성됩니다.", + Title: "무작위성 (temperature)", + SubTitle: "값이 클수록 응답이 더 무작위적", + }, + TopP: { + Title: "탑 P 샘플링 (top_p)", + SubTitle: "무작위성과 유사하지만, 무작위성과 함께 변경하지 마십시오.", }, MaxTokens: { - Title: "최대 토큰 수 (max_tokens)", - SubTitle: "입력 토큰과 생성된 토큰의 최대 길이", + Title: "단일 응답 제한 (max_tokens)", + SubTitle: "단일 상호작용에 사용되는 최대 토큰 수", }, PresencePenalty: { - Title: "존재 페널티 (presence_penalty)", - SubTitle: "값이 클수록 새로운 주제에 대해 대화할 가능성이 높아집니다.", + Title: "주제 신선도 (presence_penalty)", + SubTitle: "값이 클수록 새로운 주제로 확장할 가능성이 높음", }, FrequencyPenalty: { - Title: "빈도 페널티(frequency penalty)", - SubTitle: "값이 클수록 같은 줄이 반복될 가능성이 줄어듭니다.", + Title: "빈도 벌점 (frequency_penalty)", + SubTitle: "값이 클수록 중복 단어 감소 가능성 높음", }, }, Store: { - DefaultTopic: "새 대화", - BotHello: "안녕하세요! 오늘 도움이 필요하신가요?", - Error: "문제가 발생했습니다. 나중에 다시 시도해주세요.", + DefaultTopic: "새 채팅", + BotHello: "무엇을 도와드릴까요?", + Error: "오류가 발생했습니다. 나중에 다시 시도해 주세요.", Prompt: { - History: (content: string) => - "이것은 AI와 사용자 간의 대화 기록을 요약한 내용입니다: " + content, + History: (content: string) => "이것은 이전 채팅 요약입니다: " + content, Topic: - "다음과 같이 대화 내용을 요약하는 4~5단어 제목을 생성해주세요. 따옴표, 구두점, 인용부호, 기호 또는 추가 텍스트를 제거하십시오. 따옴표로 감싸진 부분을 제거하십시오.", + "네 글자에서 다섯 글자로 이 문장의 간략한 주제를 반환하세요. 설명이나 문장 부호, 어미, 불필요한 텍스트, 굵은 글씨는 필요 없습니다. 주제가 없다면 '잡담'이라고만 반환하세요.", Summarize: - "200단어 이내로 저희 토론을 간략히 요약하여 앞으로의 맥락으로 사용할 수 있는 프롬프트로 만들어주세요.", + "대화 내용을 간략히 요약하여 후속 컨텍스트 프롬프트로 사용하세요. 200자 이내로 작성하세요.", }, }, Copy: { Success: "클립보드에 복사되었습니다.", - Failed: "복사 실패, 클립보드 접근 권한을 허용해주세요.", + Failed: "복사 실패, 클립보드 권한을 부여해주세요.", + }, + Download: { + Success: "내용이 디렉토리에 다운로드되었습니다.", + Failed: "다운로드 실패.", }, Context: { - Toast: (x: any) => `컨텍스트 프롬프트 ${x}개 사용`, - Edit: "컨텍스트 및 메모리 프롬프트", - Add: "프롬프트 추가", + Toast: (x: any) => ` ${x} 개의 프리셋 프롬프트 포함됨`, + Edit: "현재 대화 설정", + Add: "대화 추가", + Clear: "컨텍스트가 지워졌습니다.", + Revert: "컨텍스트 복원", }, Plugin: { Name: "플러그인", }, FineTuned: { - Sysmessage: "당신은 어시스턴트입니다", + Sysmessage: "당신은 보조자입니다.", }, Mask: { Name: "마스크", Page: { - Title: "프롬프트 템플릿", - SubTitle: (count: number) => `${count}개의 프롬프트 템플릿`, - Search: "템플릿 검색", - Create: "생성", + Title: "프리셋 캐릭터 마스크", + SubTitle: (count: number) => `${count} 개의 프리셋 캐릭터 정의`, + Search: "캐릭터 마스크 검색", + Create: "새로 만들기", }, Item: { - Info: (count: number) => `${count}개의 프롬프롬프트`, - Chat: "채팅", + Info: (count: number) => ` ${count} 개의 프리셋 대화 포함`, + Chat: "대화", View: "보기", Edit: "편집", Delete: "삭제", - DeleteConfirm: "삭제하시겠습니까?", + DeleteConfirm: "삭제를 확인하시겠습니까?", }, EditModal: { Title: (readonly: boolean) => - `프롬프트 템플릿 편집 ${readonly ? "(읽기 전용)" : ""}`, - Download: "다운로드", - Clone: "복제", + `프리셋 마스크 편집 ${readonly ? "(읽기 전용)" : ""}`, + Download: "프리셋 다운로드", + Clone: "프리셋 복제", }, Config: { - Avatar: "봇 아바타", - Name: "봇 이름", + Avatar: "캐릭터 아바타", + Name: "캐릭터 이름", + Sync: { + Title: "전역 설정 사용", + SubTitle: "현재 대화가 전역 모델 설정을 사용하는지 여부", + Confirm: + "현재 대화의 사용자 정의 설정이 자동으로 덮어쓰여질 것입니다. 전역 설정을 활성화하시겠습니까?", + }, + HideContext: { + Title: "프리셋 대화 숨기기", + SubTitle: "숨기면 프리셋 대화가 채팅 화면에 나타나지 않습니다.", + }, + Share: { + Title: "이 마스크 공유하기", + SubTitle: "이 마스크의 직접 링크 생성", + Action: "링크 복사", + }, }, }, NewChat: { Return: "돌아가기", - Skip: "건너뛰기", - Title: "마스크 선택", - SubTitle: "마스크 뒤의 영혼과 대화하세요", - More: "더 보기", - NotShow: "다시 표시하지 않음", + Skip: "바로 시작", + NotShow: "다시 보지 않기", ConfirmNoShow: - "비활성화하시겠습니까? 나중에 설정에서 다시 활성화할 수 있습니다.", + "비활성화하시겠습니까? 비활성화 후 언제든지 설정에서 다시 활성화할 수 있습니다.", + Title: "마스크 선택", + SubTitle: "지금 시작하여 마스크 뒤의 사고와 교류해보세요.", + More: "모두 보기", + }, + + URLCommand: { + Code: "링크에 액세스 코드가 포함되어 있습니다. 자동으로 입력하시겠습니까?", + Settings: + "링크에 프리셋 설정이 포함되어 있습니다. 자동으로 입력하시겠습니까?", }, UI: { Confirm: "확인", Cancel: "취소", Close: "닫기", - Create: "생성", + Create: "새로 만들기", Edit: "편집", + Export: "내보내기", + Import: "가져오기", + Sync: "동기화", + Config: "구성", }, Exporter: { + Description: { + Title: "컨텍스트가 지워진 후의 메시지만 표시됩니다.", + }, Model: "모델", Messages: "메시지", Topic: "주제", diff --git a/app/locales/no.ts b/app/locales/no.ts index 5e9dc252d72..e02680a2d0c 100644 --- a/app/locales/no.ts +++ b/app/locales/no.ts @@ -1,70 +1,161 @@ import { SubmitKey } from "../store/config"; import type { PartialLocaleType } from "./index"; +import { getClientConfig } from "../config/client"; + +const isApp = !!getClientConfig()?.isApp; const no: PartialLocaleType = { WIP: "Arbeid pågår ...", Error: { - Unauthorized: - "Du har ikke tilgang. [Vennlig oppgi tildelt adgangskode](/#/auth).", + Unauthorized: isApp + ? "Ugyldig API-nøkkel oppdaget. Gå til [innstillinger](/#/settings) for å sjekke om API-nøkkelen er riktig konfigurert." + : "Adgangskoden er feil eller tom. Gå til [innlogging](/#/auth) for å oppgi riktig adgangskode, eller fyll inn din egen OpenAI API-nøkkel på [innstillinger](/#/settings) siden.", + }, + Auth: { + Title: "Passord påkrevd", + Tips: "Administrator har aktivert passordbeskyttelse. Vennligst skriv inn tilgangskoden nedenfor", + SubTips: "Eller skriv inn din OpenAI eller Google API-nøkkel", + Input: "Skriv tilgangskoden her", + Confirm: "Bekreft", + Later: "Kom tilbake senere", }, ChatItem: { - ChatItemCount: (count: number) => `${count} meldinger`, + ChatItemCount: (count: number) => `${count} samtaler`, }, Chat: { - SubTitle: (count: number) => `${count} meldinger med ChatGPT`, + SubTitle: (count: number) => `Totalt ${count} samtaler`, + EditMessage: { + Title: "Rediger meldingshistorikk", + Topic: { + Title: "Samtaleemne", + SubTitle: "Endre nåværende samtaleemne", + }, + }, Actions: { - ChatList: "Gå til chatlisten", - CompressedHistory: "Komprimert historikk for instrukser", - Export: "Eksporter alle meldinger i markdown-format", + ChatList: "Vis meldingsliste", + CompressedHistory: "Vis komprimert historikk", + Export: "Eksporter samtaler", Copy: "Kopier", Stop: "Stopp", Retry: "Prøv igjen", + Pin: "Fest", + PinToastContent: + "1 samtale er festet til forhåndsdefinerte oppfordringer", + PinToastAction: "Se", Delete: "Slett", + Edit: "Rediger", + }, + Commands: { + new: "Ny samtale", + newm: "Start samtale fra maske", + next: "Neste samtale", + prev: "Forrige samtale", + clear: "Rydd kontekst", + del: "Slett samtale", }, - Rename: "Gi nytt navn", - Typing: "Skriver …", + InputActions: { + Stop: "Stopp respons", + ToBottom: "Rull til nyeste", + Theme: { + auto: "Automatisk tema", + light: "Lyst tema", + dark: "Mørkt tema", + }, + Prompt: "Hurtigkommando", + Masks: "Alle masker", + Clear: "Rydd samtale", + Settings: "Samtaleinnstillinger", + UploadImage: "Last opp bilde", + }, + Rename: "Gi nytt navn til samtale", + Typing: "Skriver…", Input: (submitKey: string) => { - var inputHints = `${submitKey} for å sende`; + var inputHints = `${submitKey} send`; if (submitKey === String(SubmitKey.Enter)) { - inputHints += ", Shift + Enter for å omgi"; + inputHints += ",Shift + Enter for linjeskift"; } - return inputHints + ", / for å søke instrukser"; + return ( + inputHints + ",/ for å utløse autoutfylling, : for å utløse kommando" + ); }, Send: "Send", + Config: { + Reset: "Fjern minne", + SaveAs: "Lagre som maske", + }, + IsContext: "Forhåndsdefinerte oppfordringer", }, Export: { - Title: "Alle meldinger", - Copy: "Kopiere alle", - Download: "Last ned", - MessageFromYou: "Melding fra deg", - MessageFromChatGPT: "Melding fra ChatGPT", + Title: "Del samtalehistorikk", + Copy: "Kopier alt", + Download: "Last ned fil", + Share: "Del til ShareGPT", + MessageFromYou: "Bruker", + MessageFromChatGPT: "ChatGPT", + Format: { + Title: "Eksporterformat", + SubTitle: "Kan eksporteres som Markdown-tekst eller PNG-bilde", + }, + IncludeContext: { + Title: "Inkluder maske kontekst", + SubTitle: "Skal maske kontekst vises i meldinger", + }, + Steps: { + Select: "Velg", + Preview: "Forhåndsvis", + }, + Image: { + Toast: "Genererer skjermbilde", + Modal: "Langtrykk eller høyreklikk for å lagre bilde", + }, + }, + Select: { + Search: "Søk meldinger", + All: "Velg alle", + Latest: "Siste meldinger", + Clear: "Fjern valg", }, Memory: { - Title: "Minneinstruks", - EmptyContent: "Ingen sålant.", - Send: "Send minne", - Copy: "Kopiere minne", - Reset: "Nulstill sesjon", - ResetConfirm: - "Om du nillstiller vil du slette hele historikken. Er du sikker på at du vil nullstille?", + Title: "Historisk sammendrag", + EmptyContent: "Samtaleinnholdet er for kort, ingen oppsummering nødvendig", + Send: "Automatisk komprimere samtalehistorikk og sende som kontekst", + Copy: "Kopier sammendrag", + Reset: "[unused]", + ResetConfirm: "Er du sikker på at du vil tømme historisk sammendrag?", }, Home: { - NewChat: "Ny chat", - DeleteChat: "Bekreft for å slette det valgte dialogen", + NewChat: "Ny samtale", + DeleteChat: "Er du sikker på at du vil slette den valgte samtalen?", DeleteToast: "Samtale slettet", - Revert: "Tilbakestill", + Revert: "Angre", }, Settings: { Title: "Innstillinger", - SubTitle: "Alle innstillinger", + SubTitle: "Alle innstillingsalternativer", + Danger: { + Reset: { + Title: "Tilbakestill alle innstillinger", + SubTitle: + "Tilbakestill alle innstillingsalternativer til standardverdier", + Action: "Tilbakestill nå", + Confirm: "Bekreft tilbakestilling av alle innstillinger?", + }, + Clear: { + Title: "Slett alle data", + SubTitle: "Slett alle samtaler og innstillingsdata", + Action: "Slett nå", + Confirm: "Bekreft sletting av alle samtaler og innstillingsdata?", + }, + }, Lang: { Name: "Language", // ATTENTION: if you wanna add a new translation, please do not translate this value, leave it as `Language` + All: "Alle språk", }, - Avatar: "Avatar", + Avatar: "Profilbilde", FontSize: { - Title: "Fontstørrelsen", - SubTitle: "Juster fontstørrelsen for samtaleinnholdet.", + Title: "Skriftstørrelse", + SubTitle: "Skriftstørrelse for samtaleinnhold", }, FontFamily: { Title: "Chat-skrifttype", @@ -73,92 +164,394 @@ const no: PartialLocaleType = { Placeholder: "Skriftnavn", }, InjectSystemPrompts: { - Title: "Sett inn systemprompter", + Title: "Injiser systemprompter", + SubTitle: + "Tving inn et systemprompt som simulerer ChatGPT i starten av hver forespørsel", + }, + InputTemplate: { + Title: "Forhåndsbehandling av brukerinput", SubTitle: - "Tving tillegg av en simulert ChatGPT-systemprompt i begynnelsen av meldingslisten for hver forespørsel", + "Den nyeste meldingen fra brukeren vil bli fylt ut i denne malen", }, + Update: { - Version: (x: string) => `Versjon: ${x}`, - IsLatest: "Siste versjon", - CheckUpdate: "Se etter oppdatering", - IsChecking: "Ser etter oppdatering ...", - FoundUpdate: (x: string) => `Fant ny versjon: ${x}`, - GoToUpdate: "Oppdater", - }, - SendKey: "Send nøkkel", + Version: (x: string) => `Nåværende versjon: ${x}`, + IsLatest: "Er den nyeste versjonen", + CheckUpdate: "Sjekk oppdateringer", + IsChecking: "Sjekker oppdateringer...", + FoundUpdate: (x: string) => `Ny versjon oppdaget: ${x}`, + GoToUpdate: "Gå til oppdatering", + }, + SendKey: "Send-knapp", Theme: "Tema", - TightBorder: "Stram innramming", + TightBorder: "Ingen ramme-modus", + SendPreviewBubble: { + Title: "Forhåndsvisningsboble", + SubTitle: "Forhåndsvis Markdown-innhold i en forhåndsvisningsboble", + }, + AutoGenerateTitle: { + Title: "Automatisk generere tittel", + SubTitle: "Generer en passende tittel basert på samtaleinnholdet", + }, + Sync: { + CloudState: "Skydatasynkronisering", + NotSyncYet: "Har ikke blitt synkronisert ennå", + Success: "Synkronisering vellykket", + Fail: "Synkronisering mislyktes", + + Config: { + Modal: { + Title: "Konfigurer sky-synkronisering", + Check: "Sjekk tilgjengelighet", + }, + SyncType: { + Title: "Synkroniseringstype", + SubTitle: "Velg ønsket synkroniseringsserver", + }, + Proxy: { + Title: "Aktiver proxy", + SubTitle: + "Når du synkroniserer i nettleseren, må proxy være aktivert for å unngå CORS-restriksjoner", + }, + ProxyUrl: { + Title: "Proxy-URL", + SubTitle: "Kun for prosjektets innebygde CORS-proxy", + }, + + WebDav: { + Endpoint: "WebDAV-adresse", + UserName: "Brukernavn", + Password: "Passord", + }, + + UpStash: { + Endpoint: "UpStash Redis REST-URL", + UserName: "Sikkerhetskopinavn", + Password: "UpStash Redis REST-token", + }, + }, + + LocalState: "Lokal data", + Overview: (overview: any) => { + return `${overview.chat} samtaler, ${overview.message} meldinger, ${overview.prompt} oppfordringer, ${overview.mask} masker`; + }, + ImportFailed: "Import mislyktes", + }, + Mask: { + Splash: { + Title: "Maskestartside", + SubTitle: "Vis maskestartside når du oppretter en ny samtale", + }, + Builtin: { + Title: "Skjul innebygde masker", + SubTitle: "Skjul innebygde masker i alle maskelister", + }, + }, Prompt: { Disable: { - Title: "Skru av autofullfør", - SubTitle: "Skriv / for å trigge autofullfør", + Title: "Deaktiver automatisk fullføring av oppfordringer", + SubTitle: "Skriv / i tekstboksen for å utløse automatisk fullføring", }, - List: "Instruksliste", + List: "Egendefinerte oppfordringer", ListCount: (builtin: number, custom: number) => - `${builtin} innebygde, ${custom} brukerdefinerte`, - Edit: "Endre", + `Innebygde ${builtin}, brukerdedefinerte ${custom}`, + Edit: "Rediger", Modal: { - Title: "Instruksliste", - Add: "Legg til", - Search: "Søk instrukser", + Title: "Oppfordringsliste", + Add: "Ny", + Search: "Søk oppfordringer", + }, + EditModal: { + Title: "Rediger oppfordring", }, }, HistoryCount: { - Title: "Tall på tilhørende meldinger", - SubTitle: "Antall sendte meldinger tilknyttet hver spørring", + Title: "Antall historiske meldinger", + SubTitle: "Antall historiske meldinger som sendes med hver forespørsel", }, CompressThreshold: { - Title: "Terskeverdi for komprimering av historikk", + Title: "Kompressterskel for historiske meldinger", SubTitle: - "Komprimer dersom ikke-komprimert lengde på meldinger overskrider denne verdien", + "Når ukomprimerte historiske meldinger overskrider denne verdien, vil de bli komprimert", }, Usage: { - Title: "Saldo for konto", + Title: "Saldoforespørsel", SubTitle(used: any, total: any) { - return `Brukt denne måneden $${used}, abonnement $${total}`; + return `Brukt denne måneden $${used}, total abonnementsbeløp $${total}`; }, - IsChecking: "Sjekker ...", - Check: "Sjekk", - NoAccess: "Skriv inn API-nøkkelen for å sjekke saldo", + IsChecking: "Sjekker...", + Check: "Sjekk på nytt", + NoAccess: "Skriv inn API-nøkkel eller tilgangspassord for å se saldo", }, - Model: "Model", + Access: { + AccessCode: { + Title: "Adgangskode", + SubTitle: "Administrator har aktivert kryptert tilgang", + Placeholder: "Skriv inn tilgangskoden", + }, + CustomEndpoint: { + Title: "Egendefinert API", + SubTitle: "Bruk egendefinerte Azure- eller OpenAI-tjenester", + }, + Provider: { + Title: "Modelltilbyder", + SubTitle: "Bytt til forskjellige tilbydere", + }, + OpenAI: { + ApiKey: { + Title: "API-nøkkel", + SubTitle: + "Bruk egendefinert OpenAI-nøkkel for å omgå passordtilgangsbegrensninger", + Placeholder: "OpenAI API-nøkkel", + }, + + Endpoint: { + Title: "API-adresse", + SubTitle: "Må inkludere http(s):// utenom standardadresse", + }, + }, + Azure: { + ApiKey: { + Title: "API-nøkkel", + SubTitle: + "Bruk egendefinert Azure-nøkkel for å omgå passordtilgangsbegrensninger", + Placeholder: "Azure API-nøkkel", + }, + + Endpoint: { + Title: "API-adresse", + SubTitle: "Eksempel:", + }, + + ApiVerion: { + Title: "API-versjon (azure api versjon)", + SubTitle: "Velg en spesifikk delversjon", + }, + }, + Anthropic: { + ApiKey: { + Title: "API-nøkkel", + SubTitle: + "Bruk egendefinert Anthropic-nøkkel for å omgå passordtilgangsbegrensninger", + Placeholder: "Anthropic API-nøkkel", + }, + + Endpoint: { + Title: "API-adresse", + SubTitle: "Eksempel:", + }, + + ApiVerion: { + Title: "API-versjon (claude api versjon)", + SubTitle: "Velg en spesifikk API-versjon", + }, + }, + Google: { + ApiKey: { + Title: "API-nøkkel", + SubTitle: "Hent din API-nøkkel fra Google AI", + Placeholder: "Skriv inn din Google AI Studio API-nøkkel", + }, + + Endpoint: { + Title: "Endepunktadresse", + SubTitle: "Eksempel:", + }, + + ApiVersion: { + Title: "API-versjon (kun for gemini-pro)", + SubTitle: "Velg en spesifikk API-versjon", + }, + GoogleSafetySettings: { + Title: "Google sikkerhetsfiltreringsnivå", + SubTitle: "Sett innholdsfiltreringsnivå", + }, + }, + Baidu: { + ApiKey: { + Title: "API-nøkkel", + SubTitle: "Bruk egendefinert Baidu API-nøkkel", + Placeholder: "Baidu API-nøkkel", + }, + SecretKey: { + Title: "Hemmelig nøkkel", + SubTitle: "Bruk egendefinert Baidu hemmelig nøkkel", + Placeholder: "Baidu hemmelig nøkkel", + }, + Endpoint: { + Title: "API-adresse", + SubTitle: + "Støtter ikke egendefinerte konfigurasjoner. Se .env-konfigurasjon.", + }, + }, + ByteDance: { + ApiKey: { + Title: "API-nøkkel", + SubTitle: "Bruk egendefinert ByteDance API-nøkkel", + Placeholder: "ByteDance API-nøkkel", + }, + Endpoint: { + Title: "API-adresse", + SubTitle: "Eksempel:", + }, + }, + Alibaba: { + ApiKey: { + Title: "API-nøkkel", + SubTitle: "Bruk egendefinert Alibaba Cloud API-nøkkel", + Placeholder: "Alibaba Cloud API-nøkkel", + }, + Endpoint: { + Title: "API-adresse", + SubTitle: "Eksempel:", + }, + }, + CustomModel: { + Title: "Egendefinert modellnavn", + SubTitle: "Legg til egendefinerte modellalternativer, skill med komma", + }, + }, + + Model: "Modell", Temperature: { - Title: "Temperatur", - SubTitle: "Høyere verdi gir mer kreative svar", + Title: "Tilfeldighet (temperature)", + SubTitle: "Høyere verdi gir mer tilfeldige svar", + }, + TopP: { + Title: "Kjerneprøvetaking (top_p)", + SubTitle: + "Ligner på tilfeldighet, men endre ikke sammen med tilfeldighet", }, MaxTokens: { - Title: "Maks tokens", - SubTitle: "Maksimum lengde på tokens for instrukser og svar", + Title: "Maksimalt antall tokens per svar (max_tokens)", + SubTitle: "Maksimalt antall tokens brukt i en enkelt interaksjon", + }, + PresencePenalty: { + Title: "Emnens ferskhet (presence_penalty)", + SubTitle: + "Høyere verdi gir større sannsynlighet for å utvide til nye emner", + }, + FrequencyPenalty: { + Title: "Frekvensstraff (frequency_penalty)", + SubTitle: + "Høyere verdi gir større sannsynlighet for å redusere gjentakende ord", }, }, Store: { DefaultTopic: "Ny samtale", - BotHello: "Hei! Hva kan jeg hjelpe deg med i dag?", - Error: "Noe gikk galt, vennligst prøv igjen senere.", + BotHello: "Hva kan jeg hjelpe deg med?", + Error: "Noe gikk galt, prøv igjen senere", Prompt: { History: (content: string) => - "Dette er et sammendrag av chatthistorikken mellom AI-en og brukeren som en oppsummering: " + + "Dette er oppsummeringen av historiske samtaler som bakgrunn:" + content, Topic: - "Vennligst lag en fire til fem ords tittel som oppsummerer samtalen vår uten innledning, punktsetting, anførselstegn, punktum, symboler eller tillegg tekst. Fjern innrammende anførselstegn.", + 'Bruk fire til fem ord for å returnere en kort oppsummering av temaet, uten forklaring, uten tegnsetting, uten fyllord, uten ekstra tekst, uten fet skrift. Hvis det ikke er noe tema, returner bare "sladder".', Summarize: - "Oppsummer diskusjonen vår kort i 200 ord eller mindre for å bruke som en oppfordring til fremtidig sammenheng.", + "Oppsummer samtalen kort som en kontekstuell prompt for fremtidige referanser, hold det innen 200 tegn", }, }, Copy: { - Success: "Kopiert til utklippstavle", - Failed: "Kopiering feilet. Vennligst gi tilgang til utklippstavlen.", + Success: "Kopiert til utklippstavlen", + Failed: "Kopiering mislyktes, vennligst gi tillatelse til utklippstavlen", + }, + Download: { + Success: "Innholdet er lastet ned til katalogen din.", + Failed: "Nedlasting mislyktes.", }, Context: { - Toast: (x: any) => `Med ${x} kontekstuelle instrukser`, - Edit: "Kontekstuelle -og minneinstrukser", - Add: "Legg til", + Toast: (x: any) => `Inneholder ${x} forhåndsinnstilte oppfordringer`, + Edit: "Nåværende samtaleinnstillinger", + Add: "Legg til en ny samtale", + Clear: "Konteksten er tømt", + Revert: "Gjenopprett konteksten", + }, + Plugin: { + Name: "Plugin", + }, + FineTuned: { + Sysmessage: "Du er en assistent", + }, + Mask: { + Name: "Maske", + Page: { + Title: "Forhåndsdefinerte rollemasker", + SubTitle: (count: number) => + `${count} forhåndsdefinerte rolledefinisjoner`, + Search: "Søk etter rollemasker", + Create: "Opprett ny", + }, + Item: { + Info: (count: number) => `Inneholder ${count} forhåndsdefinerte samtaler`, + Chat: "Samtale", + View: "Vis", + Edit: "Rediger", + Delete: "Slett", + DeleteConfirm: "Bekreft sletting?", + }, + EditModal: { + Title: (readonly: boolean) => + `Rediger forhåndsdefinert maske ${readonly ? "(kun lesing)" : ""}`, + Download: "Last ned forhåndsdefinert", + Clone: "Kopier forhåndsdefinert", + }, + Config: { + Avatar: "Rollebilde", + Name: "Rolle navn", + Sync: { + Title: "Bruk globale innstillinger", + SubTitle: "Bruker nåværende samtale globale modellinnstillinger", + Confirm: + "De tilpassede innstillingene for den nåværende samtalen vil bli overskrevet automatisk. Bekreft at du vil bruke globale innstillinger?", + }, + HideContext: { + Title: "Skjul forhåndsdefinerte samtaler", + SubTitle: + "Når skjult, vil forhåndsdefinerte samtaler ikke vises i chat-grensesnittet", + }, + Share: { + Title: "Del denne masken", + SubTitle: "Generer en direkte lenke til denne masken", + Action: "Kopier lenke", + }, + }, + }, + NewChat: { + Return: "Tilbake", + Skip: "Start direkte", + NotShow: "Vis ikke igjen", + ConfirmNoShow: + "Bekreft deaktivering? Du kan aktivere det igjen i innstillingene når som helst.", + Title: "Velg en maske", + SubTitle: "Start nå, og få tanker som kolliderer med sjelen bak masken", + More: "Se alle", + }, + + URLCommand: { + Code: "Oppdaget at lenken allerede inneholder tilgangskode. Ønsker du å fylle den ut automatisk?", + Settings: + "Oppdaget at lenken inneholder forhåndsinnstillinger. Ønsker du å fylle dem ut automatisk?", + }, + + UI: { + Confirm: "Bekreft", + Cancel: "Avbryt", + Close: "Lukk", + Create: "Opprett", + Edit: "Rediger", + Export: "Eksporter", + Import: "Importer", + Sync: "Synkroniser", + Config: "Konfigurer", }, Exporter: { - Model: "Model", - Messages: "Meldingar", + Description: { + Title: "Bare meldinger etter at konteksten er ryddet vil bli vist", + }, + Model: "Modell", + Messages: "Meldinger", Topic: "Emne", Time: "Tid", }, diff --git a/app/locales/ru.ts b/app/locales/ru.ts index b547402eae0..1c74c4f8f99 100644 --- a/app/locales/ru.ts +++ b/app/locales/ru.ts @@ -1,75 +1,157 @@ import { SubmitKey } from "../store/config"; -import type { PartialLocaleType } from "./index"; +import { PartialLocaleType } from "../locales/index"; +import { getClientConfig } from "../config/client"; + +const isApp = !!getClientConfig()?.isApp; const ru: PartialLocaleType = { WIP: "Скоро...", Error: { - Unauthorized: - "Несанкционированный доступ. Пожалуйста, введите код доступа на [странице](/#/auth) настроек.", + Unauthorized: isApp + ? "Обнаружен недействительный API-ключ. Пожалуйста, перейдите на страницу [Настройки](/#/settings), чтобы проверить правильность конфигурации API-ключа." + : "Неверный или пустой пароль доступа. Пожалуйста, перейдите на страницу [Вход](/#/auth), чтобы ввести правильный пароль доступа, или на страницу [Настройки](/#/settings), чтобы ввести ваш собственный API-ключ OpenAI.", + }, + Auth: { + Title: "Требуется пароль", + Tips: "Администратор включил проверку пароля. Пожалуйста, введите код доступа ниже", + SubTips: "Или введите ваш API-ключ OpenAI или Google", + Input: "Введите код доступа здесь", + Confirm: "Подтвердить", + Later: "Позже", }, ChatItem: { - ChatItemCount: (count: number) => `${count} сообщений`, + ChatItemCount: (count: number) => `${count} бесед`, }, Chat: { - SubTitle: (count: number) => `${count} сообщений с ChatGPT`, + SubTitle: (count: number) => `Всего ${count} бесед`, + EditMessage: { + Title: "Редактировать сообщение", + Topic: { + Title: "Тема чата", + SubTitle: "Изменить текущую тему чата", + }, + }, Actions: { - ChatList: "Перейти к списку чатов", - CompressedHistory: "Сжатая история памяти", - Export: "Экспортировать все сообщения в формате Markdown", + ChatList: "Просмотреть список сообщений", + CompressedHistory: "Просмотреть сжатую историю подсказок", + Export: "Экспортировать чат", Copy: "Копировать", Stop: "Остановить", Retry: "Повторить", + Pin: "Закрепить", + PinToastContent: "1 беседа закреплена в предустановленных подсказках", + PinToastAction: "Просмотреть", Delete: "Удалить", + Edit: "Редактировать", + }, + Commands: { + new: "Новый чат", + newm: "Создать чат из маски", + next: "Следующий чат", + prev: "Предыдущий чат", + clear: "Очистить контекст", + del: "Удалить чат", + }, + InputActions: { + Stop: "Остановить ответ", + ToBottom: "Перейти к последнему", + Theme: { + auto: "Автоматическая тема", + light: "Светлая тема", + dark: "Темная тема", + }, + Prompt: "Быстрая команда", + Masks: "Все маски", + Clear: "Очистить чат", + Settings: "Настройки чата", + UploadImage: "Загрузить изображение", }, Rename: "Переименовать чат", Typing: "Печатает…", Input: (submitKey: string) => { - var inputHints = `${submitKey} для отправки сообщения`; + var inputHints = `${submitKey} Отправить`; if (submitKey === String(SubmitKey.Enter)) { - inputHints += ", Shift + Enter для переноса строки"; + inputHints += ",Shift + Enter для новой строки"; } - return inputHints + ", / для поиска подсказок"; + return inputHints + ",/ для автозаполнения,: для команд"; }, Send: "Отправить", Config: { - Reset: "Сбросить настройки", + Reset: "Очистить память", SaveAs: "Сохранить как маску", }, + IsContext: "Предустановленные подсказки", }, Export: { - Title: "Все сообщения", + Title: "Поделиться историей чата", Copy: "Копировать все", - Download: "Скачать", - MessageFromYou: "Сообщение от вас", - MessageFromChatGPT: "Сообщение от ChatGPT", + Download: "Скачать файл", + Share: "Поделиться в ShareGPT", + MessageFromYou: "Пользователь", + MessageFromChatGPT: "ChatGPT", + Format: { + Title: "Формат экспорта", + SubTitle: "Можно экспортировать как Markdown текст или PNG изображение", + }, + IncludeContext: { + Title: "Включить контекст маски", + SubTitle: "Показывать ли контекст маски в сообщениях", + }, + Steps: { + Select: "Выбрать", + Preview: "Предпросмотр", + }, + Image: { + Toast: "Создание скриншота", + Modal: "Длительное нажатие или правый клик для сохранения изображения", + }, + }, + Select: { + Search: "Поиск сообщений", + All: "Выбрать все", + Latest: "Последние сообщения", + Clear: "Очистить выбор", }, Memory: { - Title: "Память", - EmptyContent: "Пусто.", - Send: "Отправить память", - Copy: "Копировать память", - Reset: "Сбросить сессию", - ResetConfirm: - "При сбросе текущая история переписки и историческая память будут удалены. Вы уверены, что хотите сбросить?", + Title: "Историческое резюме", + EmptyContent: "Содержимое чата слишком короткое, чтобы суммировать", + Send: "Автоматически сжать историю чата и отправить как контекст", + Copy: "Копировать резюме", + Reset: "[не используется]", + ResetConfirm: "Подтвердить очистку исторического резюме?", }, Home: { NewChat: "Новый чат", - DeleteChat: "Вы действительно хотите удалить выбранный разговор?", - DeleteToast: "Чат удален", - Revert: "Отмена", + DeleteChat: "Подтвердить удаление выбранного чата?", + DeleteToast: "Беседа удалена", + Revert: "Отменить", }, Settings: { Title: "Настройки", - SubTitle: "Все настройки", + SubTitle: "Все параметры настроек", + Danger: { + Reset: { + Title: "Сброс всех настроек", + SubTitle: "Сброс всех параметров до значений по умолчанию", + Action: "Сбросить сейчас", + Confirm: "Подтвердить сброс всех настроек?", + }, + Clear: { + Title: "Очистить все данные", + SubTitle: "Очистить все чаты и данные настроек", + Action: "Очистить сейчас", + Confirm: "Подтвердить очистку всех чатов и данных настроек?", + }, + }, Lang: { - Name: "Language", // ATTENTION: if you wanna add a new translation, please do not translate this value, leave it as `Language` + Name: "Language", // ATTENTION: если вы хотите добавить новый перевод, не переводите это значение, оставьте его как `Language` All: "Все языки", }, Avatar: "Аватар", FontSize: { Title: "Размер шрифта", - SubTitle: "Настроить размер шрифта контента чата", + SubTitle: "Размер шрифта в чате", }, FontFamily: { Title: "Шрифт чата", @@ -80,156 +162,376 @@ const ru: PartialLocaleType = { InjectSystemPrompts: { Title: "Вставить системные подсказки", SubTitle: - "Принудительно добавить симулированную системную подсказку ChatGPT в начало списка сообщений для каждого запроса", + "Принудительно добавлять системную подсказку, имитирующую ChatGPT, в начале каждого запроса", + }, + InputTemplate: { + Title: "Предварительная обработка пользовательского ввода", + SubTitle: + "Последнее сообщение пользователя будет подставлено в этот шаблон", }, + Update: { - Version: (x: string) => `Версия: ${x}`, - IsLatest: "Последняя версия", - CheckUpdate: "Проверить обновление", - IsChecking: "Проверка обновления...", - FoundUpdate: (x: string) => `Найдена новая версия: ${x}`, - GoToUpdate: "Обновить", - }, - SendKey: "Клавиша отправки", + Version: (x: string) => `Текущая версия: ${x}`, + IsLatest: "Установлена последняя версия", + CheckUpdate: "Проверить обновления", + IsChecking: "Проверка обновлений...", + FoundUpdate: (x: string) => `Найдено новое обновление: ${x}`, + GoToUpdate: "Перейти к обновлению", + }, + SendKey: "Кнопка отправки", Theme: "Тема", - TightBorder: "Узкая граница", + TightBorder: "Режим без границ", SendPreviewBubble: { - Title: "Отправить предпросмотр", - SubTitle: "Предварительный просмотр markdown в пузыре", + Title: "Предварительный просмотр пузырьков", + SubTitle: + "Просмотр содержимого Markdown в пузырьках предварительного просмотра", + }, + AutoGenerateTitle: { + Title: "Автоматическое создание заголовка", + SubTitle: "Создание подходящего заголовка на основе содержания беседы", + }, + Sync: { + CloudState: "Облачные данные", + NotSyncYet: "Синхронизация еще не проводилась", + Success: "Синхронизация успешна", + Fail: "Не удалось синхронизировать", + + Config: { + Modal: { + Title: "Настройки облачной синхронизации", + Check: "Проверить доступность", + }, + SyncType: { + Title: "Тип синхронизации", + SubTitle: "Выберите предпочитаемый сервер синхронизации", + }, + Proxy: { + Title: "Включить прокси", + SubTitle: + "При синхронизации в браузере необходимо включить прокси для предотвращения ограничений кросс-домена", + }, + ProxyUrl: { + Title: "Адрес прокси", + SubTitle: "Только для встроенного прокси в проекте", + }, + + WebDav: { + Endpoint: "WebDAV адрес", + UserName: "Имя пользователя", + Password: "Пароль", + }, + + UpStash: { + Endpoint: "UpStash Redis REST Url", + UserName: "Имя резервной копии", + Password: "UpStash Redis REST Token", + }, + }, + + LocalState: "Локальные данные", + Overview: (overview: any) => { + return `${overview.chat} бесед, ${overview.message} сообщений, ${overview.prompt} подсказок, ${overview.mask} масок`; + }, + ImportFailed: "Не удалось импортировать", }, Mask: { Splash: { - Title: "Экран заставки маски", - SubTitle: "Показывать экран заставки маски перед началом нового чата", + Title: "Стартовая страница масок", + SubTitle: + "При создании нового чата отображать стартовую страницу масок", + }, + Builtin: { + Title: "Скрыть встроенные маски", + SubTitle: "Скрыть встроенные маски во всех списках масок", }, }, Prompt: { Disable: { - Title: "Отключить автозаполнение", - SubTitle: "Ввод / для запуска автозаполнения", + Title: "Отключить автозаполнение подсказок", + SubTitle: "Введите / в начале строки для активации автозаполнения", }, - List: "Список подсказок", + List: "Список пользовательских подсказок", ListCount: (builtin: number, custom: number) => - `${builtin} встроенных, ${custom} пользовательских`, + `Встроенные ${builtin}, пользовательские ${custom}`, Edit: "Редактировать", Modal: { Title: "Список подсказок", - Add: "Добавить", + Add: "Создать", Search: "Поиск подсказок", }, EditModal: { - Title: "Редактировать подсказку", + Title: "Редактировать подсказки", }, }, HistoryCount: { - Title: "Количество прикрепляемых сообщений", - SubTitle: - "Количество отправляемых сообщений, прикрепляемых к каждому запросу", + Title: "Количество истории сообщений", + SubTitle: "Количество историй сообщений, отправляемых с каждым запросом", }, CompressThreshold: { - Title: "Порог сжатия истории", + Title: "Порог сжатия длины истории сообщений", SubTitle: - "Будет сжимать, если длина несжатых сообщений превышает указанное значение", + "Когда не сжатая история сообщений превышает это значение, происходит сжатие", }, Usage: { - Title: "Баланс аккаунта", + Title: "Проверка баланса", SubTitle(used: any, total: any) { - return `Использовано в этом месяце $${used}, подписка $${total}`; + return `Использовано в этом месяце $${used}, всего по подписке $${total}`; + }, + IsChecking: "Проверка…", + Check: "Проверить снова", + NoAccess: "Введите API-ключ или пароль доступа для просмотра баланса", + }, + + Access: { + AccessCode: { + Title: "Пароль доступа", + SubTitle: "Администратор включил защиту паролем", + Placeholder: "Введите пароль доступа", + }, + CustomEndpoint: { + Title: "Пользовательский интерфейс", + SubTitle: "Использовать ли пользовательский Azure или OpenAI сервис", + }, + Provider: { + Title: "Провайдер модели", + SubTitle: "Переключиться на другого провайдера", + }, + OpenAI: { + ApiKey: { + Title: "API-ключ", + SubTitle: + "Использовать пользовательский OpenAI-ключ для обхода ограничений пароля", + Placeholder: "OpenAI API-ключ", + }, + + Endpoint: { + Title: "Адрес интерфейса", + SubTitle: "Кроме адреса по умолчанию, должен содержать http(s)://", + }, + }, + Azure: { + ApiKey: { + Title: "Ключ интерфейса", + SubTitle: + "Использовать пользовательский Azure-ключ для обхода ограничений пароля", + Placeholder: "Azure API-ключ", + }, + + Endpoint: { + Title: "Адрес интерфейса", + SubTitle: "Пример:", + }, + + ApiVerion: { + Title: "Версия интерфейса (azure api version)", + SubTitle: "Выберите конкретную версию", + }, + }, + Anthropic: { + ApiKey: { + Title: "Ключ интерфейса", + SubTitle: + "Использовать пользовательский Anthropic-ключ для обхода ограничений пароля", + Placeholder: "Anthropic API-ключ", + }, + + Endpoint: { + Title: "Адрес интерфейса", + SubTitle: "Пример:", + }, + + ApiVerion: { + Title: "Версия интерфейса (claude api version)", + SubTitle: "Выберите конкретную версию API", + }, + }, + Google: { + ApiKey: { + Title: "API-ключ", + SubTitle: "Получите ваш API-ключ Google AI", + Placeholder: "Введите ваш API-ключ Google AI Studio", + }, + + Endpoint: { + Title: "Адрес интерфейса", + SubTitle: "Пример:", + }, + + ApiVersion: { + Title: "Версия API (только для gemini-pro)", + SubTitle: "Выберите конкретную версию API", + }, + GoogleSafetySettings: { + Title: "Уровень фильтрации Google", + SubTitle: "Настроить уровень фильтрации контента", + }, + }, + Baidu: { + ApiKey: { + Title: "API-ключ", + SubTitle: "Использовать пользовательский Baidu API-ключ", + Placeholder: "Baidu API-ключ", + }, + SecretKey: { + Title: "Секретный ключ", + SubTitle: "Использовать пользовательский Baidu Secret Key", + Placeholder: "Baidu Secret Key", + }, + Endpoint: { + Title: "Адрес интерфейса", + SubTitle: + "Не поддерживает пользовательскую настройку, перейдите в .env", + }, + }, + ByteDance: { + ApiKey: { + Title: "Ключ интерфейса", + SubTitle: "Использовать пользовательский ByteDance API-ключ", + Placeholder: "ByteDance API-ключ", + }, + Endpoint: { + Title: "Адрес интерфейса", + SubTitle: "Пример:", + }, + }, + Alibaba: { + ApiKey: { + Title: "Ключ интерфейса", + SubTitle: "Использовать пользовательский Alibaba Cloud API-ключ", + Placeholder: "Alibaba Cloud API-ключ", + }, + Endpoint: { + Title: "Адрес интерфейса", + SubTitle: "Пример:", + }, + }, + CustomModel: { + Title: "Название пользовательской модели", + SubTitle: + "Добавьте варианты пользовательских моделей, разделяя запятыми", }, - IsChecking: "Проверка...", - Check: "Проверить", - NoAccess: "Введите API ключ, чтобы проверить баланс", }, Model: "Модель", Temperature: { - Title: "Температура", - SubTitle: "Чем выше значение, тем более случайный вывод", + Title: "Случайность (temperature)", + SubTitle: "Чем больше значение, тем более случайные ответы", + }, + TopP: { + Title: "Ядро выборки (top_p)", + SubTitle: "Похожие на случайность, но не изменяйте вместе с случайностью", }, MaxTokens: { - Title: "Максимальное количество токенов", - SubTitle: "Максимальная длина вводных и генерируемых токенов", + Title: "Ограничение на количество токенов за один раз (max_tokens)", + SubTitle: "Максимальное количество токенов на одно взаимодействие", }, PresencePenalty: { - Title: "Штраф за повторения", + Title: "Наказание за новизну тем (presence_penalty)", SubTitle: - "Чем выше значение, тем больше вероятность общения на новые темы", + "Чем больше значение, тем выше вероятность расширения на новые темы", }, FrequencyPenalty: { - Title: "Штраф за частоту", + Title: "Наказание за частоту (frequency_penalty)", SubTitle: - "Большее значение снижает вероятность повторения одной и той же строки", + "Чем больше значение, тем выше вероятность уменьшения повторяющихся слов", }, }, Store: { - DefaultTopic: "Новый разговор", - BotHello: "Здравствуйте! Как я могу вам помочь сегодня?", - Error: "Что-то пошло не так. Пожалуйста, попробуйте еще раз позже.", + DefaultTopic: "Новый чат", + BotHello: "Чем могу помочь?", + Error: "Произошла ошибка, попробуйте позже", Prompt: { History: (content: string) => - "Это краткое содержание истории чата между ИИ и пользователем: " + - content, + "Это резюме истории чата как предыстория: " + content, Topic: - "Пожалуйста, создайте заголовок из четырех или пяти слов, который кратко описывает нашу беседу, без введения, знаков пунктуации, кавычек, точек, символов или дополнительного текста. Удалите кавычки.", + "Укажите краткую тему этого сообщения в четырех-пяти словах, без объяснений, знаков препинания, междометий, лишнего текста или выделения. Если темы нет, просто напишите 'Болтовня'", Summarize: - "Кратко изложите нашу дискуссию в 200 словах или менее для использования в будущем контексте.", + "Кратко подведите итоги содержимого беседы для использования в качестве последующего контекстного запроса, не более 200 слов", }, }, Copy: { Success: "Скопировано в буфер обмена", - Failed: - "Не удалось скопировать, пожалуйста, предоставьте разрешение на доступ к буферу обмена", + Failed: "Не удалось скопировать, предоставьте доступ к буферу обмена", + }, + Download: { + Success: "Содержимое успешно загружено в вашу директорию.", + Failed: "Не удалось загрузить.", }, Context: { - Toast: (x: any) => `С ${x} контекстными подсказками`, - Edit: "Контекстные и памятные подсказки", - Add: "Добавить подсказку", + Toast: (x: any) => `Содержит ${x} предустановленных подсказок`, + Edit: "Текущие настройки чата", + Add: "Добавить новый чат", + Clear: "Контекст очищен", + Revert: "Восстановить контекст", }, Plugin: { - Name: "Плагин", + Name: "Плагины", }, FineTuned: { - Sysmessage: "Вы - ассистент, который", + Sysmessage: "Вы - помощник", }, Mask: { Name: "Маска", Page: { - Title: "Шаблон подсказки", - SubTitle: (count: number) => `${count} шаблонов подсказок`, - Search: "Поиск шаблонов", + Title: "Предустановленные роли", + SubTitle: (count: number) => `${count} предустановленных ролей`, + Search: "Поиск ролей", Create: "Создать", }, Item: { - Info: (count: number) => `${count} подсказок`, - Chat: "Чат", - View: "Просмотр", + Info: (count: number) => `Содержит ${count} предустановленных диалогов`, + Chat: "Диалог", + View: "Просмотреть", Edit: "Редактировать", Delete: "Удалить", DeleteConfirm: "Подтвердить удаление?", }, EditModal: { Title: (readonly: boolean) => - `Редактирование шаблона подсказки ${ - readonly ? "(только для чтения)" : "" + `Редактирование предустановленной маски ${ + readonly ? "(только для чтения)" : "" }`, - Download: "Скачать", - Clone: "Клонировать", + Download: "Скачать предустановку", + Clone: "Клонировать предустановку", }, Config: { - Avatar: "Аватар бота", - Name: "Имя бота", + Avatar: "Аватар роли", + Name: "Название роли", + Sync: { + Title: "Использовать глобальные настройки", + SubTitle: + "Будет ли текущий чат использовать глобальные настройки модели", + Confirm: + "Пользовательские настройки текущего чата будут автоматически заменены, подтвердите активацию глобальных настроек?", + }, + HideContext: { + Title: "Скрыть предустановленные диалоги", + SubTitle: + "После скрытия предустановленные диалоги не будут отображаться в чате", + }, + Share: { + Title: "Поделиться этой маской", + SubTitle: "Создать прямую ссылку на эту маску", + Action: "Скопировать ссылку", + }, }, }, NewChat: { Return: "Вернуться", - Skip: "Пропустить", - Title: "Выберите маску", - SubTitle: "Общайтесь с душой за маской", - More: "Найти еще", - NotShow: "Не показывать снова", + Skip: "Начать сразу", + NotShow: "Больше не показывать", ConfirmNoShow: - "Подтвердите отключение? Вы можете включить это позже в настройках.", + "Подтвердить отключение? После отключения вы всегда сможете включить его снова в настройках.", + Title: "Выберите маску", + SubTitle: "Начните сейчас, столкнитесь с мыслями за маской", + More: "Показать все", + }, + + URLCommand: { + Code: "Обнаружен код доступа в ссылке, автоматически заполнить?", + Settings: + "Обнаружены предустановленные настройки в ссылке, автоматически заполнить?", }, UI: { @@ -238,8 +540,15 @@ const ru: PartialLocaleType = { Close: "Закрыть", Create: "Создать", Edit: "Редактировать", + Export: "Экспортировать", + Import: "Импортировать", + Sync: "Синхронизировать", + Config: "Настройки", }, Exporter: { + Description: { + Title: "Только сообщения после очистки контекста будут отображаться", + }, Model: "Модель", Messages: "Сообщения", Topic: "Тема", diff --git a/app/locales/tr.ts b/app/locales/tr.ts index 551e5e342c6..c90ee83bad1 100644 --- a/app/locales/tr.ts +++ b/app/locales/tr.ts @@ -1,75 +1,158 @@ import { SubmitKey } from "../store/config"; import type { PartialLocaleType } from "./index"; +import { getClientConfig } from "../config/client"; + +const isApp = !!getClientConfig()?.isApp; const tr: PartialLocaleType = { WIP: "Çalışma devam ediyor...", Error: { - Unauthorized: - "Yetkisiz erişim, lütfen erişim kodunu ayarlar [sayfasından](/#/auth) giriniz.", + Unauthorized: isApp + ? "Geçersiz API Anahtarı tespit edildi, lütfen API Anahtarını doğru şekilde yapılandırmak için [Ayarlar](/#/settings) sayfasına gidin." + : "Erişim şifresi yanlış veya boş, lütfen doğru erişim şifresini girmek için [Giriş](/#/auth) sayfasına gidin veya kendi OpenAI API Anahtarınızı [Ayarlar](/#/settings) sayfasına girin.", + }, + Auth: { + Title: "Şifre Gerekli", + Tips: "Yönetici şifre doğrulamasını etkinleştirdi, lütfen aşağıya erişim kodunu girin", + SubTips: "Veya OpenAI veya Google API anahtarınızı girin", + Input: "Erişim kodunu buraya girin", + Confirm: "Onayla", + Later: "Sonra", }, ChatItem: { - ChatItemCount: (count: number) => `${count} mesaj`, + ChatItemCount: (count: number) => `${count} konuşma`, }, Chat: { - SubTitle: (count: number) => `ChatGPT tarafından ${count} mesaj`, + SubTitle: (count: number) => `Toplam ${count} konuşma`, + EditMessage: { + Title: "Mesaj Kayıtlarını Düzenle", + Topic: { + Title: "Sohbet Konusu", + SubTitle: "Geçerli sohbet konusunu değiştir", + }, + }, Actions: { - ChatList: "Sohbet Listesine Git", - CompressedHistory: "Sıkıştırılmış Geçmiş Bellek Komutu", - Export: "Tüm Mesajları Markdown Olarak Dışa Aktar", + ChatList: "Mesaj listesine bak", + CompressedHistory: "Sıkıştırılmış geçmişi gör", + Export: "Sohbet kayıtlarını dışa aktar", Copy: "Kopyala", Stop: "Durdur", - Retry: "Tekrar Dene", - Delete: "Delete", + Retry: "Yeniden dene", + Pin: "Sabitlenmiş", + PinToastContent: "1 konuşma varsayılan ifadeye sabitlendi", + PinToastAction: "Görünüm", + Delete: "Sil", + Edit: "Düzenle", + }, + Commands: { + new: "Yeni sohbet", + newm: "Maske ile yeni sohbet oluştur", + next: "Sonraki sohbet", + prev: "Önceki sohbet", + clear: "Konteksti temizle", + del: "Sohbeti sil", + }, + InputActions: { + Stop: "Yanıtı durdur", + ToBottom: "En alta git", + Theme: { + auto: "Otomatik tema", + light: "Açık mod", + dark: "Koyu mod", + }, + Prompt: "Kısayol komutu", + Masks: "Tüm maskeler", + Clear: "Sohbeti temizle", + Settings: "Sohbet ayarları", + UploadImage: "Resim yükle", }, - Rename: "Sohbeti Yeniden Adlandır", + Rename: "Sohbeti yeniden adlandır", Typing: "Yazıyor…", Input: (submitKey: string) => { - var inputHints = `Göndermek için ${submitKey}`; + var inputHints = `${submitKey} gönder`; if (submitKey === String(SubmitKey.Enter)) { - inputHints += ", kaydırmak için Shift + Enter"; + inputHints += " Shift + Enter satır sonu için"; } - return inputHints + ", komutları aramak için / (eğik çizgi)"; + return inputHints + " / tamamlama için, : komutlar için"; }, Send: "Gönder", Config: { - Reset: "Reset to Default", - SaveAs: "Save as Mask", + Reset: "Hafızayı temizle", + SaveAs: "Maske olarak kaydet", }, + IsContext: "Varsayılan ifade", }, Export: { - Title: "Tüm Mesajlar", - Copy: "Tümünü Kopyala", - Download: "İndir", - MessageFromYou: "Sizin Mesajınız", - MessageFromChatGPT: "ChatGPT'nin Mesajı", + Title: "Sohbet kayıtlarını paylaş", + Copy: "Hepsini kopyala", + Download: "Dosyayı indir", + Share: "ShareGPT'ye paylaş", + MessageFromYou: "Kullanıcı", + MessageFromChatGPT: "ChatGPT", + Format: { + Title: "Dışa aktarma formatı", + SubTitle: "Markdown metni veya PNG resmi olarak dışa aktarabilirsiniz", + }, + IncludeContext: { + Title: "Maske bağlamını dahil et", + SubTitle: "Mesajlarda maske bağlamını göstermek ister misiniz", + }, + Steps: { + Select: "Seç", + Preview: "Önizleme", + }, + Image: { + Toast: "Ekran görüntüsü oluşturuluyor", + Modal: "Resmi uzun basın veya sağ tıklayın ve kaydedin", + }, + }, + Select: { + Search: "Mesajları ara", + All: "Hepsini seç", + Latest: "Son birkaç mesaj", + Clear: "Seçimi temizle", }, Memory: { - Title: "Bellek Komutları", - EmptyContent: "Henüz değil.", - Send: "Belleği Gönder", - Copy: "Belleği Kopyala", - Reset: "Oturumu Sıfırla", - ResetConfirm: - "Sıfırlama, geçerli görüşme geçmişini ve geçmiş belleği siler. Sıfırlamak istediğinizden emin misiniz?", + Title: "Geçmiş Özeti", + EmptyContent: "Sohbet içeriği çok kısa, özetleme gerek yok", + Send: "Sohbet kayıtlarını otomatik olarak sıkıştır ve bağlam olarak gönder", + Copy: "Özeti kopyala", + Reset: "[kullanılmadı]", + ResetConfirm: "Geçmiş özetini temizlemek istediğinize emin misiniz?", }, Home: { - NewChat: "Yeni Sohbet", - DeleteChat: "Seçili sohbeti silmeyi onaylıyor musunuz?", - DeleteToast: "Sohbet Silindi", - Revert: "Geri Al", + NewChat: "Yeni sohbet", + DeleteChat: "Seçilen sohbeti silmek istediğinize emin misiniz?", + DeleteToast: "Sohbet silindi", + Revert: "Geri al", }, Settings: { Title: "Ayarlar", - SubTitle: "Tüm Ayarlar", + SubTitle: "Tüm ayar seçenekleri", + Danger: { + Reset: { + Title: "Tüm ayarları sıfırla", + SubTitle: "Tüm ayarları varsayılan değerlere sıfırla", + Action: "Hemen sıfırla", + Confirm: "Tüm ayarları sıfırlamak istediğinizden emin misiniz?", + }, + Clear: { + Title: "Tüm verileri temizle", + SubTitle: "Tüm sohbet ve ayar verilerini temizle", + Action: "Hemen temizle", + Confirm: + "Tüm sohbet ve ayar verilerini temizlemek istediğinizden emin misiniz?", + }, + }, Lang: { - Name: "Language", // ATTENTION: if you wanna add a new translation, please do not translate this value, leave it as `Language` - All: "Tüm Diller", + Name: "Language", // Dikkat: yeni bir çeviri eklemek isterseniz, bu değeri çevirmeyin, `Language` olarak bırakın + All: "Tüm diller", }, - Avatar: "Avatar", + Avatar: "Profil Resmi", FontSize: { Title: "Yazı Boyutu", - SubTitle: "Sohbet içeriğinin yazı boyutunu ayarlayın", + SubTitle: "Sohbet içeriğinin yazı boyutu", }, FontFamily: { Title: "Sohbet Yazı Tipi", @@ -78,165 +161,392 @@ const tr: PartialLocaleType = { Placeholder: "Yazı Tipi Adı", }, InjectSystemPrompts: { - Title: "Sistem İpucu Ekleyin", - SubTitle: - "Her istek için ileti listesinin başına simüle edilmiş bir ChatGPT sistem ipucu ekleyin", + Title: "Sistem Seviyesi İpucu Enjeksiyonu", + SubTitle: "Her isteğin başına ChatGPT benzeri bir sistem ipucu ekle", }, + InputTemplate: { + Title: "Kullanıcı Girdisi Ön İşleme", + SubTitle: "Kullanıcının en son mesajı bu şablona doldurulur", + }, + Update: { - Version: (x: string) => `Sürüm: ${x}`, + Version: (x: string) => `Mevcut sürüm: ${x}`, IsLatest: "En son sürüm", - CheckUpdate: "Güncellemeyi Kontrol Et", - IsChecking: "Güncelleme kontrol ediliyor...", + CheckUpdate: "Güncellemeleri kontrol et", + IsChecking: "Güncellemeler kontrol ediliyor...", FoundUpdate: (x: string) => `Yeni sürüm bulundu: ${x}`, - GoToUpdate: "Güncelle", + GoToUpdate: "Güncellemeye git", }, - SendKey: "Gönder Tuşu", + SendKey: "Gönderme Tuşu", Theme: "Tema", - TightBorder: "Tam Ekran", + TightBorder: "Sınır Yok Modu", SendPreviewBubble: { - Title: "Mesaj Önizleme Balonu", - SubTitle: "Preview markdown in bubble", + Title: "Önizleme Balonu", + SubTitle: "Markdown içeriğini önizleme balonunda görüntüle", + }, + AutoGenerateTitle: { + Title: "Başlığı Otomatik Oluştur", + SubTitle: "Sohbet içeriğine göre uygun başlık oluştur", + }, + Sync: { + CloudState: "Bulut Verisi", + NotSyncYet: "Henüz senkronize edilmedi", + Success: "Senkronizasyon başarılı", + Fail: "Senkronizasyon başarısız", + + Config: { + Modal: { + Title: "Bulut Senkronizasyonu Yapılandır", + Check: "Kullanılabilirliği kontrol et", + }, + SyncType: { + Title: "Senkronizasyon Türü", + SubTitle: "Tercih ettiğiniz senkronizasyon sunucusunu seçin", + }, + Proxy: { + Title: "Proxy'yi Etkinleştir", + SubTitle: + "Tarayıcıda senkronize ederken proxy'yi etkinleştirin, aksi takdirde çapraz kaynak kısıtlamalarıyla karşılaşabilirsiniz", + }, + ProxyUrl: { + Title: "Proxy Adresi", + SubTitle: "Sadece bu projeye ait çapraz kaynak proxy için", + }, + + WebDav: { + Endpoint: "WebDAV Adresi", + UserName: "Kullanıcı Adı", + Password: "Şifre", + }, + + UpStash: { + Endpoint: "UpStash Redis REST Url", + UserName: "Yedekleme Adı", + Password: "UpStash Redis REST Token", + }, + }, + + LocalState: "Yerel Veri", + Overview: (overview: any) => { + return `${overview.chat} konuşma, ${overview.message} mesaj, ${overview.prompt} ipucu, ${overview.mask} maske`; + }, + ImportFailed: "İçeri aktarma başarısız", }, Mask: { Splash: { - Title: "Mask Splash Screen", - SubTitle: "Show a mask splash screen before starting new chat", + Title: "Maske Başlangıç Sayfası", + SubTitle: + "Yeni sohbet başlatıldığında maske başlangıç sayfasını göster", + }, + Builtin: { + Title: "Yerleşik Maskeleri Gizle", + SubTitle: "Tüm maskeler listesindeki yerleşik maskeleri gizle", }, }, Prompt: { Disable: { - Title: "Otomatik tamamlamayı devre dışı bırak", - SubTitle: "Otomatik tamamlamayı kullanmak için / (eğik çizgi) girin", + Title: "İpucu Tamamlamayı Devre Dışı Bırak", + SubTitle: + "Giriş kutusunun başına / yazarak otomatik tamamlamayı tetikle", }, - List: "Komut Listesi", + List: "Özelleştirilmiş İpucu Listesi", ListCount: (builtin: number, custom: number) => - `${builtin} yerleşik, ${custom} kullanıcı tanımlı`, + `Yerleşik ${builtin} tane, kullanıcı tanımlı ${custom} tane`, Edit: "Düzenle", Modal: { - Title: "Prompt List", - Add: "Add One", - Search: "Search Prompts", + Title: "İpucu Listesi", + Add: "Yeni Ekle", + Search: "İpucu Ara", }, EditModal: { - Title: "Edit Prompt", + Title: "İpucu Düzenle", }, }, HistoryCount: { - Title: "Ekli Mesaj Sayısı", - SubTitle: "İstek başına ekli gönderilen mesaj sayısı", + Title: "Ekli Geçmiş Mesaj Sayısı", + SubTitle: "Her istekte taşınan geçmiş mesaj sayısı", }, CompressThreshold: { - Title: "Geçmiş Sıkıştırma Eşiği", + Title: "Geçmiş Mesaj Uzunluğu Sıkıştırma Eşiği", SubTitle: - "Sıkıştırılmamış mesajların uzunluğu bu değeri aşarsa sıkıştırılır", + "Sıkıştırılmamış geçmiş mesaj bu değeri aştığında sıkıştırma yapılır", }, Usage: { - Title: "Hesap Bakiyesi", + Title: "Bakiye Sorgulama", SubTitle(used: any, total: any) { - return `Bu ay kullanılan $${used}, abonelik $${total}`; + return `Bu ay kullanılan $${used}, toplam abonelik ücreti $${total}`; }, - IsChecking: "Kontrol ediliyor...", - Check: "Tekrar Kontrol Et", - NoAccess: "Bakiyeyi kontrol etmek için API anahtarını girin", + IsChecking: "Kontrol ediliyor…", + Check: "Yeniden kontrol et", + NoAccess: + "Bakiye görüntülemek için API Anahtarı veya erişim şifresi girin", }, - Model: "Model", + Access: { + AccessCode: { + Title: "Erişim Şifresi", + SubTitle: "Yönetici şifreli erişimi etkinleştirdi", + Placeholder: "Erişim şifrenizi girin", + }, + CustomEndpoint: { + Title: "Özelleştirilmiş API", + SubTitle: + "Özelleştirilmiş Azure veya OpenAI hizmeti kullanmak ister misiniz?", + }, + Provider: { + Title: "Model Sağlayıcısı", + SubTitle: "Farklı sağlayıcılara geçiş yapın", + }, + OpenAI: { + ApiKey: { + Title: "API Anahtarı", + SubTitle: + "Özelleştirilmiş OpenAI Anahtarı kullanarak şifreli erişim kısıtlamalarını atlayın", + Placeholder: "OpenAI API Anahtarı", + }, + + Endpoint: { + Title: "API Adresi", + SubTitle: "Varsayılan adres dışında, http(s):// içermelidir", + }, + }, + Azure: { + ApiKey: { + Title: "API Anahtarı", + SubTitle: + "Özelleştirilmiş Azure Anahtarı kullanarak şifreli erişim kısıtlamalarını atlayın", + Placeholder: "Azure API Anahtarı", + }, + + Endpoint: { + Title: "API Adresi", + SubTitle: "Örnek:", + }, + + ApiVerion: { + Title: "API Versiyonu (azure api version)", + SubTitle: "Belirli bir versiyonu seçin", + }, + }, + Anthropic: { + ApiKey: { + Title: "API Anahtarı", + SubTitle: + "Özelleştirilmiş Anthropic Anahtarı kullanarak şifreli erişim kısıtlamalarını atlayın", + Placeholder: "Anthropic API Anahtarı", + }, + + Endpoint: { + Title: "API Adresi", + SubTitle: "Örnek:", + }, + + ApiVerion: { + Title: "API Versiyonu (claude api version)", + SubTitle: "Belirli bir API versiyonunu seçin", + }, + }, + Google: { + ApiKey: { + Title: "API Anahtarı", + SubTitle: "Google AI'den API Anahtarınızı alın", + Placeholder: "Google AI Studio API Anahtarınızı girin", + }, + + Endpoint: { + Title: "Uç Nokta Adresi", + SubTitle: "Örnek:", + }, + + ApiVersion: { + Title: "API Versiyonu (sadece gemini-pro)", + SubTitle: "Belirli bir API versiyonunu seçin", + }, + GoogleSafetySettings: { + Title: "Google Güvenlik Filtreleme Seviyesi", + SubTitle: "İçerik filtreleme seviyesini ayarlayın", + }, + }, + Baidu: { + ApiKey: { + Title: "API Anahtarı", + SubTitle: "Özelleştirilmiş Baidu API Anahtarı kullanın", + Placeholder: "Baidu API Anahtarı", + }, + SecretKey: { + Title: "Secret Anahtarı", + SubTitle: "Özelleştirilmiş Baidu Secret Anahtarı kullanın", + Placeholder: "Baidu Secret Anahtarı", + }, + Endpoint: { + Title: "API Adresi", + SubTitle: "Özelleştirilmiş yapılandırma için .env'ye gidin", + }, + }, + ByteDance: { + ApiKey: { + Title: "API Anahtarı", + SubTitle: "Özelleştirilmiş ByteDance API Anahtarı kullanın", + Placeholder: "ByteDance API Anahtarı", + }, + Endpoint: { + Title: "API Adresi", + SubTitle: "Örnek:", + }, + }, + Alibaba: { + ApiKey: { + Title: "API Anahtarı", + SubTitle: "Özelleştirilmiş Alibaba Cloud API Anahtarı kullanın", + Placeholder: "Alibaba Cloud API Anahtarı", + }, + Endpoint: { + Title: "API Adresi", + SubTitle: "Örnek:", + }, + }, + CustomModel: { + Title: "Özelleştirilmiş Model Adı", + SubTitle: + "Özelleştirilmiş model seçenekleri ekleyin, İngilizce virgül ile ayırın", + }, + }, + + Model: "Model (model)", Temperature: { - Title: "Gerçeklik", + Title: "Rastgelelik (temperature)", + SubTitle: "Değer arttıkça yanıt daha rastgele olur", + }, + TopP: { + Title: "Nükleer Örnekleme (top_p)", SubTitle: - "Daha büyük bir değer girildiğinde gerçeklik oranı düşer ve daha rastgele çıktılar üretir", + "Rastgeleliğe benzer, ancak rastgelelik ile birlikte değiştirmeyin", }, MaxTokens: { - Title: "Maksimum Belirteç", - SubTitle: - "Girdi belirteçlerinin ve oluşturulan belirteçlerin maksimum uzunluğu", + Title: "Tek Yanıt Limiti (max_tokens)", + SubTitle: "Tek etkileşimde kullanılan maksimum Token sayısı", }, PresencePenalty: { - Title: "Varlık Cezası", - SubTitle: - "Daha büyük bir değer, yeni konular hakkında konuşma olasılığını artırır", + Title: "Konu Tazeliği (presence_penalty)", + SubTitle: "Değer arttıkça, yeni konulara geçiş olasılığı artar", }, FrequencyPenalty: { - Title: "Frekans Cezası", + Title: "Frekans Cezası (frequency_penalty)", SubTitle: - "Aynı satırı tekrar etme olasılığını azaltan daha büyük bir değer", + "Değer arttıkça, tekrar eden kelimelerin azalması olasılığı artar", }, }, Store: { - DefaultTopic: "Yeni Konuşma", - BotHello: "Merhaba! Size bugün nasıl yardımcı olabilirim?", - Error: "Bir şeyler yanlış gitti. Lütfen daha sonra tekrar deneyiniz.", + DefaultTopic: "Yeni Sohbet", + BotHello: "Size nasıl yardımcı olabilirim?", + Error: "Bir hata oluştu, lütfen daha sonra tekrar deneyin", Prompt: { - History: (content: string) => - "Bu, yapay zeka ile kullanıcı arasındaki sohbet geçmişinin bir özetidir: " + - content, + History: (content: string) => "Bu, geçmiş sohbetin özeti: " + content, Topic: - "Lütfen herhangi bir giriş, noktalama işareti, tırnak işareti, nokta, sembol veya ek metin olmadan konuşmamızı özetleyen dört ila beş kelimelik bir başlık oluşturun. Çevreleyen tırnak işaretlerini kaldırın.", + "Bu cümlenin dört ila beş kelimelik kısa başlığını doğrudan verin, açıklama yapmayın, noktalama işareti, duygu kelimesi veya fazla metin eklemeyin, kalın yapmayın. Başlık yoksa, doğrudan 'Sohbet' yanıtını verin.", Summarize: - "Gelecekteki bağlam için bir bilgi istemi olarak kullanmak üzere tartışmamızı en fazla 200 kelimeyle özetleyin.", + "Sohbet içeriğini kısaca özetleyin, bu özet sonraki bağlam ipucu olarak kullanılacaktır, 200 kelime içinde tutun", }, }, Copy: { - Success: "Panoya kopyalandı", - Failed: "Kopyalama başarısız oldu, lütfen panoya erişim izni verin", + Success: "Panoya yazıldı", + Failed: "Kopyalama başarısız, lütfen panoya erişim izni verin", + }, + Download: { + Success: "İçerik dizininize indirildi.", + Failed: "İndirme başarısız.", }, Context: { - Toast: (x: any) => `${x} bağlamsal bellek komutu`, - Edit: "Bağlamsal ve Bellek Komutları", - Add: "Yeni Ekle", + Toast: (x: any) => `${x} tane önceden tanımlı ipucu içeriyor`, + Edit: "Mevcut sohbet ayarları", + Add: "Yeni bir sohbet ekle", + Clear: "Bağlam temizlendi", + Revert: "Bağlamı geri getir", }, Plugin: { - Name: "Plugin", + Name: "Eklenti", }, FineTuned: { Sysmessage: "Sen bir asistansın", }, Mask: { - Name: "Mask", + Name: "Maske", Page: { - Title: "Prompt Template", - SubTitle: (count: number) => `${count} prompt templates`, - Search: "Search Templates", - Create: "Create", + Title: "Önceden Tanımlı Karakter Maskeleri", + SubTitle: (count: number) => + `${count} tane önceden tanımlı karakter tanımı`, + Search: "Karakter maskesi ara", + Create: "Yeni oluştur", }, Item: { - Info: (count: number) => `${count} prompts`, - Chat: "Chat", - View: "View", - Edit: "Edit", - Delete: "Delete", - DeleteConfirm: "Confirm to delete?", + Info: (count: number) => `${count} tane önceden tanımlı sohbet içeriyor`, + Chat: "Sohbet", + View: "Görüntüle", + Edit: "Düzenle", + Delete: "Sil", + DeleteConfirm: "Silmek istediğinizden emin misiniz?", }, EditModal: { Title: (readonly: boolean) => - `Edit Prompt Template ${readonly ? "(readonly)" : ""}`, - Download: "Download", - Clone: "Clone", + `Önceden Tanımlı Maskeyi Düzenle ${readonly ? " (Salt Okunur)" : ""}`, + Download: "Önceden Tanımlı Maskeyi İndir", + Clone: "Önceden Tanımlı Maskeyi Kopyala", }, Config: { - Avatar: "Bot Avatar", - Name: "Bot Name", + Avatar: "Karakter Profil Resmi", + Name: "Karakter Adı", + Sync: { + Title: "Küresel Ayarları Kullan", + SubTitle: "Mevcut sohbet küresel model ayarlarını mı kullanacak?", + Confirm: + "Mevcut sohbetin özelleştirilmiş ayarları otomatik olarak üzerine yazılacaktır, küresel ayarları etkinleştirmek istediğinizden emin misiniz?", + }, + HideContext: { + Title: "Önceden Tanımlı Sohbetleri Gizle", + SubTitle: + "Gizlendiğinde, önceden tanımlı sohbetler sohbet ekranında görünmeyecek", + }, + Share: { + Title: "Bu Maskeyi Paylaş", + SubTitle: "Bu maskenin doğrudan bağlantısını oluştur", + Action: "Bağlantıyı Kopyala", + }, }, }, NewChat: { - Return: "Return", - Skip: "Skip", - Title: "Pick a Mask", - SubTitle: "Chat with the Soul behind the Mask", - More: "Find More", - NotShow: "Not Show Again", - ConfirmNoShow: "Confirm to disable?You can enable it in settings later.", + Return: "Geri dön", + Skip: "Doğrudan başla", + NotShow: "Bir daha gösterme", + ConfirmNoShow: + "Devre dışı bırakmak istediğinizden emin misiniz? Devre dışı bıraktıktan sonra ayarlardan tekrar etkinleştirebilirsiniz.", + Title: "Bir Maske Seçin", + SubTitle: + "Şimdi başlayın ve maskenin arkasındaki zihinle etkileşimde bulunun", + More: "Tümünü Gör", + }, + + URLCommand: { + Code: "Bağlantıda erişim kodu bulundu, otomatik olarak doldurulsun mu?", + Settings: + "Bağlantıda önceden tanımlı ayarlar bulundu, otomatik olarak doldurulsun mu?", }, UI: { - Confirm: "Confirm", - Cancel: "Cancel", - Close: "Close", - Create: "Create", - Edit: "Edit", + Confirm: "Onayla", + Cancel: "İptal et", + Close: "Kapat", + Create: "Yeni oluştur", + Edit: "Düzenle", + Export: "Dışa Aktar", + Import: "İçe Aktar", + Sync: "Senkronize et", + Config: "Yapılandır", }, Exporter: { + Description: { + Title: "Sadece bağlam temizlendikten sonraki mesajlar gösterilecektir", + }, Model: "Model", Messages: "Mesajlar", Topic: "Konu", diff --git a/app/locales/vi.ts b/app/locales/vi.ts index 1f5c4fc685b..ed1f689f421 100644 --- a/app/locales/vi.ts +++ b/app/locales/vi.ts @@ -1,75 +1,157 @@ import { SubmitKey } from "../store/config"; import type { PartialLocaleType } from "./index"; +import { getClientConfig } from "../config/client"; + +const isApp = !!getClientConfig()?.isApp; const vi: PartialLocaleType = { WIP: "Sắp ra mắt...", Error: { - Unauthorized: - "Truy cập chưa xác thực, vui lòng nhập mã truy cập trong trang cài đặt.", + Unauthorized: isApp + ? "Phát hiện khóa API không hợp lệ, vui lòng truy cập trang [Cài đặt](/#/settings) để kiểm tra xem khóa API có được cấu hình chính xác không." + : "Mật khẩu truy cập không đúng hoặc để trống, vui lòng truy cập trang [Đăng nhập](/#/auth) để nhập mật khẩu truy cập chính xác, hoặc điền khóa API OpenAI của bạn vào trang [Cài đặt](/#/settings).", + }, + Auth: { + Title: "Cần mật khẩu", + Tips: "Quản trị viên đã bật xác thực mật khẩu, vui lòng nhập mã truy cập ở dưới", + SubTips: "Hoặc nhập khóa API OpenAI hoặc Google của bạn", + Input: "Nhập mã truy cập tại đây", + Confirm: "Xác nhận", + Later: "Để sau", }, ChatItem: { - ChatItemCount: (count: number) => `${count} tin nhắn`, + ChatItemCount: (count: number) => `${count} cuộc trò chuyện`, }, Chat: { - SubTitle: (count: number) => `${count} tin nhắn với ChatGPT`, + SubTitle: (count: number) => `Tổng cộng ${count} cuộc trò chuyện`, + EditMessage: { + Title: "Chỉnh sửa ghi chép tin nhắn", + Topic: { + Title: "Chủ đề trò chuyện", + SubTitle: "Thay đổi chủ đề trò chuyện hiện tại", + }, + }, Actions: { - ChatList: "Xem danh sách chat", - CompressedHistory: "Nén tin nhắn trong quá khứ", - Export: "Xuất tất cả tin nhắn dưới dạng Markdown", + ChatList: "Xem danh sách tin nhắn", + CompressedHistory: "Xem lịch sử Prompt đã nén", + Export: "Xuất khẩu ghi chép trò chuyện", Copy: "Sao chép", - Stop: "Dừng", + Stop: "Dừng lại", Retry: "Thử lại", + Pin: "Ghim", + PinToastContent: "Đã ghim 1 cuộc trò chuyện vào lời nhắc đã đặt sẵn", + PinToastAction: "Xem", Delete: "Xóa", + Edit: "Chỉnh sửa", }, - Rename: "Đổi tên", + Commands: { + new: "Tạo cuộc trò chuyện mới", + newm: "Tạo cuộc trò chuyện từ mặt nạ", + next: "Cuộc trò chuyện tiếp theo", + prev: "Cuộc trò chuyện trước đó", + clear: "Xóa ngữ cảnh", + del: "Xóa cuộc trò chuyện", + }, + InputActions: { + Stop: "Dừng phản hồi", + ToBottom: "Cuộn đến tin nhắn mới nhất", + Theme: { + auto: "Chủ đề tự động", + light: "Chế độ sáng", + dark: "Chế độ tối", + }, + Prompt: "Lệnh tắt", + Masks: "Tất cả mặt nạ", + Clear: "Xóa cuộc trò chuyện", + Settings: "Cài đặt trò chuyện", + UploadImage: "Tải lên hình ảnh", + }, + Rename: "Đổi tên cuộc trò chuyện", Typing: "Đang nhập…", Input: (submitKey: string) => { - var inputHints = `${submitKey} để gửi`; + var inputHints = `${submitKey} gửi`; if (submitKey === String(SubmitKey.Enter)) { - inputHints += ", Shift + Enter để xuống dòng"; + inputHints += ",Shift + Enter xuống dòng"; } - return inputHints + ", / để tìm kiếm mẫu gợi ý"; + return inputHints + ",/ kích hoạt hoàn chỉnh, : kích hoạt lệnh"; }, Send: "Gửi", Config: { - Reset: "Khôi phục cài đặt gốc", - SaveAs: "Lưu dưới dạng Mẫu", + Reset: "Xóa trí nhớ", + SaveAs: "Lưu dưới dạng mặt nạ", }, + IsContext: "Lời nhắc đã đặt sẵn", }, Export: { - Title: "Tất cả tin nhắn", + Title: "Chia sẻ ghi chép trò chuyện", Copy: "Sao chép tất cả", - Download: "Tải xuống", - MessageFromYou: "Tin nhắn của bạn", - MessageFromChatGPT: "Tin nhắn từ ChatGPT", + Download: "Tải xuống tệp", + Share: "Chia sẻ lên ShareGPT", + MessageFromYou: "Người dùng", + MessageFromChatGPT: "ChatGPT", + Format: { + Title: "Định dạng xuất khẩu", + SubTitle: "Có thể xuất khẩu dưới dạng văn bản Markdown hoặc hình ảnh PNG", + }, + IncludeContext: { + Title: "Bao gồm ngữ cảnh mặt nạ", + SubTitle: "Có hiển thị ngữ cảnh mặt nạ trong tin nhắn không", + }, + Steps: { + Select: "Chọn", + Preview: "Xem trước", + }, + Image: { + Toast: "Đang tạo ảnh chụp màn hình", + Modal: "Nhấn giữ hoặc nhấp chuột phải để lưu hình ảnh", + }, + }, + Select: { + Search: "Tìm kiếm tin nhắn", + All: "Chọn tất cả", + Latest: "Một vài tin nhắn gần đây", + Clear: "Xóa lựa chọn", }, Memory: { - Title: "Lịch sử tin nhắn", - EmptyContent: "Chưa có tin nhắn", - Send: "Gửi tin nhắn trong quá khứ", - Copy: "Sao chép tin nhắn trong quá khứ", - Reset: "Đặt lại phiên", - ResetConfirm: - "Đặt lại sẽ xóa toàn bộ lịch sử trò chuyện hiện tại và bộ nhớ. Bạn có chắc chắn muốn đặt lại không?", + Title: "Tóm tắt lịch sử", + EmptyContent: "Nội dung trò chuyện quá ngắn, không cần tóm tắt", + Send: "Tự động nén ghi chép trò chuyện và gửi dưới dạng ngữ cảnh", + Copy: "Sao chép tóm tắt", + Reset: "[unused]", + ResetConfirm: "Xác nhận xóa tóm tắt lịch sử?", }, Home: { NewChat: "Cuộc trò chuyện mới", - DeleteChat: "Xác nhận xóa các cuộc trò chuyện đã chọn?", + DeleteChat: "Xác nhận xóa cuộc trò chuyện đã chọn?", DeleteToast: "Đã xóa cuộc trò chuyện", - Revert: "Khôi phục", + Revert: "Hoàn tác", }, Settings: { Title: "Cài đặt", - SubTitle: "Tất cả cài đặt", + SubTitle: "Tất cả các tùy chọn cài đặt", + Danger: { + Reset: { + Title: "Đặt lại tất cả cài đặt", + SubTitle: "Đặt lại tất cả các mục cài đặt về giá trị mặc định", + Action: "Đặt lại ngay", + Confirm: "Xác nhận đặt lại tất cả cài đặt?", + }, + Clear: { + Title: "Xóa tất cả dữ liệu", + SubTitle: "Xóa tất cả các cuộc trò chuyện và dữ liệu cài đặt", + Action: "Xóa ngay", + Confirm: "Xác nhận xóa tất cả cuộc trò chuyện và dữ liệu cài đặt?", + }, + }, Lang: { - Name: "Language", // ATTENTION: if you wanna add a new translation, please do not translate this value, leave it as `Language` + Name: "Language", // CHÚ Ý: nếu bạn muốn thêm một bản dịch mới, vui lòng không dịch giá trị này, để nó là `Language` All: "Tất cả ngôn ngữ", }, - Avatar: "Ảnh đại diện", + Avatar: "Hình đại diện", FontSize: { - Title: "Font chữ", - SubTitle: "Thay đổi font chữ của nội dung trò chuyện", + Title: "Kích thước chữ", + SubTitle: "Kích thước chữ của nội dung trò chuyện", }, FontFamily: { Title: "Phông Chữ Trò Chuyện", @@ -78,108 +160,305 @@ const vi: PartialLocaleType = { Placeholder: "Tên Phông Chữ", }, InjectSystemPrompts: { - Title: "Tiêm Prompt Hệ thống", + Title: "Tiêm thông báo hệ thống", SubTitle: - "Bắt buộc thêm một prompt hệ thống giả lập ChatGPT ở đầu danh sách tin nhắn cho mỗi yêu cầu", + "Buộc thêm một thông báo hệ thống giả ChatGPT vào đầu danh sách tin nhắn mỗi lần yêu cầu", }, + InputTemplate: { + Title: "Xử lý đầu vào của người dùng", + SubTitle: "Tin nhắn mới nhất của người dùng sẽ được điền vào mẫu này", + }, + Update: { - Version: (x: string) => `Phiên bản: ${x}`, - IsLatest: "Phiên bản mới nhất", - CheckUpdate: "Kiểm tra bản cập nhật", - IsChecking: "Kiểm tra bản cập nhật...", - FoundUpdate: (x: string) => `Phát hiện phiên bản mới: ${x}`, - GoToUpdate: "Cập nhật", + Version: (x: string) => `Phiên bản hiện tại: ${x}`, + IsLatest: "Đã là phiên bản mới nhất", + CheckUpdate: "Kiểm tra cập nhật", + IsChecking: "Đang kiểm tra cập nhật...", + FoundUpdate: (x: string) => `Tìm thấy phiên bản mới: ${x}`, + GoToUpdate: "Đi đến cập nhật", }, SendKey: "Phím gửi", - Theme: "Theme", + Theme: "Giao diện", TightBorder: "Chế độ không viền", SendPreviewBubble: { - Title: "Gửi bong bóng xem trước", - SubTitle: "Xem trước nội dung markdown bằng bong bóng", + Title: "Bong bóng xem trước", + SubTitle: "Xem nội dung Markdown trong bong bóng xem trước", + }, + AutoGenerateTitle: { + Title: "Tự động tạo tiêu đề", + SubTitle: "Tạo tiêu đề phù hợp dựa trên nội dung cuộc trò chuyện", + }, + Sync: { + CloudState: "Dữ liệu đám mây", + NotSyncYet: "Chưa thực hiện đồng bộ", + Success: "Đồng bộ thành công", + Fail: "Đồng bộ thất bại", + + Config: { + Modal: { + Title: "Cấu hình đồng bộ đám mây", + Check: "Kiểm tra khả dụng", + }, + SyncType: { + Title: "Loại đồng bộ", + SubTitle: "Chọn máy chủ đồng bộ ưa thích", + }, + Proxy: { + Title: "Kích hoạt proxy", + SubTitle: + "Khi đồng bộ qua trình duyệt, cần kích hoạt proxy để tránh hạn chế ngang miền", + }, + ProxyUrl: { + Title: "Địa chỉ proxy", + SubTitle: "Chỉ áp dụng cho proxy ngang miền của dự án này", + }, + + WebDav: { + Endpoint: "Địa chỉ WebDAV", + UserName: "Tên người dùng", + Password: "Mật khẩu", + }, + + UpStash: { + Endpoint: "URL UpStash Redis REST", + UserName: "Tên sao lưu", + Password: "Token UpStash Redis REST", + }, + }, + + LocalState: "Dữ liệu cục bộ", + Overview: (overview: any) => { + return `${overview.chat} cuộc trò chuyện, ${overview.message} tin nhắn, ${overview.prompt} lệnh, ${overview.mask} mặt nạ`; + }, + ImportFailed: "Nhập không thành công", }, Mask: { Splash: { - Title: "Mask Splash Screen", - SubTitle: "Chớp màn hình khi bắt đầu cuộc trò chuyện mới", + Title: "Trang khởi động mặt nạ", + SubTitle: "Hiển thị trang khởi động mặt nạ khi tạo cuộc trò chuyện mới", + }, + Builtin: { + Title: "Ẩn mặt nạ tích hợp", + SubTitle: "Ẩn mặt nạ tích hợp trong danh sách tất cả mặt nạ", }, }, Prompt: { Disable: { - Title: "Vô hiệu hóa chức năng tự động hoàn thành", - SubTitle: "Nhập / để kích hoạt chức năng tự động hoàn thành", + Title: "Vô hiệu hóa tự động hoàn thành lệnh", + SubTitle: "Nhập / ở đầu ô nhập để kích hoạt tự động hoàn thành", }, - List: "Danh sách mẫu gợi ý", + List: "Danh sách lệnh tùy chỉnh", ListCount: (builtin: number, custom: number) => - `${builtin} có sẵn, ${custom} do người dùng xác định`, + `Tích hợp ${builtin} mục, người dùng định nghĩa ${custom} mục`, Edit: "Chỉnh sửa", Modal: { - Title: "Danh sách mẫu gợi ý", - Add: "Thêm", - Search: "Tìm kiếm mẫu", + Title: "Danh sách lệnh", + Add: "Tạo mới", + Search: "Tìm kiếm lệnh", }, EditModal: { - Title: "Chỉnh sửa mẫu", + Title: "Chỉnh sửa lệnh", }, }, HistoryCount: { - Title: "Số lượng tin nhắn đính kèm", - SubTitle: "Số lượng tin nhắn trong quá khứ được gửi kèm theo mỗi yêu cầu", + Title: "Số tin nhắn lịch sử kèm theo", + SubTitle: "Số tin nhắn lịch sử kèm theo mỗi yêu cầu", }, CompressThreshold: { - Title: "Ngưỡng nén lịch sử tin nhắn", - SubTitle: "Thực hiện nén nếu số lượng tin nhắn chưa nén vượt quá ngưỡng", + Title: "Ngưỡng nén tin nhắn lịch sử", + SubTitle: + "Khi tin nhắn lịch sử chưa nén vượt quá giá trị này, sẽ thực hiện nén", }, Usage: { - Title: "Hạn mức tài khoản", + Title: "Tra cứu số dư", SubTitle(used: any, total: any) { - return `Đã sử dụng $${used} trong tháng này, hạn mức $${total}`; + return `Đã sử dụng trong tháng: $${used}, Tổng số đăng ký: $${total}`; }, - IsChecking: "Đang kiểm tra...", - Check: "Kiểm tra", - NoAccess: "Nhập API Key để kiểm tra hạn mức", + IsChecking: "Đang kiểm tra…", + Check: "Kiểm tra lại", + NoAccess: "Nhập khóa API hoặc mật khẩu truy cập để xem số dư", }, - Model: "Mô hình", + Access: { + AccessCode: { + Title: "Mật khẩu truy cập", + SubTitle: "Quản trị viên đã bật truy cập mã hóa", + Placeholder: "Nhập mật khẩu truy cập", + }, + CustomEndpoint: { + Title: "Giao diện tùy chỉnh", + SubTitle: "Có sử dụng dịch vụ Azure hoặc OpenAI tùy chỉnh không", + }, + Provider: { + Title: "Nhà cung cấp dịch vụ mô hình", + SubTitle: "Chuyển đổi giữa các nhà cung cấp khác nhau", + }, + OpenAI: { + ApiKey: { + Title: "API Key", + SubTitle: + "Sử dụng khóa OpenAI tùy chỉnh để vượt qua hạn chế truy cập mật khẩu", + Placeholder: "Khóa API OpenAI", + }, + + Endpoint: { + Title: "Địa chỉ giao diện", + SubTitle: "Ngoài địa chỉ mặc định, phải bao gồm http(s)://", + }, + }, + Azure: { + ApiKey: { + Title: "Khóa giao diện", + SubTitle: + "Sử dụng khóa Azure tùy chỉnh để vượt qua hạn chế truy cập mật khẩu", + Placeholder: "Khóa API Azure", + }, + + Endpoint: { + Title: "Địa chỉ giao diện", + SubTitle: "Ví dụ:", + }, + + ApiVerion: { + Title: "Phiên bản giao diện (phiên bản API azure)", + SubTitle: "Chọn phiên bản phần cụ thể", + }, + }, + Anthropic: { + ApiKey: { + Title: "Khóa giao diện", + SubTitle: + "Sử dụng khóa Anthropic tùy chỉnh để vượt qua hạn chế truy cập mật khẩu", + Placeholder: "Khóa API Anthropic", + }, + + Endpoint: { + Title: "Địa chỉ giao diện", + SubTitle: "Ví dụ:", + }, + + ApiVerion: { + Title: "Phiên bản giao diện (phiên bản API claude)", + SubTitle: "Chọn một phiên bản API cụ thể để nhập", + }, + }, + Google: { + ApiKey: { + Title: "Khóa API", + SubTitle: "Lấy khóa API từ Google AI", + Placeholder: "Nhập khóa API Google AI Studio của bạn", + }, + + Endpoint: { + Title: "Địa chỉ cuối", + SubTitle: "Ví dụ:", + }, + + ApiVersion: { + Title: "Phiên bản API (chỉ áp dụng cho gemini-pro)", + SubTitle: "Chọn một phiên bản API cụ thể", + }, + GoogleSafetySettings: { + Title: "Mức độ lọc an toàn Google", + SubTitle: "Cài đặt mức độ lọc nội dung", + }, + }, + Baidu: { + ApiKey: { + Title: "API Key", + SubTitle: "Sử dụng khóa Baidu API tùy chỉnh", + Placeholder: "Khóa API Baidu", + }, + SecretKey: { + Title: "Secret Key", + SubTitle: "Sử dụng khóa bí mật Baidu tùy chỉnh", + Placeholder: "Khóa bí mật Baidu", + }, + Endpoint: { + Title: "Địa chỉ giao diện", + SubTitle: "Không hỗ trợ tùy chỉnh, hãy cấu hình trong .env", + }, + }, + ByteDance: { + ApiKey: { + Title: "Khóa giao diện", + SubTitle: "Sử dụng khóa ByteDance API tùy chỉnh", + Placeholder: "Khóa API ByteDance", + }, + Endpoint: { + Title: "Địa chỉ giao diện", + SubTitle: "Ví dụ:", + }, + }, + Alibaba: { + ApiKey: { + Title: "Khóa giao diện", + SubTitle: "Sử dụng khóa Alibaba Cloud API tùy chỉnh", + Placeholder: "Khóa API Alibaba Cloud", + }, + Endpoint: { + Title: "Địa chỉ giao diện", + SubTitle: "Ví dụ:", + }, + }, + CustomModel: { + Title: "Tên mô hình tùy chỉnh", + SubTitle: + "Thêm tùy chọn mô hình tùy chỉnh, sử dụng dấu phẩy để phân cách", + }, + }, + + Model: "Mô hình (model)", Temperature: { - Title: "Tính ngẫu nhiên (temperature)", + Title: "Độ ngẫu nhiên (temperature)", SubTitle: "Giá trị càng lớn, câu trả lời càng ngẫu nhiên", }, + TopP: { + Title: "Lấy mẫu hạt nhân (top_p)", + SubTitle: "Tương tự như độ ngẫu nhiên, nhưng không thay đổi cùng một lúc", + }, MaxTokens: { - Title: "Giới hạn số lượng token (max_tokens)", - SubTitle: "Số lượng token tối đa được sử dụng trong mỗi lần tương tác", + Title: "Giới hạn phản hồi (max_tokens)", + SubTitle: "Số Token tối đa cho mỗi tương tác", }, PresencePenalty: { - Title: "Chủ đề mới (presence_penalty)", - SubTitle: "Giá trị càng lớn tăng khả năng mở rộng sang các chủ đề mới", + Title: "Độ mới của chủ đề (presence_penalty)", + SubTitle: + "Giá trị càng lớn, khả năng mở rộng đến các chủ đề mới càng cao", }, FrequencyPenalty: { - Title: "Hình phạt tần suất", - SubTitle: "Giá trị lớn hơn làm giảm khả năng lặp lại cùng một dòng", + Title: "Hình phạt tần suất (frequency_penalty)", + SubTitle: "Giá trị càng lớn, khả năng giảm từ ngữ lặp lại càng cao", }, }, Store: { - DefaultTopic: "Cuộc trò chuyện mới", - BotHello: "Xin chào! Mình có thể giúp gì cho bạn?", - Error: "Có lỗi xảy ra, vui lòng thử lại sau.", + DefaultTopic: "Trò chuyện mới", + BotHello: "Có thể giúp gì cho bạn?", + Error: "Đã xảy ra lỗi, vui lòng thử lại sau", Prompt: { History: (content: string) => - "Tóm tắt ngắn gọn cuộc trò chuyện giữa người dùng và AI: " + content, + "Đây là tóm tắt cuộc trò chuyện lịch sử như tiền đề: " + content, Topic: - "Sử dụng 4 đến 5 từ tóm tắt cuộc trò chuyện này mà không có phần mở đầu, dấu chấm câu, dấu ngoặc kép, dấu chấm, ký hiệu hoặc văn bản bổ sung nào. Loại bỏ các dấu ngoặc kép kèm theo.", + 'Sử dụng bốn đến năm từ để trả lại chủ đề tóm tắt của câu này, không giải thích, không dấu câu, không từ cảm thán, không văn bản thừa, không in đậm, nếu không có chủ đề, hãy trả lại "Tán gẫu"', Summarize: - "Tóm tắt cuộc trò chuyện này một cách ngắn gọn trong 200 từ hoặc ít hơn để sử dụng làm gợi ý cho ngữ cảnh tiếp theo.", + "Tóm tắt nội dung cuộc trò chuyện một cách ngắn gọn, dùng làm gợi ý ngữ cảnh cho các lần sau, giữ trong vòng 200 từ", }, }, Copy: { - Success: "Sao chép vào bộ nhớ tạm", - Failed: - "Sao chép không thành công, vui lòng cấp quyền truy cập vào bộ nhớ tạm", + Success: "Đã sao chép vào clipboard", + Failed: "Sao chép thất bại, vui lòng cấp quyền clipboard", + }, + Download: { + Success: "Nội dung đã được tải xuống thư mục của bạn.", + Failed: "Tải xuống thất bại.", }, Context: { - Toast: (x: any) => `Sử dụng ${x} tin nhắn chứa ngữ cảnh`, - Edit: "Thiết lập ngữ cảnh và bộ nhớ", - Add: "Thêm tin nhắn", + Toast: (x: any) => `Bao gồm ${x} lệnh gợi ý đã định sẵn`, + Edit: "Cài đặt cuộc trò chuyện hiện tại", + Add: "Thêm một cuộc trò chuyện", + Clear: "Ngữ cảnh đã được xóa", + Revert: "Khôi phục ngữ cảnh", }, Plugin: { Name: "Plugin", @@ -188,52 +467,83 @@ const vi: PartialLocaleType = { Sysmessage: "Bạn là một trợ lý", }, Mask: { - Name: "Mẫu", + Name: "Mặt nạ", Page: { - Title: "Mẫu trò chuyện", - SubTitle: (count: number) => `${count} mẫu`, - Search: "Tìm kiếm mẫu", - Create: "Tạo", + Title: "Mặt nạ vai trò đã định sẵn", + SubTitle: (count: number) => `${count} định nghĩa vai trò đã định sẵn`, + Search: "Tìm kiếm mặt nạ vai trò", + Create: "Tạo mới", }, Item: { - Info: (count: number) => `${count} tin nhắn`, - Chat: "Chat", - View: "Xem trước", + Info: (count: number) => `Bao gồm ${count} cuộc trò chuyện đã định sẵn`, + Chat: "Trò chuyện", + View: "Xem", Edit: "Chỉnh sửa", Delete: "Xóa", DeleteConfirm: "Xác nhận xóa?", }, EditModal: { Title: (readonly: boolean) => - `Chỉnh sửa mẫu ${readonly ? "(chỉ xem)" : ""}`, - Download: "Tải xuống", - Clone: "Tạo bản sao", + `Chỉnh sửa mặt nạ định sẵn ${readonly ? "(chỉ đọc)" : ""}`, + Download: "Tải xuống mặt nạ", + Clone: "Nhân bản mặt nạ", }, Config: { - Avatar: "Ảnh đại diện bot", - Name: "Tên bot", + Avatar: "Hình đại diện vai trò", + Name: "Tên vai trò", + Sync: { + Title: "Sử dụng cài đặt toàn cục", + SubTitle: + "Cuộc trò chuyện hiện tại có sử dụng cài đặt mô hình toàn cục không", + Confirm: + "Cài đặt tùy chỉnh của cuộc trò chuyện hiện tại sẽ bị ghi đè tự động, xác nhận bật cài đặt toàn cục?", + }, + HideContext: { + Title: "Ẩn cuộc trò chuyện đã định sẵn", + SubTitle: + "Sau khi ẩn, cuộc trò chuyện đã định sẵn sẽ không xuất hiện trong giao diện trò chuyện", + }, + Share: { + Title: "Chia sẻ mặt nạ này", + SubTitle: "Tạo liên kết trực tiếp đến mặt nạ này", + Action: "Sao chép liên kết", + }, }, }, NewChat: { - Return: "Quay lại", - Skip: "Bỏ qua", - Title: "Chọn 1 biểu tượng", - SubTitle: "Bắt đầu trò chuyện ẩn sau lớp mặt nạ", - More: "Tìm thêm", - NotShow: "Không hiển thị lại", - ConfirmNoShow: "Xác nhận tắt? Bạn có thể bật lại trong phần cài đặt.", + Return: "Trở lại", + Skip: "Bắt đầu ngay", + NotShow: "Không hiển thị nữa", + ConfirmNoShow: + "Xác nhận vô hiệu hóa? Sau khi vô hiệu hóa, bạn có thể bật lại bất cứ lúc nào trong cài đặt.", + Title: "Chọn một mặt nạ", + SubTitle: "Bắt đầu ngay, va chạm với suy nghĩ của linh hồn đứng sau mặt nạ", + More: "Xem tất cả", + }, + + URLCommand: { + Code: "Phát hiện mã truy cập trong liên kết, có tự động điền không?", + Settings: + "Phát hiện cài đặt định sẵn trong liên kết, có tự động điền không?", }, UI: { Confirm: "Xác nhận", Cancel: "Hủy", Close: "Đóng", - Create: "Tạo", + Create: "Tạo mới", Edit: "Chỉnh sửa", + Export: "Xuất", + Import: "Nhập", + Sync: "Đồng bộ", + Config: "Cấu hình", }, Exporter: { + Description: { + Title: "Chỉ tin nhắn sau khi xóa ngữ cảnh mới được hiển thị", + }, Model: "Mô hình", - Messages: "Thông điệp", + Messages: "Tin nhắn", Topic: "Chủ đề", Time: "Thời gian", }, diff --git a/app/styles/globals.scss b/app/styles/globals.scss index 3c59f2d44f7..96d6402dc83 100644 --- a/app/styles/globals.scss +++ b/app/styles/globals.scss @@ -272,7 +272,7 @@ div.math { pre { position: relative; - + &:hover .copy-code-button { pointer-events: all; transform: translateX(0px); @@ -304,6 +304,37 @@ pre { } } +code{ + .show-hide-button { + border-radius: 10px; + position: absolute; + inset: 0 0 auto 0; + width: 100%; + margin: auto; + height: fit-content; + display: inline-flex; + justify-content: center; + button{ + margin-top: 3em; + margin-bottom: 4em; + padding: 5px 16px; + border: 0; + cursor: pointer; + border-radius: 14px; + text-align: center; + color: white; + background: #464e4e; + } + } + + .expanded { + background-image: none; + } + .collapsed { + background-image: linear-gradient(to bottom, rgba(0, 0, 0, 0.8), rgba(0, 0, 0, 0.06)); + } +} + .clickable { cursor: pointer; diff --git a/src-tauri/tauri.conf.json b/src-tauri/tauri.conf.json index 245254effe5..120ab9b5aee 100644 --- a/src-tauri/tauri.conf.json +++ b/src-tauri/tauri.conf.json @@ -9,7 +9,7 @@ }, "package": { "productName": "NextChat", - "version": "2.14.1" + "version": "2.14.2" }, "tauri": { "allowlist": {