diff --git a/app/assets/javascripts/discourse/app/controllers/review-index.js b/app/assets/javascripts/discourse/app/controllers/review-index.js index e301a3cfeeb..acd369cd2fa 100644 --- a/app/assets/javascripts/discourse/app/controllers/review-index.js +++ b/app/assets/javascripts/discourse/app/controllers/review-index.js @@ -42,9 +42,11 @@ export default Controller.extend({ @discourseComputed("reviewableTypes") allTypes() { return (this.reviewableTypes || []).map((type) => { + const translationKey = underscore(type).replace(/[^\w]+/g, "_"); + return { id: type, - name: I18n.t(`review.types.${underscore(type)}.title`), + name: I18n.t(`review.types.${translationKey}.title`), }; }); }, diff --git a/plugins/chat/config/locales/client.en.yml b/plugins/chat/config/locales/client.en.yml index 657353d8405..dc8bae74cb2 100644 --- a/plugins/chat/config/locales/client.en.yml +++ b/plugins/chat/config/locales/client.en.yml @@ -585,9 +585,8 @@ en: transcript: view: "View previous messages transcript" types: - reviewable_chat_message: + chat_reviewable_message: title: "Flagged Chat Message" - flagged_by: "Flagged By" keyboard_shortcuts_help: chat: title: "Chat"