This repository was archived by the owner on Jul 22, 2025. It is now read-only.
File tree Expand file tree Collapse file tree 3 files changed +11
-6
lines changed
assets/javascripts/discourse Expand file tree Collapse file tree 3 files changed +11
-6
lines changed Original file line number Diff line number Diff line change 1
1
import Component from " @glimmer/component" ;
2
2
import { service } from " @ember/service" ;
3
3
import DButton from " discourse/components/d-button" ;
4
- import { i18n } from " discourse-i18n" ;
5
4
6
5
export default class AiBotSidebarNewConversation extends Component {
7
6
@service router;
@@ -14,7 +13,7 @@ export default class AiBotSidebarNewConversation extends Component {
14
13
{{#if this . show }}
15
14
<DButton
16
15
@ route =" /discourse-ai/ai-bot/conversations"
17
- @ translatedLabel = " TODO: new_question "
16
+ @ label = " discourse_ai.ai_bot.conversations.new "
18
17
@ icon =" plus"
19
18
class =" ai-new-question-button btn-default"
20
19
/>
Original file line number Diff line number Diff line change 1
1
{{ body-class " discourse-ai-bot-conversations-page" }}
2
2
3
3
<div class =" custom-homepage__content-wrapper" >
4
- <h1 >Ask a question </h1 >
4
+ <h1 >{{ i18n " discourse_ai.ai_bot.conversations.header " }} </h1 >
5
5
<div class =" custom-homepage__input-wrapper" >
6
6
<textarea
7
7
{{ didInsert this.initializeTextarea }}
8
8
{{ on " input" this.updateInputValue }}
9
9
{{ on " keydown" this.handleKeyDown }}
10
10
id =" custom-homepage-input"
11
- placeholder =" placeholder (todo) "
11
+ placeholder ={{ i18n " discourse_ai.ai_bot.conversations. placeholder" }}
12
12
minlength =" 10"
13
13
rows =" 1"
14
14
/>
15
15
<DButton
16
16
@action ={{ this.aiBotConversationsHiddenSubmit.submitToBot }}
17
17
@icon =" paper-plane"
18
- @translatedTitle = " Submit (todo) "
18
+ @title = " discourse_ai.ai_bot.conversations.header "
19
19
class =" ai-bot-button btn-primary"
20
20
/>
21
21
</div >
22
22
<p class =" ai-disclaimer" >
23
- TODO DISCLAIMER
23
+ {{ i18n " discourse_ai.ai_bot.conversations.disclaimer " }}
24
24
</p >
25
25
</div >
Original file line number Diff line number Diff line change 690
690
5-pro : " Gemini"
691
691
mixtral-8x7B-Instruct-V0 :
692
692
" 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"
693
699
sentiments :
694
700
dashboard :
695
701
title : " Sentiment"
You can’t perform that action at this time.
0 commit comments