Skip to content

Local UI to run and train LLMs and diffusion models. Supports GGUF, MLX, Qwen3.8, DeepSeek-V4.1, MiniMax-H3, Gemma 4, FLUX and more.

Studio: translate the chat welcome greeting in every locale (#13549)

Daniel Hana7dc8a0640f9
diff --git a/studio/frontend/src/components/assistant-ui/thread.tsx b/studio/frontend/src/components/assistant-ui/thread.tsx
index 90762eda4c0..f10544693d2 100644
--- a/studio/frontend/src/components/assistant-ui/thread.tsx
+++ b/studio/frontend/src/components/assistant-ui/thread.tsx
@@ -238,6 +238,7 @@ import {
} from "@/features/settings";
import { FIND_SKIP_ATTRIBUTE } from "@/features/find-in-page";
import { translate, useT } from "@/i18n";
+import type { TranslationKey } from "@/i18n";
import {
clampReasoningEffortToLevels,
getExternalReasoningCapabilities,
@@ -2620,41 +2621,47 @@ const pickRandom = <T,>(arr: T[]): T =>
// Each greeting carries its matching sloth picture so a line always shows the
// same mascot. Greeting varies by local time; name-bearing lines drop the
-// name when none is set.
-type Welcome = { text: string; sloth: string };
+// name when none is set. Text is a message key, translated at render so a
+// language switch updates the open greeting.
+type Welcome = { key: TranslationKey; name?: string; sloth: string };
const DEFAULT_WELCOME: Welcome = {
- text: "What’s on your mind today?",
+ key: "welcome.onYourMind",
sloth: "sloth magnify final.png",
};
function buildWelcome(hour: number, name: string): Welcome {
- const g = (text: string, sloth: string): Welcome => ({ text, sloth });
+ const g = (key: TranslationKey, sloth: string): Welcome => ({ key, sloth });
+ const named = (
+ key: TranslationKey,
+ namedKey: TranslationKey,
+ sloth: string,
+ ): Welcome => (name ? { key: namedKey, name, sloth } : { key, sloth });
// Use the name on ~a third of lines (only direct salutations where it reads
// naturally); the rest stay name-free so greetings don't feel repetitive.
const base: Welcome[] = [
- g(name ? `Good to see you, ${name}` : "Good to see you", "large sloth wave.png"),
- g("Ready when you are", "large sloth thumbs.png"),
+ named("welcome.goodToSeeYou", "welcome.goodToSeeYouName", "large sloth wave.png"),
+ g("welcome.readyWhenYouAre", "large sloth thumbs.png"),
DEFAULT_WELCOME,
- g("How can I help?", "sloth sir large.png"),
+ g("welcome.howCanIHelp", "sloth sir large.png"),
];
if (hour >= 4 && hour < 9) {
- const morning = g(name ? `Good morning, ${name}` : "Good morning", "large sloth drink.png");
+ const morning = named("welcome.goodMorning", "welcome.goodMorningName", "large sloth drink.png");
return pickRandom([...base, morning]);
}
if (hour >= 17 && hour < 23) {
const evening: Welcome[] = [
- g(name ? `Good evening, ${name}` : "Good evening", "sloth shy large.png"),
- g("What’s on for tonight?", "large sloth glasses.png"),
+ named("welcome.goodEvening", "welcome.goodEveningName", "sloth shy large.png"),
+ g("welcome.tonight", "large sloth glasses.png"),
];
// Lean toward an evening line, but a base greeting can still appear.
return pickRandom(Math.random() < 0.75 ? evening : base);
}
if (hour >= 23 || hour < 4) {
return pickRandom([
- g("Night owl mode?", "large sloth glasses.png"),
- g("Late night ideas?", "large sloth yay.png"),
- g("Up late with an idea?", "large sloth heart.png"),
- g(name ? `The night shift begins, ${name}` : "The night shift begins", "large sloth drink.png"),
+ g("welcome.nightOwl", "large sloth glasses.png"),
+ g("welcome.lateNightIdeas", "large sloth yay.png"),
+ g("welcome.upLate", "large sloth heart.png"),
+ named("welcome.nightShift", "welcome.nightShiftName", "large sloth drink.png"),
]);
}
return pickRandom(base);
@@ -2669,6 +2676,7 @@ const ThreadWelcome: FC<{
const nickname = useUserProfileStore((s) => s.nickname);
const showGreetingSloth = useUserProfileStore((s) => s.showGreetingSloth);
const [welcome, setWelcome] = useState<Welcome>(DEFAULT_WELCOME);
+ const t = useT();
useEffect(() => {
// Prefer the nickname; otherwise first name only. Blank falls back to none.
@@ -2696,13 +2704,14 @@ const ThreadWelcome: FC<{
/>
)}
<h1 className="aui-thread-welcome-message-inner unsloth-welcome-title fade-in slide-in-from-bottom-1 animate-in text-3xl tracking-[-0.02em] duration-200">
- {incognito ? "Temporary chat" : welcome.text}
+ {incognito
+ ? t("welcome.temporaryChat")
+ : t(welcome.key, welcome.name ? { name: welcome.name } : undefined)}
</h1>
</div>
{incognito && (
<p className="aui-thread-welcome-message-inner fade-in -mt-2 animate-in text-center font-heading font-normal text-muted-foreground text-sm duration-200">
- This chat won't appear in your history and isn't saved. It
- disappears when you leave.
+ {t("welcome.temporaryChatDescription")}
</p>
)}
{!hideComposer && <ComposerAnimated threadId={threadId} />}
diff --git a/studio/frontend/src/i18n/locales/ar.ts b/studio/frontend/src/i18n/locales/ar.ts
index 128066044e2..9ce1ae043f4 100644
--- a/studio/frontend/src/i18n/locales/ar.ts
+++ b/studio/frontend/src/i18n/locales/ar.ts
@@ -584,6 +584,25 @@ export const ar = {
more: "خيارات المحادثة",
copy: "نسخ",
},
+ welcome: {
+ goodToSeeYou: "سعيد برؤيتك",
+ goodToSeeYouName: "سعيد برؤيتك يا {name}",
+ readyWhenYouAre: "جاهز متى كنت جاهزًا",
+ onYourMind: "ما الذي يدور في ذهنك اليوم؟",
+ howCanIHelp: "كيف يمكنني المساعدة؟",
+ goodMorning: "صباح الخير",
+ goodMorningName: "صباح الخير يا {name}",
+ goodEvening: "مساء الخير",
+ goodEveningName: "مساء الخير يا {name}",
+ tonight: "ما خططك لهذه الليلة؟",
+ nightOwl: "وضع السهر؟",
+ lateNightIdeas: "أفكار في وقت متأخر؟",
+ upLate: "ساهر مع فكرة؟",
+ nightShift: "تبدأ نوبة الليل",
+ nightShiftName: "تبدأ نوبة الليل يا {name}",
+ temporaryChat: "دردشة مؤقتة",
+ temporaryChatDescription: "لن تظهر هذه الدردشة في سجلك ولن تُحفظ. ستختفي عند مغادرتك.",
+ },
picker: {
onDevice: "على الجهاز",
huggingFace: "Hugging Face",
diff --git a/studio/frontend/src/i18n/locales/de.ts b/studio/frontend/src/i18n/locales/de.ts
index cb7f7c84181..fb3751d83dc 100644
--- a/studio/frontend/src/i18n/locales/de.ts
+++ b/studio/frontend/src/i18n/locales/de.ts
@@ -584,6 +584,26 @@ export const de = {
more: "Chat-Optionen",
copy: "Kopieren",
},
+ welcome: {
+ goodToSeeYou: "Schön, dich zu sehen",
+ goodToSeeYouName: "Schön, dich zu sehen, {name}",
+ readyWhenYouAre: "Bereit, wenn du es bist",
+ onYourMind: "Was beschäftigt dich heute?",
+ howCanIHelp: "Wie kann ich helfen?",
+ goodMorning: "Guten Morgen",
+ goodMorningName: "Guten Morgen, {name}",
+ goodEvening: "Guten Abend",
+ goodEveningName: "Guten Abend, {name}",
+ tonight: "Was steht heute Abend an?",
+ nightOwl: "Nachteulen-Modus?",
+ lateNightIdeas: "Ideen zu später Stunde?",
+ upLate: "Noch wach mit einer Idee?",
+ nightShift: "Die Nachtschicht beginnt",
+ nightShiftName: "Die Nachtschicht beginnt, {name}",
+ temporaryChat: "Temporärer Chat",
+ temporaryChatDescription:
+ "Dieser Chat erscheint nicht in deinem Verlauf und wird nicht gespeichert. Er verschwindet, wenn du ihn verlässt.",
+ },
picker: {
onDevice: "Auf dem Gerät",
huggingFace: "Hugging Face",
diff --git a/studio/frontend/src/i18n/locales/en.ts b/studio/frontend/src/i18n/locales/en.ts
index 3a760fb037f..2a81a269260 100644
--- a/studio/frontend/src/i18n/locales/en.ts
+++ b/studio/frontend/src/i18n/locales/en.ts
@@ -629,6 +629,27 @@ export const en = {
more: "Chat options",
copy: "Copy",
},
+ // The empty chat's greeting; {name} is the user's nickname or first name.
+ welcome: {
+ goodToSeeYou: "Good to see you",
+ goodToSeeYouName: "Good to see you, {name}",
+ readyWhenYouAre: "Ready when you are",
+ onYourMind: "What’s on your mind today?",
+ howCanIHelp: "How can I help?",
+ goodMorning: "Good morning",
+ goodMorningName: "Good morning, {name}",
+ goodEvening: "Good evening",
+ goodEveningName: "Good evening, {name}",
+ tonight: "What’s on for tonight?",
+ nightOwl: "Night owl mode?",
+ lateNightIdeas: "Late night ideas?",
+ upLate: "Up late with an idea?",
+ nightShift: "The night shift begins",
+ nightShiftName: "The night shift begins, {name}",
+ temporaryChat: "Temporary chat",
+ temporaryChatDescription:
+ "This chat won't appear in your history and isn't saved. It disappears when you leave.",
+ },
picker: {
onDevice: "On Device",
huggingFace: "Hugging Face",
diff --git a/studio/frontend/src/i18n/locales/es.ts b/studio/frontend/src/i18n/locales/es.ts
index e37a282fa50..c25c5a5da3c 100644
--- a/studio/frontend/src/i18n/locales/es.ts
+++ b/studio/frontend/src/i18n/locales/es.ts
@@ -584,6 +584,26 @@ export const es = {
more: "Opciones del chat",
copy: "Copiar",
},
+ welcome: {
+ goodToSeeYou: "Me alegra verte",
+ goodToSeeYouName: "Me alegra verte, {name}",
+ readyWhenYouAre: "Listo cuando tú lo estés",
+ onYourMind: "¿Qué tienes en mente hoy?",
+ howCanIHelp: "¿En qué puedo ayudarte?",
+ goodMorning: "Buenos días",
+ goodMorningName: "Buenos días, {name}",
+ goodEvening: "Buenas noches",
+ goodEveningName: "Buenas noches, {name}",
+ tonight: "¿Qué planes tienes para esta noche?",
+ nightOwl: "¿Modo noctámbulo?",
+ lateNightIdeas: "¿Ideas de madrugada?",
+ upLate: "¿Una idea a estas horas?",
+ nightShift: "Empieza el turno de noche",
+ nightShiftName: "Empieza el turno de noche, {name}",
+ temporaryChat: "Chat temporal",
+ temporaryChatDescription:
+ "Este chat no aparecerá en tu historial ni se guardará. Desaparece cuando salgas.",
+ },
picker: {
onDevice: "En el dispositivo",
huggingFace: "Hugging Face",
diff --git a/studio/frontend/src/i18n/locales/fr.ts b/studio/frontend/src/i18n/locales/fr.ts
index de2416abfb6..9b2f2609bd4 100644
--- a/studio/frontend/src/i18n/locales/fr.ts
+++ b/studio/frontend/src/i18n/locales/fr.ts
@@ -584,6 +584,26 @@ export const fr = {
more: "Options de la discussion",
copy: "Copier",
},
+ welcome: {
+ goodToSeeYou: "Ravi de vous voir",
+ goodToSeeYouName: "Ravi de vous voir, {name}",
+ readyWhenYouAre: "Prêt quand vous l’êtes",
+ onYourMind: "Qu’avez-vous en tête aujourd’hui ?",
+ howCanIHelp: "Comment puis-je vous aider ?",
+ goodMorning: "Bonjour",
+ goodMorningName: "Bonjour, {name}",
+ goodEvening: "Bonsoir",
+ goodEveningName: "Bonsoir, {name}",
+ tonight: "Quel est le programme ce soir ?",
+ nightOwl: "Mode noctambule ?",
+ lateNightIdeas: "Des idées nocturnes ?",
+ upLate: "Encore debout avec une idée ?",
+ nightShift: "Le service de nuit commence",
+ nightShiftName: "Le service de nuit commence, {name}",
+ temporaryChat: "Chat temporaire",
+ temporaryChatDescription:
+ "Ce chat n’apparaîtra pas dans votre historique et n’est pas enregistré. Il disparaît quand vous le quittez.",
+ },
picker: {
onDevice: "Sur l'appareil",
huggingFace: "Hugging Face",
diff --git a/studio/frontend/src/i18n/locales/he.ts b/studio/frontend/src/i18n/locales/he.ts
index 74165f7408c..d0e3f8c8a65 100644
--- a/studio/frontend/src/i18n/locales/he.ts
+++ b/studio/frontend/src/i18n/locales/he.ts
@@ -659,6 +659,25 @@ export const he = {
more: "אפשרויות צ'אט",
copy: "העתקה",
},
+ welcome: {
+ goodToSeeYou: "טוב לראות אותך",
+ goodToSeeYouName: "טוב לראות אותך, {name}",
+ readyWhenYouAre: "מוכן כשתהיה מוכן",
+ onYourMind: "מה עובר לך בראש היום?",
+ howCanIHelp: "איך אפשר לעזור?",
+ goodMorning: "בוקר טוב",
+ goodMorningName: "בוקר טוב, {name}",
+ goodEvening: "ערב טוב",
+ goodEveningName: "ערב טוב, {name}",
+ tonight: "מה התוכניות להערב?",
+ nightOwl: "מצב ינשוף לילה?",
+ lateNightIdeas: "רעיונות של לילה?",
+ upLate: "ער עד מאוחר עם רעיון?",
+ nightShift: "משמרת הלילה מתחילה",
+ nightShiftName: "משמרת הלילה מתחילה, {name}",
+ temporaryChat: "צ'אט זמני",
+ temporaryChatDescription: "הצ'אט הזה לא יופיע בהיסטוריה שלך ולא נשמר. הוא נעלם כשתעזוב.",
+ },
picker: {
onDevice: "במכשיר",
huggingFace: "Hugging Face",
diff --git a/studio/frontend/src/i18n/locales/hi.ts b/studio/frontend/src/i18n/locales/hi.ts
index 84a0f6afb5f..3a916939025 100644
--- a/studio/frontend/src/i18n/locales/hi.ts
+++ b/studio/frontend/src/i18n/locales/hi.ts
@@ -584,6 +584,26 @@ export const hi = {
more: "चैट विकल्प",
copy: "कॉपी करें",
},
+ welcome: {
+ goodToSeeYou: "आपको देखकर अच्छा लगा",
+ goodToSeeYouName: "{name}, आपको देखकर अच्छा लगा",
+ readyWhenYouAre: "जब आप तैयार हों",
+ onYourMind: "आज आपके मन में क्या है?",
+ howCanIHelp: "मैं आपकी क्या मदद करूँ?",
+ goodMorning: "सुप्रभात",
+ goodMorningName: "सुप्रभात, {name}",
+ goodEvening: "शुभ संध्या",
+ goodEveningName: "शुभ संध्या, {name}",
+ tonight: "आज रात का क्या प्लान है?",
+ nightOwl: "रात जागने का मूड?",
+ lateNightIdeas: "देर रात के आइडिया?",
+ upLate: "देर रात कोई आइडिया आया?",
+ nightShift: "रात की शिफ़्ट शुरू होती है",
+ nightShiftName: "{name}, रात की शिफ़्ट शुरू होती है",
+ temporaryChat: "अस्थायी चैट",
+ temporaryChatDescription:
+ "यह चैट आपके इतिहास में नहीं दिखेगी और सेव नहीं होती। आपके जाने पर यह गायब हो जाती है।",
+ },
picker: {
onDevice: "डिवाइस पर",
huggingFace: "Hugging Face",
diff --git a/studio/frontend/src/i18n/locales/it.ts b/studio/frontend/src/i18n/locales/it.ts
index 5fa3eb5c2d8..a141dfd30d7 100644
--- a/studio/frontend/src/i18n/locales/it.ts
+++ b/studio/frontend/src/i18n/locales/it.ts
@@ -3135,6 +3135,26 @@ export const it = {
more: "Opzioni chat",
copy: "Copia",
},
+ welcome: {
+ goodToSeeYou: "Che piacere vederti",
+ goodToSeeYouName: "Che piacere vederti, {name}",
+ readyWhenYouAre: "Pronto quando vuoi tu",
+ onYourMind: "A cosa stai pensando oggi?",
+ howCanIHelp: "Come posso aiutarti?",
+ goodMorning: "Buongiorno",
+ goodMorningName: "Buongiorno, {name}",
+ goodEvening: "Buonasera",
+ goodEveningName: "Buonasera, {name}",
+ tonight: "Che programmi hai per stasera?",
+ nightOwl: "Modalità nottambulo?",
+ lateNightIdeas: "Idee a tarda notte?",
+ upLate: "Ancora in piedi con un’idea?",
+ nightShift: "Inizia il turno di notte",
+ nightShiftName: "Inizia il turno di notte, {name}",
+ temporaryChat: "Chat temporanea",
+ temporaryChatDescription:
+ "Questa chat non comparirà nella cronologia e non viene salvata. Scompare quando esci.",
+ },
picker: {
onDevice: "Sul dispositivo",
huggingFace: "Hugging Face",
diff --git a/studio/frontend/src/i18n/locales/ja.ts b/studio/frontend/src/i18n/locales/ja.ts
index 9891a960723..8bf65f75df3 100644
--- a/studio/frontend/src/i18n/locales/ja.ts
+++ b/studio/frontend/src/i18n/locales/ja.ts
@@ -585,6 +585,25 @@ export const ja = {
more: "チャットのオプション",
copy: "コピー",
},
+ welcome: {
+ goodToSeeYou: "お会いできてうれしいです",
+ goodToSeeYouName: "{name}さん、お会いできてうれしいです",
+ readyWhenYouAre: "いつでもどうぞ",
+ onYourMind: "今日は何について考えていますか?",
+ howCanIHelp: "どのようにお手伝いできますか?",
+ goodMorning: "おはようございます",
+ goodMorningName: "{name}さん、おはようございます",
+ goodEvening: "こんばんは",
+ goodEveningName: "{name}さん、こんばんは",
+ tonight: "今夜は何をしますか?",
+ nightOwl: "夜更かしモード?",
+ lateNightIdeas: "深夜のアイデア?",
+ upLate: "夜遅くにひらめきましたか?",
+ nightShift: "夜のシフトが始まります",
+ nightShiftName: "{name}さん、夜のシフトが始まります",
+ temporaryChat: "一時チャット",
+ temporaryChatDescription: "このチャットは履歴に表示されず、保存されません。離れると消えます。",
+ },
picker: {
onDevice: "デバイス上",
huggingFace: "Hugging Face",
diff --git a/studio/frontend/src/i18n/locales/ko.ts b/studio/frontend/src/i18n/locales/ko.ts
index aa6b5b79ad8..caebeaf3038 100644
--- a/studio/frontend/src/i18n/locales/ko.ts
+++ b/studio/frontend/src/i18n/locales/ko.ts
@@ -584,6 +584,25 @@ export const ko = {
more: "채팅 옵션",
copy: "복사",
},
+ welcome: {
+ goodToSeeYou: "반가워요",
+ goodToSeeYouName: "{name}님, 반가워요",
+ readyWhenYouAre: "준비되면 말씀하세요",
+ onYourMind: "오늘은 무슨 생각을 하고 계세요?",
+ howCanIHelp: "무엇을 도와드릴까요?",
+ goodMorning: "좋은 아침이에요",
+ goodMorningName: "{name}님, 좋은 아침이에요",
+ goodEvening: "좋은 저녁이에요",
+ goodEveningName: "{name}님, 좋은 저녁이에요",
+ tonight: "오늘 밤 계획이 있나요?",
+ nightOwl: "올빼미 모드인가요?",
+ lateNightIdeas: "늦은 밤의 아이디어?",
+ upLate: "늦게까지 아이디어가 떠올랐나요?",
+ nightShift: "야간 근무가 시작됩니다",
+ nightShiftName: "{name}님, 야간 근무가 시작됩니다",
+ temporaryChat: "임시 채팅",
+ temporaryChatDescription: "이 채팅은 기록에 표시되지 않으며 저장되지 않습니다. 나가면 사라집니다.",
+ },
picker: {
onDevice: "기기",
huggingFace: "Hugging Face",
diff --git a/studio/frontend/src/i18n/locales/pt-br.ts b/studio/frontend/src/i18n/locales/pt-br.ts
index b8b7f318f29..8df65902a6b 100644
--- a/studio/frontend/src/i18n/locales/pt-br.ts
+++ b/studio/frontend/src/i18n/locales/pt-br.ts
@@ -584,6 +584,26 @@ export const ptBR = {
more: "Opções do chat",
copy: "Copiar",
},
+ welcome: {
+ goodToSeeYou: "Que bom ver você",
+ goodToSeeYouName: "Que bom ver você, {name}",
+ readyWhenYouAre: "Pronto quando você estiver",
+ onYourMind: "O que você tem em mente hoje?",
+ howCanIHelp: "Como posso ajudar?",
+ goodMorning: "Bom dia",
+ goodMorningName: "Bom dia, {name}",
+ goodEvening: "Boa noite",
+ goodEveningName: "Boa noite, {name}",
+ tonight: "Quais são os planos para hoje à noite?",
+ nightOwl: "Modo coruja?",
+ lateNightIdeas: "Ideias de madrugada?",
+ upLate: "Uma ideia a esta hora?",
+ nightShift: "Começa o turno da noite",
+ nightShiftName: "Começa o turno da noite, {name}",
+ temporaryChat: "Chat temporário",
+ temporaryChatDescription:
+ "Este chat não aparecerá no seu histórico e não será salvo. Ele desaparece quando você sair.",
+ },
picker: {
onDevice: "No dispositivo",
huggingFace: "Hugging Face",
diff --git a/studio/frontend/src/i18n/locales/ru.ts b/studio/frontend/src/i18n/locales/ru.ts
index 713ad93221a..a59011a6ba3 100644
--- a/studio/frontend/src/i18n/locales/ru.ts
+++ b/studio/frontend/src/i18n/locales/ru.ts
@@ -584,6 +584,26 @@ export const ru = {
more: "Параметры чата",
copy: "Копировать",
},
+ welcome: {
+ goodToSeeYou: "Рады вас видеть",
+ goodToSeeYouName: "Рады вас видеть, {name}",
+ readyWhenYouAre: "Готов, когда будете готовы",
+ onYourMind: "О чём думаете сегодня?",
+ howCanIHelp: "Чем могу помочь?",
+ goodMorning: "Доброе утро",
+ goodMorningName: "Доброе утро, {name}",
+ goodEvening: "Добрый вечер",
+ goodEveningName: "Добрый вечер, {name}",
+ tonight: "Какие планы на вечер?",
+ nightOwl: "Режим совы?",
+ lateNightIdeas: "Идеи на ночь глядя?",
+ upLate: "Не спится? Есть идея?",
+ nightShift: "Начинается ночная смена",
+ nightShiftName: "Начинается ночная смена, {name}",
+ temporaryChat: "Временный чат",
+ temporaryChatDescription:
+ "Этот чат не появится в истории и не сохраняется. Он исчезнет, когда вы уйдёте.",
+ },
picker: {
onDevice: "На устройстве",
huggingFace: "Hugging Face",
diff --git a/studio/frontend/src/i18n/locales/sv.ts b/studio/frontend/src/i18n/locales/sv.ts
index 554451c33d7..9fab02957a7 100644
--- a/studio/frontend/src/i18n/locales/sv.ts
+++ b/studio/frontend/src/i18n/locales/sv.ts
@@ -674,6 +674,26 @@ export const sv = {
more: "Chattalternativ",
copy: "Kopiera",
},
+ welcome: {
+ goodToSeeYou: "Kul att se dig",
+ goodToSeeYouName: "Kul att se dig, {name}",
+ readyWhenYouAre: "Redo när du är",
+ onYourMind: "Vad tänker du på i dag?",
+ howCanIHelp: "Hur kan jag hjälpa till?",
+ goodMorning: "God morgon",
+ goodMorningName: "God morgon, {name}",
+ goodEvening: "God kväll",
+ goodEveningName: "God kväll, {name}",
+ tonight: "Vad händer i kväll?",
+ nightOwl: "Nattugglan vaken?",
+ lateNightIdeas: "Idéer mitt i natten?",
+ upLate: "Uppe sent med en idé?",
+ nightShift: "Nattskiftet börjar",
+ nightShiftName: "Nattskiftet börjar, {name}",
+ temporaryChat: "Tillfällig chatt",
+ temporaryChatDescription:
+ "Den här chatten visas inte i din historik och sparas inte. Den försvinner när du lämnar den.",
+ },
picker: {
onDevice: "På enheten",
huggingFace: "Hugging Face",
diff --git a/studio/frontend/src/i18n/locales/zh-CN.ts b/studio/frontend/src/i18n/locales/zh-CN.ts
index c1d5d44e9a3..502e6a931f1 100644
--- a/studio/frontend/src/i18n/locales/zh-CN.ts
+++ b/studio/frontend/src/i18n/locales/zh-CN.ts
@@ -584,6 +584,25 @@ export const zhCN = {
more: "聊天选项",
copy: "复制",
},
+ welcome: {
+ goodToSeeYou: "很高兴见到你",
+ goodToSeeYouName: "很高兴见到你,{name}",
+ readyWhenYouAre: "随时准备就绪",
+ onYourMind: "今天在想什么?",
+ howCanIHelp: "有什么可以帮你?",
+ goodMorning: "早上好",
+ goodMorningName: "早上好,{name}",
+ goodEvening: "晚上好",
+ goodEveningName: "晚上好,{name}",
+ tonight: "今晚有什么安排?",
+ nightOwl: "夜猫子模式?",
+ lateNightIdeas: "深夜灵感?",
+ upLate: "熬夜想到了什么点子?",
+ nightShift: "夜班开始了",
+ nightShiftName: "夜班开始了,{name}",
+ temporaryChat: "临时聊天",
+ temporaryChatDescription: "此聊天不会出现在你的历史记录中,也不会被保存。离开后即消失。",
+ },
picker: {
onDevice: "本机",
huggingFace: "Hugging Face",
diff --git a/studio/frontend/tests/chat-welcome-i18n.test.ts b/studio/frontend/tests/chat-welcome-i18n.test.ts
new file mode 100644
index 00000000000..0fe00a8cb7a
--- /dev/null
+++ b/studio/frontend/tests/chat-welcome-i18n.test.ts
@@ -0,0 +1,45 @@
+// SPDX-License-Identifier: AGPL-3.0-only
+// Copyright 2026-present the Unsloth AI Inc. team. All rights reserved. See /studio/LICENSE.AGPL-3.0
+
+// The empty chat's greeting follows the UI language (#13391): every line is a
+// welcome.* message key, not English baked into thread.tsx.
+
+import assert from "node:assert/strict";
+import test from "node:test";
+
+import { readSrcAsync, registerBundlerResolver } from "./helpers/kit.ts";
+
+registerBundlerResolver();
+
+const { en } = await import("../src/i18n/locales/en.ts");
+const { de } = await import("../src/i18n/locales/de.ts");
+const threadSrc = await readSrcAsync("components/assistant-ui/thread.tsx");
+
+const welcomeSrc = threadSrc.slice(
+ threadSrc.indexOf("type Welcome ="),
+ threadSrc.indexOf("export const ProjectComposer"),
+);
+
+test("the greeting uses every welcome key and no English literals", () => {
+ const used = new Set(
+ [...welcomeSrc.matchAll(/"welcome\.(\w+)"/g)].map((m) => m[1]),
+ );
+ assert.deepEqual([...used].sort(), Object.keys(en.welcome).sort());
+ for (const line of [
+ "Good to see you",
+ "Ready when you are",
+ "Night owl mode?",
+ "Temporary chat",
+ ]) {
+ assert.ok(!welcomeSrc.includes(`"${line}`), line);
+ }
+});
+
+test("named lines keep {name} and translate", () => {
+ for (const [key, text] of Object.entries(en.welcome)) {
+ const german = de.welcome[key as keyof typeof de.welcome];
+ assert.notEqual(german, text, key);
+ assert.equal(key.endsWith("Name"), text.includes("{name}"), key);
+ assert.equal(german.includes("{name}"), text.includes("{name}"), key);
+ }
+});