mirror of
https://github.com/lobehub/lobehub.git
synced 2026-03-27 13:29:15 +07:00
🐛 fix: Fix ssr
This commit is contained in:
@@ -4,7 +4,7 @@ const i18n = require('./.i18nrc');
|
||||
module.exports = {
|
||||
debug: process.env.NODE_ENV === 'development',
|
||||
fallbackLng: {
|
||||
default: ['en'],
|
||||
default: ['zh_CN'],
|
||||
zh_TW: ['zh_CN'],
|
||||
},
|
||||
i18n: {
|
||||
|
||||
@@ -1,16 +1,40 @@
|
||||
{
|
||||
"advanceSettings": "Advanced Settings",
|
||||
"agentAvatar": "Avatar",
|
||||
"agentDescription": "Description",
|
||||
"agentDescriptionPlaceholder": "Please enter a description",
|
||||
"agentModel": "Model",
|
||||
"agentName": "Name",
|
||||
"agentNamePlaceholder": "Please enter a name",
|
||||
"agentProfile": "Agent Profile",
|
||||
"agentPrompt": "AI Prompt",
|
||||
"agentPromptPlaceholder": "Please enter AI prompt",
|
||||
"agentTag": "Tag",
|
||||
"agentTagPlaceholder": "Please enter a tag",
|
||||
"archive": "Archive",
|
||||
"autoGenerate": "Auto Generate",
|
||||
"cancel": "Cancel",
|
||||
"close": "Close",
|
||||
"confirmRemoveSessionItemAlert": "You are about to remove this agent. Once removed, it cannot be recovered. Please confirm your action.",
|
||||
"defaultAgent": "Default Agent",
|
||||
"edit": "Edit",
|
||||
"editAgentProfile": "Edit Agent Profile",
|
||||
"export": "Export",
|
||||
"gpt-3.5-turbo": "GPT 3.5 Turbo",
|
||||
"gpt-3.5-turbo-16k": "GPT 3.5 Turbo (16K)",
|
||||
"gpt-4": "GPT 4",
|
||||
"gpt-4-32k": "GPT 4 (32K)",
|
||||
"modelConfig": "Model Configuration",
|
||||
"modelTemperature": "Temperature",
|
||||
"newAgent": "New Agent",
|
||||
"noDescription": "No description",
|
||||
"ok": "OK",
|
||||
"profile": "Profile",
|
||||
"reset": "Reset",
|
||||
"searchAgentPlaceholder": "Search agents and conversations...",
|
||||
"sessionSetting": "Session Setting",
|
||||
"setting": "Setting",
|
||||
"share": "Share"
|
||||
"share": "Share",
|
||||
"updateAgent": "Update Agent",
|
||||
"updatePrompt": "Update Prompt"
|
||||
}
|
||||
|
||||
97
public/locales/en_US/setting.json
Normal file
97
public/locales/en_US/setting.json
Normal file
@@ -0,0 +1,97 @@
|
||||
{
|
||||
"danger": {
|
||||
"reset": {
|
||||
"title": "Reset All Settings",
|
||||
"desc": "Reset all settings to default values",
|
||||
"action": "Reset Now",
|
||||
"confirm": "Confirm reset all settings?",
|
||||
"currentVersion": "Current Version"
|
||||
},
|
||||
"clear": {
|
||||
"title": "Clear All Data",
|
||||
"desc": "Clear all chat and settings data",
|
||||
"action": "Clear Now",
|
||||
"confirm": "Confirm clear all chat and settings data?"
|
||||
}
|
||||
},
|
||||
"header": "Settings",
|
||||
"settingChat": {
|
||||
"title": "Chat Settings",
|
||||
"inputTemplate": {
|
||||
"title": "User Input Template",
|
||||
"desc": "The latest user message will be filled into this template"
|
||||
},
|
||||
"compressThreshold": {
|
||||
"title": "History Message Length Compression Threshold",
|
||||
"desc": "When the uncompressed history message exceeds this value, it will be compressed"
|
||||
},
|
||||
"historyCount": {
|
||||
"title": "Number of History Messages",
|
||||
"desc": "Number of history messages carried in each request"
|
||||
},
|
||||
"maxTokens": {
|
||||
"title": "Max Tokens per Response",
|
||||
"desc": "The maximum number of tokens used for each interaction"
|
||||
},
|
||||
"sendKey": {
|
||||
"title": "Send Key"
|
||||
}
|
||||
},
|
||||
"settingModel": {
|
||||
"title": "Model Settings",
|
||||
"model": {
|
||||
"title": "Model"
|
||||
},
|
||||
"temperature": {
|
||||
"title": "Randomness (temperature)",
|
||||
"desc": "The higher the value, the more random the response"
|
||||
},
|
||||
"topP": {
|
||||
"title": "Nucleus Sampling (top_p)",
|
||||
"desc": "Similar to randomness, but do not change it together with randomness"
|
||||
},
|
||||
"presencePenalty": {
|
||||
"title": "Topic Freshness (presence_penalty)",
|
||||
"desc": "The higher the value, the more likely it is to expand to new topics"
|
||||
},
|
||||
"frequencyPenalty": {
|
||||
"title": "Frequency Penalty (frequency_penalty)",
|
||||
"desc": "The higher the value, the more likely it is to reduce repeated words"
|
||||
}
|
||||
},
|
||||
"settingOpenAI": {
|
||||
"title": "OpenAI Settings",
|
||||
"token": {
|
||||
"title": "API Key",
|
||||
"desc": "Use your own key to bypass password access restrictions",
|
||||
"placeholder": "OpenAI API Key"
|
||||
},
|
||||
"endpoint": {
|
||||
"title": "API Endpoint",
|
||||
"desc": "In addition to the default address, it must include http(s)://"
|
||||
}
|
||||
},
|
||||
"settingSystem": {
|
||||
"title": "System Settings",
|
||||
"accessCode": {
|
||||
"title": "Access Code",
|
||||
"desc": "Encryption access has been enabled by the administrator",
|
||||
"placeholder": "Please enter the access code"
|
||||
}
|
||||
},
|
||||
"settingTheme": {
|
||||
"title": "Theme Settings",
|
||||
"avatar": {
|
||||
"title": "Avatar",
|
||||
"desc": "Supports URL / Base64 / Emoji"
|
||||
},
|
||||
"fontSize": {
|
||||
"title": "Font Size",
|
||||
"desc": "Font size of chat content"
|
||||
},
|
||||
"lang": {
|
||||
"name": "Language Settings",
|
||||
"all": "All Languages"
|
||||
}
|
||||
}
|
||||
}
|
||||
@@ -1,16 +1,40 @@
|
||||
{
|
||||
"advanceSettings": "高度な設定",
|
||||
"agentAvatar": "エージェントのアバター",
|
||||
"agentDescription": "説明",
|
||||
"agentDescriptionPlaceholder": "説明を入力してください",
|
||||
"agentModel": "モデル",
|
||||
"agentName": "名前",
|
||||
"agentNamePlaceholder": "名前を入力してください",
|
||||
"agentProfile": "エージェントプロファイル",
|
||||
"agentPrompt": "プロンプト",
|
||||
"agentPromptPlaceholder": "AIのプロンプトを入力してください",
|
||||
"agentTag": "タグ",
|
||||
"agentTagPlaceholder": "タグを入力してください",
|
||||
"archive": "アーカイブ",
|
||||
"autoGenerate": "自動生成",
|
||||
"cancel": "キャンセル",
|
||||
"close": "閉じる",
|
||||
"confirmRemoveSessionItemAlert": "このエージェントを削除します。削除後は元に戻すことはできません。操作を確認してください",
|
||||
"defaultAgent": "デフォルトエージェント",
|
||||
"edit": "編集",
|
||||
"editAgentProfile": "エージェントのプロフィールを編集する",
|
||||
"export": "エクスポート",
|
||||
"gpt-3.5-turbo": "GPT 3.5 Turbo",
|
||||
"gpt-3.5-turbo-16k": "GPT 3.5 Turbo (16K)",
|
||||
"gpt-4": "GPT 4",
|
||||
"gpt-4-32k": "GPT 4 (32K)",
|
||||
"modelConfig": "モデルの設定",
|
||||
"modelTemperature": "モデルの温度",
|
||||
"newAgent": "新しいエージェント",
|
||||
"noDescription": "説明はありません",
|
||||
"ok": "OK",
|
||||
"profile": "プロフィール",
|
||||
"reset": "リセット",
|
||||
"searchAgentPlaceholder": "エージェントと会話を検索...",
|
||||
"sessionSetting": "セッション設定",
|
||||
"setting": "設定",
|
||||
"share": "共有する"
|
||||
"share": "共有する",
|
||||
"updateAgent": "エージェント情報を更新する",
|
||||
"updatePrompt": "プロンプトを更新する"
|
||||
}
|
||||
|
||||
97
public/locales/ja_JP/setting.json
Normal file
97
public/locales/ja_JP/setting.json
Normal file
@@ -0,0 +1,97 @@
|
||||
{
|
||||
"danger": {
|
||||
"reset": {
|
||||
"title": "すべての設定をリセットする",
|
||||
"desc": "すべての設定をデフォルト値にリセットする",
|
||||
"action": "すぐにリセットする",
|
||||
"confirm": "すべての設定をリセットしますか?",
|
||||
"currentVersion": "現在のバージョン"
|
||||
},
|
||||
"clear": {
|
||||
"title": "すべてのデータをクリアする",
|
||||
"desc": "すべてのチャットと設定データをクリアする",
|
||||
"action": "すぐにクリアする",
|
||||
"confirm": "すべてのチャットと設定データをクリアしますか?"
|
||||
}
|
||||
},
|
||||
"header": "設定",
|
||||
"settingChat": {
|
||||
"title": "チャット設定",
|
||||
"inputTemplate": {
|
||||
"title": "ユーザー入力のプリプロセス",
|
||||
"desc": "最新のメッセージがこのテンプレートに入力されます"
|
||||
},
|
||||
"compressThreshold": {
|
||||
"title": "履歴メッセージの圧縮閾値",
|
||||
"desc": "非圧縮の履歴メッセージがこの値を超えると、圧縮されます"
|
||||
},
|
||||
"historyCount": {
|
||||
"title": "履歴メッセージの数",
|
||||
"desc": "リクエストごとに送信される履歴メッセージの数"
|
||||
},
|
||||
"maxTokens": {
|
||||
"title": "1回の応答制限 (max_tokens)",
|
||||
"desc": "1回の対話で使用される最大トークン数"
|
||||
},
|
||||
"sendKey": {
|
||||
"title": "送信キー"
|
||||
}
|
||||
},
|
||||
"settingModel": {
|
||||
"title": "モデル設定",
|
||||
"model": {
|
||||
"title": "モデル"
|
||||
},
|
||||
"temperature": {
|
||||
"title": "ランダム性 (temperature)",
|
||||
"desc": "値が大きいほど、応答がランダムになります"
|
||||
},
|
||||
"topP": {
|
||||
"title": "トップPサンプリング (top_p)",
|
||||
"desc": "ランダム性に似ていますが、ランダム性とは別に変更しないでください"
|
||||
},
|
||||
"presencePenalty": {
|
||||
"title": "トピックの新鮮さ (presence_penalty)",
|
||||
"desc": "値が大きいほど、新しいトピックに拡張される可能性が高くなります"
|
||||
},
|
||||
"frequencyPenalty": {
|
||||
"title": "頻度ペナルティ (frequency_penalty)",
|
||||
"desc": "値が大きいほど、重複する単語を減らす可能性が高くなります"
|
||||
}
|
||||
},
|
||||
"settingOpenAI": {
|
||||
"title": "OpenAI設定",
|
||||
"token": {
|
||||
"title": "APIキー",
|
||||
"desc": "独自のキーを使用すると、パスワード制限を回避できます",
|
||||
"placeholder": "OpenAI APIキー"
|
||||
},
|
||||
"endpoint": {
|
||||
"title": "エンドポイントアドレス",
|
||||
"desc": "デフォルトのアドレス以外に、http(s)://を含める必要があります"
|
||||
}
|
||||
},
|
||||
"settingSystem": {
|
||||
"title": "システム設定",
|
||||
"accessCode": {
|
||||
"title": "アクセスコード",
|
||||
"desc": "管理者によって暗号化アクセスが有効にされています",
|
||||
"placeholder": "アクセスコードを入力してください"
|
||||
}
|
||||
},
|
||||
"settingTheme": {
|
||||
"title": "テーマ設定",
|
||||
"avatar": {
|
||||
"title": "アバター",
|
||||
"desc": "URL / Base64 / 絵文字をサポートしています"
|
||||
},
|
||||
"fontSize": {
|
||||
"title": "フォントサイズ",
|
||||
"desc": "チャットコンテンツのフォントサイズ"
|
||||
},
|
||||
"lang": {
|
||||
"name": "言語設定",
|
||||
"all": "すべての言語"
|
||||
}
|
||||
}
|
||||
}
|
||||
@@ -1,16 +1,40 @@
|
||||
{
|
||||
"advanceSettings": "고급 설정",
|
||||
"agentAvatar": "아바타",
|
||||
"agentDescription": "설명",
|
||||
"agentDescriptionPlaceholder": "설명을 입력하세요",
|
||||
"agentModel": "모델",
|
||||
"agentName": "이름",
|
||||
"agentNamePlaceholder": "이름을 입력하세요",
|
||||
"agentProfile": "도우미 프로필",
|
||||
"agentPrompt": "프롬프트",
|
||||
"agentPromptPlaceholder": "AI 프롬프트를 입력하세요",
|
||||
"agentTag": "태그",
|
||||
"agentTagPlaceholder": "태그를 입력하세요",
|
||||
"archive": "보관",
|
||||
"autoGenerate": "자동 생성",
|
||||
"cancel": "취소",
|
||||
"close": "닫기",
|
||||
"confirmRemoveSessionItemAlert": "이 도우미를 삭제하려고 합니다. 삭제 후에는 복구할 수 없으므로 작업을 확인하십시오.",
|
||||
"defaultAgent": "기본 도우미",
|
||||
"edit": "편집",
|
||||
"editAgentProfile": "에이전트 프로필 편집",
|
||||
"export": "내보내기",
|
||||
"gpt-3.5-turbo": "GPT 3.5",
|
||||
"gpt-3.5-turbo-16k": "GPT 3.5 (16K)",
|
||||
"gpt-4": "GPT 4",
|
||||
"gpt-4-32k": "GPT 4 (32K)",
|
||||
"modelConfig": "모델 설정",
|
||||
"modelTemperature": "모델 온도",
|
||||
"newAgent": "새 도우미",
|
||||
"noDescription": "설명 없음",
|
||||
"ok": "확인",
|
||||
"profile": "프로필",
|
||||
"reset": "재설정",
|
||||
"searchAgentPlaceholder": "도우미 및 대화 검색...",
|
||||
"sessionSetting": "세션 설정",
|
||||
"setting": "설정",
|
||||
"share": "공유"
|
||||
"share": "공유",
|
||||
"updateAgent": "에이전트 업데이트",
|
||||
"updatePrompt": "프롬프트 업데이트"
|
||||
}
|
||||
|
||||
97
public/locales/ko_KR/setting.json
Normal file
97
public/locales/ko_KR/setting.json
Normal file
@@ -0,0 +1,97 @@
|
||||
{
|
||||
"danger": {
|
||||
"reset": {
|
||||
"title": "모든 설정 초기화",
|
||||
"desc": "모든 설정을 기본값으로 초기화합니다.",
|
||||
"action": "지금 초기화",
|
||||
"confirm": "모든 설정을 초기화하시겠습니까?",
|
||||
"currentVersion": "현재 버전"
|
||||
},
|
||||
"clear": {
|
||||
"title": "모든 데이터 지우기",
|
||||
"desc": "모든 채팅 및 설정 데이터를 지웁니다.",
|
||||
"action": "지금 지우기",
|
||||
"confirm": "모든 채팅 및 설정 데이터를 지우시겠습니까?"
|
||||
}
|
||||
},
|
||||
"header": "설정",
|
||||
"settingChat": {
|
||||
"title": "채팅 설정",
|
||||
"inputTemplate": {
|
||||
"title": "사용자 입력 전처리",
|
||||
"desc": "최신 메시지가 이 템플릿에 채워집니다."
|
||||
},
|
||||
"compressThreshold": {
|
||||
"title": "히스토리 메시지 길이 압축 임계값",
|
||||
"desc": "압축되지 않은 히스토리 메시지가이 값보다 큰 경우 압축됩니다."
|
||||
},
|
||||
"historyCount": {
|
||||
"title": "포함된 히스토리 메시지 수",
|
||||
"desc": "요청당 포함되는 히스토리 메시지 수"
|
||||
},
|
||||
"maxTokens": {
|
||||
"title": "단일 응답 제한 (max_tokens)",
|
||||
"desc": "한 번의 상호 작용에 사용되는 최대 토큰 수"
|
||||
},
|
||||
"sendKey": {
|
||||
"title": "전송 키"
|
||||
}
|
||||
},
|
||||
"settingModel": {
|
||||
"title": "모델 설정",
|
||||
"model": {
|
||||
"title": "모델"
|
||||
},
|
||||
"temperature": {
|
||||
"title": "랜덤성 (temperature)",
|
||||
"desc": "값이 클수록 응답이 더 랜덤해집니다."
|
||||
},
|
||||
"topP": {
|
||||
"title": "상위 P 샘플링 (top_p)",
|
||||
"desc": "랜덤성과 유사하지만 랜덤성과 함께 변경하지 마십시오."
|
||||
},
|
||||
"presencePenalty": {
|
||||
"title": "주제 신선도 (presence_penalty)",
|
||||
"desc": "값이 클수록 새로운 주제로 확장될 가능성이 높아집니다."
|
||||
},
|
||||
"frequencyPenalty": {
|
||||
"title": "빈도 벌칙 (frequency_penalty)",
|
||||
"desc": "값이 클수록 반복 단어를 줄일 가능성이 높아집니다."
|
||||
}
|
||||
},
|
||||
"settingOpenAI": {
|
||||
"title": "OpenAI 설정",
|
||||
"token": {
|
||||
"title": "API 키",
|
||||
"desc": "자체 키를 사용하여 암호 제한을 우회할 수 있습니다.",
|
||||
"placeholder": "OpenAI API 키"
|
||||
},
|
||||
"endpoint": {
|
||||
"title": "엔드포인트 주소",
|
||||
"desc": "기본 주소 외에도 반드시 http(s)://를 포함해야 합니다."
|
||||
}
|
||||
},
|
||||
"settingSystem": {
|
||||
"title": "시스템 설정",
|
||||
"accessCode": {
|
||||
"title": "액세스 코드",
|
||||
"desc": "관리자가 암호 액세스를 활성화했습니다.",
|
||||
"placeholder": "액세스 코드를 입력하세요."
|
||||
}
|
||||
},
|
||||
"settingTheme": {
|
||||
"title": "테마 설정",
|
||||
"avatar": {
|
||||
"title": "아바타",
|
||||
"desc": "URL / Base64 / 이모지 표현을 지원합니다."
|
||||
},
|
||||
"fontSize": {
|
||||
"title": "글꼴 크기",
|
||||
"desc": "채팅 내용의 글꼴 크기"
|
||||
},
|
||||
"lang": {
|
||||
"name": "언어 설정",
|
||||
"all": "모든 언어"
|
||||
}
|
||||
}
|
||||
}
|
||||
@@ -1,16 +1,40 @@
|
||||
{
|
||||
"advanceSettings": "高級設置",
|
||||
"agentAvatar": "頭像",
|
||||
"agentDescription": "描述",
|
||||
"agentDescriptionPlaceholder": "請輸入描述",
|
||||
"agentModel": "模型",
|
||||
"agentName": "名稱",
|
||||
"agentNamePlaceholder": "請輸入名稱",
|
||||
"agentProfile": "助手資訊",
|
||||
"agentPrompt": "提示詞",
|
||||
"agentPromptPlaceholder": "請輸入 AI 提示詞",
|
||||
"agentTag": "標籤",
|
||||
"agentTagPlaceholder": "請輸入標籤",
|
||||
"archive": "歸檔",
|
||||
"autoGenerate": "自動生成",
|
||||
"cancel": "取消",
|
||||
"close": "關閉",
|
||||
"confirmRemoveSessionItemAlert": "即將刪除該助手,刪除後將無法找回,請確認你的操作",
|
||||
"defaultAgent": "默認助手",
|
||||
"edit": "編輯",
|
||||
"editAgentProfile": "編輯助手資訊",
|
||||
"export": "導出",
|
||||
"gpt-3.5-turbo": "GPT 3.5",
|
||||
"gpt-3.5-turbo-16k": "GPT 3.5 (16K)",
|
||||
"gpt-4": "GPT 4",
|
||||
"gpt-4-32k": "GPT 4 (32K)",
|
||||
"modelConfig": "模型配置",
|
||||
"modelTemperature": "發散度",
|
||||
"newAgent": "新建助手",
|
||||
"noDescription": "暫無描述",
|
||||
"ok": "確定",
|
||||
"profile": "身份卡",
|
||||
"reset": "重置",
|
||||
"searchAgentPlaceholder": "搜索助手和對話...",
|
||||
"sessionSetting": "會話設置",
|
||||
"setting": "設置",
|
||||
"share": "分享"
|
||||
"share": "分享",
|
||||
"updateAgent": "更新助理資訊",
|
||||
"updatePrompt": "更新提示詞"
|
||||
}
|
||||
|
||||
97
public/locales/zh_HK/setting.json
Normal file
97
public/locales/zh_HK/setting.json
Normal file
@@ -0,0 +1,97 @@
|
||||
{
|
||||
"danger": {
|
||||
"reset": {
|
||||
"title": "重置所有設置",
|
||||
"desc": "重置所有設置項回默認值",
|
||||
"action": "立即重置",
|
||||
"confirm": "確認重置所有設置?",
|
||||
"currentVersion": "當前版本"
|
||||
},
|
||||
"clear": {
|
||||
"title": "清除所有數據",
|
||||
"desc": "清除所有聊天、設置數據",
|
||||
"action": "立即清除",
|
||||
"confirm": "確認清除所有聊天、設置數據?"
|
||||
}
|
||||
},
|
||||
"header": "設置",
|
||||
"settingChat": {
|
||||
"title": "聊天設置",
|
||||
"inputTemplate": {
|
||||
"title": "用戶輸入預處理",
|
||||
"desc": "用戶最新的一條消息會填充到此模板"
|
||||
},
|
||||
"compressThreshold": {
|
||||
"title": "歷史消息長度壓縮閾值",
|
||||
"desc": "當未壓縮的歷史消息超過該值時,將進行壓縮"
|
||||
},
|
||||
"historyCount": {
|
||||
"title": "附帶歷史消息數",
|
||||
"desc": "每次請求攜帶的歷史消息數"
|
||||
},
|
||||
"maxTokens": {
|
||||
"title": "單次回復限制 (max_tokens)",
|
||||
"desc": "單次交互所用的最大 Token 數"
|
||||
},
|
||||
"sendKey": {
|
||||
"title": "發送鍵"
|
||||
}
|
||||
},
|
||||
"settingModel": {
|
||||
"title": "模型設置",
|
||||
"model": {
|
||||
"title": "模型"
|
||||
},
|
||||
"temperature": {
|
||||
"title": "隨機性 (temperature)",
|
||||
"desc": "值越大,回復越隨機"
|
||||
},
|
||||
"topP": {
|
||||
"title": "核採樣 (top_p)",
|
||||
"desc": "與隨機性類似,但不要和隨機性一起更改"
|
||||
},
|
||||
"presencePenalty": {
|
||||
"title": "話題新鮮度 (presence_penalty)",
|
||||
"desc": "值越大,越有可能擴展到新話題"
|
||||
},
|
||||
"frequencyPenalty": {
|
||||
"title": "頻率懲罰度 (frequency_penalty)",
|
||||
"desc": "值越大,越有可能降低重複字詞"
|
||||
}
|
||||
},
|
||||
"settingOpenAI": {
|
||||
"title": "OpenAI 設置",
|
||||
"token": {
|
||||
"title": "API Key",
|
||||
"desc": "使用自己的 Key 可繞過密碼訪問限制",
|
||||
"placeholder": "OpenAI API Key"
|
||||
},
|
||||
"endpoint": {
|
||||
"title": "接口地址",
|
||||
"desc": "除默認地址外,必須包含 http(s)://"
|
||||
}
|
||||
},
|
||||
"settingSystem": {
|
||||
"title": "系統設置",
|
||||
"accessCode": {
|
||||
"title": "訪問密碼",
|
||||
"desc": "管理員已開啟加密訪問",
|
||||
"placeholder": "請輸入訪問密碼"
|
||||
}
|
||||
},
|
||||
"settingTheme": {
|
||||
"title": "主題設置",
|
||||
"avatar": {
|
||||
"title": "頭像",
|
||||
"desc": "支持 URL / Base64 / Emoji 表情符號"
|
||||
},
|
||||
"fontSize": {
|
||||
"title": "字體大小",
|
||||
"desc": "聊天內容的字體大小"
|
||||
},
|
||||
"lang": {
|
||||
"name": "語言設置",
|
||||
"all": "所有語言"
|
||||
}
|
||||
}
|
||||
}
|
||||
@@ -38,6 +38,13 @@ const Chat = memo(() => {
|
||||
});
|
||||
export default Chat;
|
||||
|
||||
export const getStaticPaths = async (context: any) => ({
|
||||
export const getStaticPaths = async () => {
|
||||
return {
|
||||
fallback: 'blocking',
|
||||
paths: [],
|
||||
};
|
||||
};
|
||||
|
||||
export const getStaticProps = async (context: any) => ({
|
||||
props: await serverSideTranslations(context.locale),
|
||||
});
|
||||
|
||||
@@ -1 +1,7 @@
|
||||
import { serverSideTranslations } from 'next-i18next/serverSideTranslations';
|
||||
|
||||
export { default } from './[id]/index.page';
|
||||
|
||||
export const getStaticProps = async (context: any) => ({
|
||||
props: await serverSideTranslations(context.locale),
|
||||
});
|
||||
|
||||
Reference in New Issue
Block a user