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 11import Component from " @glimmer/component" ;
22import { service } from " @ember/service" ;
33import DButton from " discourse/components/d-button" ;
4- import { i18n } from " discourse-i18n" ;
54
65export 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 />
Original file line number Diff line number Diff line change 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 >
Original file line number Diff line number Diff line change 649649 5-pro : " Gemini"
650650 mixtral-8x7B-Instruct-V0 :
651651 " 1 " : " Mixtral-8x7B V0.1"
652+ conversations :
653+ header : " What can I help with?"
654+ submit : " Submit question"
655+ disclaimer : " Generative AI can make mistakes"
656+ placeholder : " Ask a question..."
657+ new : " New Question"
652658 sentiments :
653659 dashboard :
654660 title : " Sentiment"
You can’t perform that action at this time.
0 commit comments