Skip to content

Commit

Permalink
🎨 chore: 更新 i18n 文件
Browse files Browse the repository at this point in the history
  • Loading branch information
rdmclin2 committed Sep 21, 2024
1 parent 836c1c5 commit 6143458
Show file tree
Hide file tree
Showing 20 changed files with 125 additions and 38 deletions.
9 changes: 7 additions & 2 deletions locales/bg-BG/welcome.json
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,11 @@
}
},
"greet": "Здравейте, аз съм {{name}}, с какво мога да ви помогна?",
"loadingTitle": "Приложението се инициализира, моля изчакайте...",
"waiting": "Подготвям целия си свят за теб"
"loading": {
"model": "Зареждане на модела...",
"motions": "Предварително зареждане на файловете с движения...",
"voices": "Генериране на файловете с глас...",
"waiting": "Подготвям целия си свят за теб..."
},
"loadingTitle": "Приложението се инициализира, моля изчакайте..."
}
9 changes: 7 additions & 2 deletions locales/de-DE/welcome.json
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,11 @@
}
},
"greet": "Hallo, ich bin {{name}}. Wie kann ich Ihnen helfen?",
"loadingTitle": "Anwendung wird initialisiert, bitte warten...",
"waiting": "Ich bereite gerade meine ganze Welt für dich vor"
"loading": {
"model": "Modell wird geladen...",
"motions": "Lade die Bewegungsdateien vor...",
"voices": "Sprachdateien werden generiert...",
"waiting": "Ich bereite gerade meine ganze Welt für dich vor..."
},
"loadingTitle": "Anwendung wird initialisiert, bitte warten..."
}
9 changes: 7 additions & 2 deletions locales/en-US/welcome.json
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,11 @@
}
},
"greet": "Hello, I am {{name}}. How can I assist you today?",
"loadingTitle": "Initializing application, please wait...",
"waiting": "I am preparing my whole world for you"
"loading": {
"model": "Loading model...",
"motions": "Preloading motion files...",
"voices": "Generating voice files...",
"waiting": "Preparing my entire world for you..."
},
"loadingTitle": "Initializing application, please wait..."
}
9 changes: 7 additions & 2 deletions locales/es-ES/welcome.json
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,11 @@
}
},
"greet": "Hola, soy {{name}}, ¿en qué puedo ayudarte?",
"loadingTitle": "Inicializando la aplicación, por favor espere...",
"waiting": "Estoy preparando todo mi mundo para ti"
"loading": {
"model": "Cargando el modelo...",
"motions": "Cargando archivos de animación...",
"voices": "Generando archivos de voz...",
"waiting": "Preparando todo mi mundo para ti..."
},
"loadingTitle": "Inicializando la aplicación, por favor espere..."
}
9 changes: 7 additions & 2 deletions locales/fr-FR/welcome.json
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,11 @@
}
},
"greet": "Bonjour, je suis {{name}}, comment puis-je vous aider ?",
"loadingTitle": "Initialisation de l'application, veuillez patienter...",
"waiting": "Je prépare tout mon monde pour toi"
"loading": {
"model": "Chargement du modèle...",
"motions": "Préchargement des fichiers d'animation...",
"voices": "Génération des fichiers audio...",
"waiting": "Préparation de mon monde entier pour vous..."
},
"loadingTitle": "Initialisation de l'application, veuillez patienter..."
}
9 changes: 7 additions & 2 deletions locales/it-IT/welcome.json
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,11 @@
}
},
"greet": "Ciao, sono {{name}}, come posso aiutarti?",
"loadingTitle": "Inizializzazione dell'applicazione, attendere prego...",
"waiting": "Sto preparando il mio intero mondo per te"
"loading": {
"model": "Caricamento del modello in corso...",
"motions": "Caricamento dei file di animazione...",
"voices": "Generazione dei file audio in corso...",
"waiting": "Stiamo preparando il mio intero mondo per te..."
},
"loadingTitle": "Inizializzazione dell'applicazione, attendere prego..."
}
9 changes: 7 additions & 2 deletions locales/ja-JP/welcome.json
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,11 @@
}
},
"greet": "こんにちは、私は{{name}}です。何かお手伝いできることはありますか?",
"loadingTitle": "アプリケーションの初期化中です。しばらくお待ちください...",
"waiting": "私の全世界をあなたのために準備しています"
"loading": {
"model": "モデルを読み込んでいます...",
"motions": "モーションファイルをプリロードしています...",
"voices": "音声ファイルを生成しています...",
"waiting": "私の全世界を準備しています..."
},
"loadingTitle": "アプリケーションの初期化中です。しばらくお待ちください..."
}
9 changes: 7 additions & 2 deletions locales/ko-KR/welcome.json
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,11 @@
}
},
"greet": "안녕하세요, 저는 {{name}}입니다. 무엇을 도와드릴까요?",
"loadingTitle": "애플리케이션 초기화 중입니다. 잠시만 기다려 주세요...",
"waiting": "내 모든 세상을 당신을 위해 준비하고 있습니다"
"loading": {
"model": "모델을 로드하는 중...",
"motions": "모션 파일을 미리 로드하는 중...",
"voices": "음성 파일을 생성하는 중...",
"waiting": "내 세상을 준비하고 있습니다..."
},
"loadingTitle": "애플리케이션 초기화 중입니다. 잠시만 기다려 주세요..."
}
9 changes: 7 additions & 2 deletions locales/nl-NL/welcome.json
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,11 @@
}
},
"greet": "Hallo, ik ben {{name}}, hoe kan ik je helpen?",
"loadingTitle": "Applicatie wordt geïnitialiseerd, even geduld...",
"waiting": "Ik ben mijn hele wereld voor je aan het voorbereiden"
"loading": {
"model": "Model aan het laden...",
"motions": "Actiebestanden aan het voorladen...",
"voices": "Stembestanden aan het genereren...",
"waiting": "We zijn bezig met het voorbereiden van mijn hele wereld..."
},
"loadingTitle": "Applicatie wordt geïnitialiseerd, even geduld..."
}
9 changes: 7 additions & 2 deletions locales/pl-PL/welcome.json
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,11 @@
}
},
"greet": "Cześć, jestem {{name}}, w czym mogę Ci pomóc?",
"loadingTitle": "Aplikacja jest w trakcie inicjalizacji, proszę czekać...",
"waiting": "Przygotowuję dla Ciebie cały mój świat"
"loading": {
"model": "Ładowanie modelu...",
"motions": "Wstępne ładowanie plików z ruchami...",
"voices": "Generowanie plików dźwiękowych...",
"waiting": "Przygotowuję dla Ciebie cały mój świat..."
},
"loadingTitle": "Aplikacja jest w trakcie inicjalizacji, proszę czekać..."
}
9 changes: 7 additions & 2 deletions locales/pt-BR/welcome.json
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,11 @@
}
},
"greet": "Olá, eu sou {{name}}, como posso ajudá-lo?",
"loadingTitle": "Aplicação em inicialização, por favor aguarde...",
"waiting": "Estou preparando todo o meu mundo para você"
"loading": {
"model": "Carregando o modelo...",
"motions": "Pré-carregando arquivos de animação...",
"voices": "Gerando arquivos de voz...",
"waiting": "Preparando todo o meu mundo para você..."
},
"loadingTitle": "Aplicação em inicialização, por favor aguarde..."
}
9 changes: 7 additions & 2 deletions locales/ru-RU/welcome.json
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,11 @@
}
},
"greet": "Здравствуйте, я {{name}}. Чем могу вам помочь?",
"loadingTitle": "Инициализация приложения, пожалуйста, подождите...",
"waiting": "Я готовлю для тебя весь свой мир"
"loading": {
"model": "Загрузка модели...",
"motions": "Предварительная загрузка файлов анимации...",
"voices": "Генерация файлов звука...",
"waiting": "Мы готовим для вас весь мой мир..."
},
"loadingTitle": "Инициализация приложения, пожалуйста, подождите..."
}
9 changes: 7 additions & 2 deletions locales/tr-TR/welcome.json
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,11 @@
}
},
"greet": "Merhaba, ben {{name}}. Size nasıl yardımcı olabilirim?",
"loadingTitle": "Uygulama başlatılıyor, lütfen bekleyin...",
"waiting": "Senin için bütün dünyamı hazırlıyorum"
"loading": {
"model": "Model yükleniyor...",
"motions": "Hareket dosyaları önceden yükleniyor...",
"voices": "Ses dosyaları oluşturuluyor...",
"waiting": "Dünyamı senin için hazırlıyorum..."
},
"loadingTitle": "Uygulama başlatılıyor, lütfen bekleyin..."
}
9 changes: 7 additions & 2 deletions locales/vi-VN/welcome.json
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,11 @@
}
},
"greet": "Xin chào, tôi là {{name}}, có gì tôi có thể giúp bạn không?",
"loadingTitle": "Đang khởi tạo ứng dụng, vui lòng chờ...",
"waiting": "Đang chuẩn bị cả thế giới của tôi cho bạn"
"loading": {
"model": "Đang tải mô hình...",
"motions": "Đang tải các tệp hành động...",
"voices": "Đang tạo tệp âm thanh...",
"waiting": "Đang chuẩn bị toàn bộ thế giới của tôi cho bạn..."
},
"loadingTitle": "Đang khởi tạo ứng dụng, vui lòng chờ..."
}
9 changes: 7 additions & 2 deletions locales/zh-CN/welcome.json
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,11 @@
}
},
"greet": "你好,我是{{name}},有什么可以帮助你的吗?",
"loadingTitle": "应用初始化中,请稍后...",
"waiting": "正在为你准备我的整个世界"
"loading": {
"waiting": "正在为你准备我的整个世界...",
"motions": "预加载动作文件...",
"model": "加载模型中...",
"voices": "生成语音文件中..."
},
"loadingTitle": "应用初始化中,请稍后..."
}
9 changes: 7 additions & 2 deletions locales/zh-TW/welcome.json
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,11 @@
}
},
"greet": "你好,我是{{name}},有什麼可以幫助你的嗎?",
"loadingTitle": "應用程式初始化中,請稍候...",
"waiting": "正在為你準備我的整個世界"
"loading": {
"model": "加載模型中...",
"motions": "預加載動作檔案...",
"voices": "生成語音檔案中...",
"waiting": "正在為你準備我的整個世界..."
},
"loadingTitle": "應用程式初始化中,請稍候..."
}
4 changes: 1 addition & 3 deletions src/app/role/RoleEdit/Touch/ActionList/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -44,12 +44,10 @@ const AreaList = (props: AreaListProps) => {
const { currentTouchArea, style, className, areaOptions = [] } = props;
const [currentAgentTouch] = useAgentStore((s) => [agentSelectors.currentAgentTouch(s)]);
const { t } = useTranslation('role');
const items = currentAgentTouch
const items = get(currentAgentTouch, currentTouchArea)
? (get(currentAgentTouch, currentTouchArea) as TouchAction[])
: [];

console.log('items', items);

const touchArea = areaOptions.find((item) => item.value === currentTouchArea)?.label;

return (
Expand Down
3 changes: 3 additions & 0 deletions src/features/AgentViewer/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -91,6 +91,9 @@ function AgentViewer(props: Props) {
if (!modelUrl) return;
await viewer.loadVrm(modelUrl);

// 如果不是交互模式,加载到这里就结束了
if (!interactive) return;

setLoadingStep(2);
// 加载步骤二: 预加载动作,目前预加载的动作都是通用的
if (viewer?.model) {
Expand Down
8 changes: 7 additions & 1 deletion src/locales/default/welcome.ts
Original file line number Diff line number Diff line change
@@ -1,12 +1,18 @@
export default {
loadingTitle: '应用初始化中,请稍后...',
waiting: '正在为你准备我的整个世界',

agent: {
hello: '你好呀',
meta: {
name: '自定义角色',
description: '这是一个自定义角色',
},
},
loading: {
waiting: '正在为你准备我的整个世界...',
motions: '预加载动作文件...',
model: '加载模型中...',
voices: '生成语音文件中...',
},
greet: '你好,我是{{name}},有什么可以帮助你的吗?',
};
4 changes: 2 additions & 2 deletions src/store/agent/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -145,8 +145,8 @@ const createAgentStore: StateCreator<AgentStore, [['zustand/devtools', never]]>
systemRole: '',
greeting: t('agent.hello', { ns: 'welcome' }),
meta: {
name: t('agent.meta.name'),
description: t('agent.meta.description'),
name: t('agent.meta.name', { ns: 'welcome' }),
description: t('agent.meta.description', { ns: 'welcome' }),
avatar: DEFAULT_AGENT_AVATAR_URL,
cover: '',
category: CategoryEnum.ANIME,
Expand Down

0 comments on commit 6143458

Please sign in to comment.