feat: add multi-model support

This commit is contained in:
Yidadaa
2023-09-26 00:19:21 +08:00
parent b90dfb48ee
commit 5610f423d0
62 changed files with 1439 additions and 940 deletions

View File

@@ -1,4 +1,4 @@
import { SubmitKey } from "../store/config";
import { SubmitKey } from "@/app/typing";
import type { PartialLocaleType } from "./index";
const ar: PartialLocaleType = {

View File

@@ -1,4 +1,4 @@
import { SubmitKey } from "../store/config";
import { SubmitKey } from "@/app/typing";
import { PartialLocaleType } from "./index";
const bn: PartialLocaleType = {

View File

@@ -1,5 +1,5 @@
import { getClientConfig } from "../config/client";
import { SubmitKey } from "../store/config";
import { SubmitKey } from "@/app/typing";
const isApp = !!getClientConfig()?.isApp;

View File

@@ -1,4 +1,4 @@
import { SubmitKey } from "../store/config";
import { SubmitKey } from "@/app/typing";
import type { PartialLocaleType } from "./index";
const cs: PartialLocaleType = {

View File

@@ -1,4 +1,4 @@
import { SubmitKey } from "../store/config";
import { SubmitKey } from "@/app/typing";
import type { PartialLocaleType } from "./index";
const de: PartialLocaleType = {

View File

@@ -1,5 +1,5 @@
import { getClientConfig } from "../config/client";
import { SubmitKey } from "../store/config";
import { SubmitKey } from "@/app/typing";
import { LocaleType } from "./index";
// if you are adding a new translation, please use PartialLocaleType instead of LocaleType

View File

@@ -1,4 +1,4 @@
import { SubmitKey } from "../store/config";
import { SubmitKey } from "@/app/typing";
import type { PartialLocaleType } from "./index";
const es: PartialLocaleType = {

View File

@@ -1,4 +1,4 @@
import { SubmitKey } from "../store/config";
import { SubmitKey } from "@/app/typing";
import type { PartialLocaleType } from "./index";
const fr: PartialLocaleType = {

View File

@@ -1,11 +1,12 @@
import { SubmitKey } from "../store/config";
import { SubmitKey } from "@/app/typing";
import { PartialLocaleType } from "./index";
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:
"Akses tidak diizinkan, silakan masukkan kode akses atau masukkan kunci API OpenAI Anda. di halaman [autentikasi](/#/auth) atau di halaman [Pengaturan](/#/settings).",
},
Auth: {
Title: "Diperlukan Kode Akses",
Tips: "Masukkan kode akses di bawah",

View File

@@ -1,4 +1,4 @@
import { SubmitKey } from "../store/config";
import { SubmitKey } from "@/app/typing";
import type { PartialLocaleType } from "./index";
const it: PartialLocaleType = {

View File

@@ -1,4 +1,4 @@
import { SubmitKey } from "../store/config";
import { SubmitKey } from "@/app/typing";
import type { PartialLocaleType } from "./index";
const jp: PartialLocaleType = {
@@ -20,7 +20,8 @@ const jp: PartialLocaleType = {
Stop: "停止",
Retry: "リトライ",
Pin: "ピン",
PinToastContent: "コンテキストプロンプトに1つのメッセージをピン留めしました",
PinToastContent:
"コンテキストプロンプトに1つのメッセージをピン留めしました",
PinToastAction: "表示",
Delete: "削除",
Edit: "編集",

View File

@@ -1,4 +1,4 @@
import { SubmitKey } from "../store/config";
import { SubmitKey } from "@/app/typing";
import type { PartialLocaleType } from "./index";

View File

@@ -1,4 +1,4 @@
import { SubmitKey } from "../store/config";
import { SubmitKey } from "@/app/typing";
import type { PartialLocaleType } from "./index";
const no: PartialLocaleType = {

View File

@@ -1,4 +1,4 @@
import { SubmitKey } from "../store/config";
import { SubmitKey } from "@/app/typing";
import type { PartialLocaleType } from "./index";
const ru: PartialLocaleType = {

View File

@@ -1,4 +1,4 @@
import { SubmitKey } from "../store/config";
import { SubmitKey } from "@/app/typing";
import type { PartialLocaleType } from "./index";
const tr: PartialLocaleType = {

View File

@@ -1,4 +1,4 @@
import { SubmitKey } from "../store/config";
import { SubmitKey } from "@/app/typing";
import type { PartialLocaleType } from "./index";
const tw: PartialLocaleType = {

View File

@@ -1,4 +1,4 @@
import { SubmitKey } from "../store/config";
import { SubmitKey } from "@/app/typing";
import type { PartialLocaleType } from "./index";
const vi: PartialLocaleType = {