Skip to content
This repository was archived by the owner on Jul 22, 2025. It is now read-only.

Commit 0baf9dd

Browse files
committed
translate some stuff
1 parent bb6af2a commit 0baf9dd

File tree

3 files changed

+11
-6
lines changed

3 files changed

+11
-6
lines changed

assets/javascripts/discourse/components/ai-bot-sidebar-new-conversation.gjs

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,6 @@
11
import Component from "@glimmer/component";
22
import { service } from "@ember/service";
33
import DButton from "discourse/components/d-button";
4-
import { i18n } from "discourse-i18n";
54

65
export default class AiBotSidebarNewConversation extends Component {
76
@service router;
@@ -14,7 +13,7 @@ export default class AiBotSidebarNewConversation extends Component {
1413
{{#if this.show}}
1514
<DButton
1615
@route="/discourse-ai/ai-bot/conversations"
17-
@translatedLabel="TODO: new_question"
16+
@label="discourse_ai.ai_bot.conversations.new"
1817
@icon="plus"
1918
class="ai-new-question-button btn-default"
2019
/>
Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,25 +1,25 @@
11
{{body-class "discourse-ai-bot-conversations-page"}}
22

33
<div class="custom-homepage__content-wrapper">
4-
<h1>Ask a question</h1>
4+
<h1>{{i18n "discourse_ai.ai_bot.conversations.header"}}</h1>
55
<div class="custom-homepage__input-wrapper">
66
<textarea
77
{{didInsert this.initializeTextarea}}
88
{{on "input" this.updateInputValue}}
99
{{on "keydown" this.handleKeyDown}}
1010
id="custom-homepage-input"
11-
placeholder="placeholder (todo)"
11+
placeholder={{i18n "discourse_ai.ai_bot.conversations.placeholder"}}
1212
minlength="10"
1313
rows="1"
1414
/>
1515
<DButton
1616
@action={{this.aiBotConversationsHiddenSubmit.submitToBot}}
1717
@icon="paper-plane"
18-
@translatedTitle="Submit (todo)"
18+
@title="discourse_ai.ai_bot.conversations.header"
1919
class="ai-bot-button btn-primary"
2020
/>
2121
</div>
2222
<p class="ai-disclaimer">
23-
TODO DISCLAIMER
23+
{{i18n "discourse_ai.ai_bot.conversations.disclaimer"}}
2424
</p>
2525
</div>

config/locales/client.en.yml

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -690,6 +690,12 @@ en:
690690
5-pro: "Gemini"
691691
mixtral-8x7B-Instruct-V0:
692692
"1": "Mixtral-8x7B V0.1"
693+
conversations:
694+
header: "What can I help with?"
695+
submit: "Submit question"
696+
disclaimer: "Generative AI can make mistakes"
697+
placeholder: "Ask a question..."
698+
new: "New Question"
693699
sentiments:
694700
dashboard:
695701
title: "Sentiment"

0 commit comments

Comments
 (0)