UI - МЕЖПРОЕКТНАЯ КОММУНИКАЦИЯ: дизайн и русификация God Mode
This commit is contained in:
@@ -41,17 +41,17 @@ export function InstanceAIForm(props: IInstanceAIForm) {
|
||||
{
|
||||
key: "LLM_MODEL",
|
||||
type: "text",
|
||||
label: "LLM Model",
|
||||
label: "LLM-модель",
|
||||
description: (
|
||||
<>
|
||||
Choose an OpenAI engine.{" "}
|
||||
Выберите модель OpenAI.{" "}
|
||||
<a
|
||||
href="https://platform.openai.com/docs/models/overview"
|
||||
target="_blank"
|
||||
className="text-accent-primary hover:underline"
|
||||
rel="noreferrer"
|
||||
>
|
||||
Learn more
|
||||
Подробнее
|
||||
</a>
|
||||
</>
|
||||
),
|
||||
@@ -62,17 +62,17 @@ export function InstanceAIForm(props: IInstanceAIForm) {
|
||||
{
|
||||
key: "LLM_API_KEY",
|
||||
type: "password",
|
||||
label: "API key",
|
||||
label: "API-ключ",
|
||||
description: (
|
||||
<>
|
||||
You will find your API key{" "}
|
||||
API-ключ находится{" "}
|
||||
<a
|
||||
href="https://platform.openai.com/api-keys"
|
||||
target="_blank"
|
||||
className="text-accent-primary hover:underline"
|
||||
rel="noreferrer"
|
||||
>
|
||||
here.
|
||||
здесь.
|
||||
</a>
|
||||
</>
|
||||
),
|
||||
@@ -89,8 +89,8 @@ export function InstanceAIForm(props: IInstanceAIForm) {
|
||||
.then(() =>
|
||||
setToast({
|
||||
type: TOAST_TYPE.SUCCESS,
|
||||
title: "Success",
|
||||
message: "AI Settings updated successfully",
|
||||
title: "Сохранено",
|
||||
message: "ИИ-настройки обновлены",
|
||||
})
|
||||
)
|
||||
.catch((err) => console.error(err));
|
||||
@@ -101,7 +101,7 @@ export function InstanceAIForm(props: IInstanceAIForm) {
|
||||
<div className="space-y-3">
|
||||
<div>
|
||||
<div className="pb-1 text-18 font-medium text-primary">OpenAI</div>
|
||||
<div className="text-13 font-regular text-tertiary">If you use ChatGPT, this is for you.</div>
|
||||
<div className="text-13 font-regular text-tertiary">Используется для встроенных функций на базе OpenAI.</div>
|
||||
</div>
|
||||
<div className="grid-col grid w-full grid-cols-1 items-center justify-between gap-x-12 gap-y-8 lg:grid-cols-3">
|
||||
{aiFormFields.map((field) => (
|
||||
@@ -122,15 +122,15 @@ export function InstanceAIForm(props: IInstanceAIForm) {
|
||||
|
||||
<div className="flex flex-col items-start gap-4">
|
||||
<Button variant="primary" size="lg" onClick={handleSubmit(onSubmit)} loading={isSubmitting}>
|
||||
{isSubmitting ? "Saving" : "Save changes"}
|
||||
{isSubmitting ? "Сохранение" : "Сохранить изменения"}
|
||||
</Button>
|
||||
|
||||
<div className="relative inline-flex items-center gap-1.5 rounded-sm border border-accent-subtle bg-accent-subtle px-4 py-2 text-caption-sm-regular text-accent-secondary">
|
||||
<Lightbulb className="size-4" />
|
||||
<div className="nodedc-settings-note relative inline-flex max-w-2xl items-center gap-2 px-4 py-3 text-12 font-regular">
|
||||
<Lightbulb className="size-4 shrink-0 text-tertiary" />
|
||||
<div>
|
||||
If you have a preferred AI models vendor, please get in{" "}
|
||||
Если нужен другой провайдер ИИ-моделей, свяжитесь{" "}
|
||||
<a className="font-medium underline" href="https://plane.so/contact">
|
||||
touch with us.
|
||||
с командой поддержки.
|
||||
</a>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
@@ -25,8 +25,8 @@ const InstanceAIPage = observer(function InstanceAIPage(_props: Route.ComponentP
|
||||
return (
|
||||
<PageWrapper
|
||||
header={{
|
||||
title: "AI features for all your workspaces",
|
||||
description: "Configure your AI API credentials so Plane AI features are turned on for all your workspaces.",
|
||||
title: "ИИ-функции для всех воркспейсов",
|
||||
description: "Настройте API-ключ и модель, чтобы включить ИИ-возможности во всех рабочих пространствах.",
|
||||
}}
|
||||
>
|
||||
{formattedConfig ? (
|
||||
@@ -45,6 +45,6 @@ const InstanceAIPage = observer(function InstanceAIPage(_props: Route.ComponentP
|
||||
);
|
||||
});
|
||||
|
||||
export const meta: Route.MetaFunction = () => [{ title: "Artificial Intelligence Settings - God Mode" }];
|
||||
export const meta: Route.MetaFunction = () => [{ title: "ИИ-настройки - NODE.DC" }];
|
||||
|
||||
export default InstanceAIPage;
|
||||
|
||||
Reference in New Issue
Block a user