Skip to content

Commit 8131217

Browse files
author
erangi-ar
committed
title fix
1 parent fb6d57b commit 8131217

File tree

4 files changed

+43
-12
lines changed

4 files changed

+43
-12
lines changed

.dockerignore

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -36,6 +36,7 @@ venv/
3636
ENV/
3737
env.bak/
3838
venv.bak/
39+
myenv/
3940

4041
# IDE
4142
.vscode/

GUI/src/pages/TestProductionLLM/index.tsx

Lines changed: 12 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -33,8 +33,8 @@ const TestProductionLLM: FC = () => {
3333
if (!inputMessage.trim()) {
3434
toast.open({
3535
type: 'warning',
36-
title: 'Warning',
37-
message: 'Please enter a message',
36+
title: t('testProductionLLM.warningTitle'),
37+
message: t('testProductionLLM.emptyMessageWarning'),
3838
});
3939
return;
4040
}
@@ -114,7 +114,7 @@ const TestProductionLLM: FC = () => {
114114

115115
toast.open({
116116
type: 'error',
117-
title: 'Streaming Error',
117+
title: t('testProductionLLM.streamingErrorTitle'),
118118
message: error,
119119
});
120120
};
@@ -140,27 +140,27 @@ const TestProductionLLM: FC = () => {
140140
stopStreaming();
141141
toast.open({
142142
type: 'info',
143-
title: 'Chat Cleared',
144-
message: 'All messages have been cleared.',
143+
title: t('testProductionLLM.chatClearedTitle'),
144+
message: t('testProductionLLM.chatClearedMessage'),
145145
});
146146
};
147147

148148
return (
149149
<div>
150150
<div className="test-production-llm">
151151
<div className="test-production-llm__header">
152-
<h1>{t('Test Production LLM')}</h1>
152+
<h1>{t('testProductionLLM.title')}</h1>
153153
<Button onClick={clearChat} appearance="secondary">
154-
{t('Clear Chat')}
154+
{t('testProductionLLM.clearChat')}
155155
</Button>
156156
</div>
157157

158158
<div className="test-production-llm__chat-container">
159159
<div className="test-production-llm__messages">
160160
{messages.length === 0 && (
161161
<div className="test-production-llm__welcome">
162-
<p>Welcome to Production LLM Testing</p>
163-
<p>Start a conversation by typing a message below.</p>
162+
<p>{t('testProductionLLM.welcomeTitle')}</p>
163+
<p>{t('testProductionLLM.welcomeSubtitle')}</p>
164164
</div>
165165
)}
166166

@@ -197,12 +197,12 @@ const TestProductionLLM: FC = () => {
197197

198198
<div className="test-production-llm__input-area">
199199
<FormTextarea
200-
label="Message"
200+
label={t('testProductionLLM.messageLabel')}
201201
name="message"
202202
value={inputMessage}
203203
onChange={(e) => setInputMessage(e.target.value)}
204204
onKeyDown={handleKeyPress}
205-
placeholder="Type your message here... (Press Enter to send, Shift+Enter for new line)"
205+
placeholder={t('testProductionLLM.messagePlaceholder')??""}
206206
hideLabel
207207
maxRows={4}
208208
disabled={isLoading || isStreaming}
@@ -212,7 +212,7 @@ const TestProductionLLM: FC = () => {
212212
disabled={isLoading || isStreaming || !inputMessage.trim()}
213213
className="test-production-llm__send-button"
214214
>
215-
{isLoading || isStreaming ? 'Sending...' : 'Send'}
215+
{isLoading || isStreaming ? t('testProductionLLM.sendingButton') : t('testProductionLLM.sendButton')}
216216
</Button>
217217
</div>
218218
</div>

GUI/translations/en/common.json

Lines changed: 15 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -399,5 +399,20 @@
399399
"aws": "AWS Bedrock",
400400
"azure": "Azure OpenAI"
401401
}
402+
},
403+
"testProductionLLM": {
404+
"title": "Test Production LLM",
405+
"clearChat": "Clear Chat",
406+
"welcomeTitle": "Welcome to Production LLM Testing",
407+
"welcomeSubtitle": "Start a conversation by typing a message below.",
408+
"messageLabel": "Message",
409+
"messagePlaceholder": "Type your message here... (Press Enter to send, Shift+Enter for new line)",
410+
"sendButton": "Send",
411+
"sendingButton": "Sending...",
412+
"warningTitle": "Warning",
413+
"emptyMessageWarning": "Please enter a message",
414+
"streamingErrorTitle": "Streaming Error",
415+
"chatClearedTitle": "Chat Cleared",
416+
"chatClearedMessage": "All messages have been cleared."
402417
}
403418
}

GUI/translations/et/common.json

Lines changed: 15 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -399,5 +399,20 @@
399399
"aws": "AWS Bedrock",
400400
"azure": "Azure OpenAI"
401401
}
402+
},
403+
"testProductionLLM": {
404+
"title": "Testi Tootmise LLM",
405+
"clearChat": "Tühjenda Vestlus",
406+
"welcomeTitle": "Tere tulemast Tootmise LLM Testimisse",
407+
"welcomeSubtitle": "Alusta vestlust, kirjutades allpool sõnumi.",
408+
"messageLabel": "Sõnum",
409+
"messagePlaceholder": "Kirjuta oma sõnum siia... (Vajuta Enter saatmiseks, Shift+Enter uue rea jaoks)",
410+
"sendButton": "Saada",
411+
"sendingButton": "Saatmine...",
412+
"warningTitle": "Hoiatus",
413+
"emptyMessageWarning": "Palun sisesta sõnum",
414+
"streamingErrorTitle": "Voogedastuse Viga",
415+
"chatClearedTitle": "Vestlus Tühjendatud",
416+
"chatClearedMessage": "Kõik sõnumid on tühjendatud."
402417
}
403418
}

0 commit comments

Comments
 (0)