mirror of
https://github.com/discourse/discourse-ai.git
synced 2025-03-06 09:20:14 +00:00
translate some stuff
This commit is contained in:
parent
9df7f50ebc
commit
f05b0ec4c7
@ -1,7 +1,6 @@
|
|||||||
import Component from "@glimmer/component";
|
import Component from "@glimmer/component";
|
||||||
import { service } from "@ember/service";
|
import { service } from "@ember/service";
|
||||||
import DButton from "discourse/components/d-button";
|
import DButton from "discourse/components/d-button";
|
||||||
import { i18n } from "discourse-i18n";
|
|
||||||
|
|
||||||
export default class AiBotSidebarNewConversation extends Component {
|
export default class AiBotSidebarNewConversation extends Component {
|
||||||
@service router;
|
@service router;
|
||||||
@ -14,7 +13,7 @@ export default class AiBotSidebarNewConversation extends Component {
|
|||||||
{{#if this.show}}
|
{{#if this.show}}
|
||||||
<DButton
|
<DButton
|
||||||
@route="/discourse-ai/ai-bot/conversations"
|
@route="/discourse-ai/ai-bot/conversations"
|
||||||
@translatedLabel="TODO: new_question"
|
@label="discourse_ai.ai_bot.conversations.new"
|
||||||
@icon="plus"
|
@icon="plus"
|
||||||
class="ai-new-question-button btn-default"
|
class="ai-new-question-button btn-default"
|
||||||
/>
|
/>
|
||||||
|
@ -1,25 +1,25 @@
|
|||||||
{{body-class "discourse-ai-bot-conversations-page"}}
|
{{body-class "discourse-ai-bot-conversations-page"}}
|
||||||
|
|
||||||
<div class="custom-homepage__content-wrapper">
|
<div class="custom-homepage__content-wrapper">
|
||||||
<h1>Ask a question</h1>
|
<h1>{{i18n "discourse_ai.ai_bot.conversations.header"}}</h1>
|
||||||
<div class="custom-homepage__input-wrapper">
|
<div class="custom-homepage__input-wrapper">
|
||||||
<textarea
|
<textarea
|
||||||
{{didInsert this.initializeTextarea}}
|
{{didInsert this.initializeTextarea}}
|
||||||
{{on "input" this.updateInputValue}}
|
{{on "input" this.updateInputValue}}
|
||||||
{{on "keydown" this.handleKeyDown}}
|
{{on "keydown" this.handleKeyDown}}
|
||||||
id="custom-homepage-input"
|
id="custom-homepage-input"
|
||||||
placeholder="placeholder (todo)"
|
placeholder={{i18n "discourse_ai.ai_bot.conversations.placeholder"}}
|
||||||
minlength="10"
|
minlength="10"
|
||||||
rows="1"
|
rows="1"
|
||||||
/>
|
/>
|
||||||
<DButton
|
<DButton
|
||||||
@action={{this.aiBotConversationsHiddenSubmit.submitToBot}}
|
@action={{this.aiBotConversationsHiddenSubmit.submitToBot}}
|
||||||
@icon="paper-plane"
|
@icon="paper-plane"
|
||||||
@translatedTitle="Submit (todo)"
|
@title="discourse_ai.ai_bot.conversations.header"
|
||||||
class="ai-bot-button btn-primary"
|
class="ai-bot-button btn-primary"
|
||||||
/>
|
/>
|
||||||
</div>
|
</div>
|
||||||
<p class="ai-disclaimer">
|
<p class="ai-disclaimer">
|
||||||
TODO DISCLAIMER
|
{{i18n "discourse_ai.ai_bot.conversations.disclaimer"}}
|
||||||
</p>
|
</p>
|
||||||
</div>
|
</div>
|
@ -649,6 +649,12 @@ en:
|
|||||||
5-pro: "Gemini"
|
5-pro: "Gemini"
|
||||||
mixtral-8x7B-Instruct-V0:
|
mixtral-8x7B-Instruct-V0:
|
||||||
"1": "Mixtral-8x7B V0.1"
|
"1": "Mixtral-8x7B V0.1"
|
||||||
|
conversations:
|
||||||
|
header: "What can I help with?"
|
||||||
|
submit: "Submit question"
|
||||||
|
disclaimer: "Generative AI can make mistakes"
|
||||||
|
placeholder: "Ask a question..."
|
||||||
|
new: "New Question"
|
||||||
sentiments:
|
sentiments:
|
||||||
dashboard:
|
dashboard:
|
||||||
title: "Sentiment"
|
title: "Sentiment"
|
||||||
|
Loading…
x
Reference in New Issue
Block a user