FIX: Amend incorrect translation keys (#639)

I am enabling config.i18n.raise_on_missing_translations in core. This revealed a couple of broken translations in the plugin.
This commit is contained in:
Ted Johansson 2024-05-24 20:00:36 +08:00 committed by GitHub
parent f8381c0e8a
commit d8a0f44fed
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
2 changed files with 6 additions and 3 deletions

View File

@ -19,7 +19,8 @@ module DiscourseAi
if shared_conversation.persisted?
render json: success_json.merge(share_key: shared_conversation.share_key)
else
render json: failed_json.merge(error: I18n.t("discourse_ai.share_ai.failed_to_share")),
render json:
failed_json.merge(error: I18n.t("discourse_ai.share_ai.errors.failed_to_share")),
status: :unprocessable_entity
end
end
@ -30,7 +31,9 @@ module DiscourseAi
SharedAiConversation.destroy_conversation(@shared_conversation)
render json:
success_json.merge(message: I18n.t("discourse_ai.share_ai.conversation_deleted"))
success_json.merge(
message: I18n.t("discourse_ai.share_ai.errors.conversation_deleted"),
)
end
def show

View File

@ -245,7 +245,7 @@ en:
search: "Search all public topics on the forum"
tags: "List all tags on the forum"
time: "Find time in various time zones"
summarize: "Summarize a topic"
summary: "Summarize a topic"
image: "Generate image using Stable Diffusion"
google: "Search Google for a query"
read: "Read public topic on the forum"