From 3e1f7226acddffc82b102cb1799f0dc1148a79c0 Mon Sep 17 00:00:00 2001 From: Ramez Noshy Date: Wed, 2 Oct 2024 14:42:20 +0300 Subject: [PATCH] fix: missing translation error (#598) --- app/controllers/comments_controller.rb | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/app/controllers/comments_controller.rb b/app/controllers/comments_controller.rb index d9b9934fe..1a534a559 100644 --- a/app/controllers/comments_controller.rb +++ b/app/controllers/comments_controller.rb @@ -30,7 +30,7 @@ def create if turbo_frame_request? format.html else - format.html { redirect_to @comment, notice: I18n.t("Comment was successfully created.") } + format.html { redirect_to @comment, notice: I18n.t(:comment_was_successfully_created) } end format.json { render :show, status: :created, location: @comment } else @@ -49,7 +49,7 @@ def create def update respond_to do |format| if @comment.update(comment_params) - format.html { redirect_to @comment, notice: I18n.t("comment_was_successfully_updated") } + format.html { redirect_to @comment, notice: I18n.t(:comment_was_successfully_updated) } format.json { render :show, status: :ok, location: @comment } else format.html { render :edit } @@ -63,7 +63,7 @@ def update def destroy @comment.destroy! respond_to do |format| - format.html { redirect_to comments_url, notice: I18n.t("comment_was_successfully_destroyed") } + format.html { redirect_to comments_url, notice: I18n.t(:comment_was_successfully_destroyed) } format.json { head :no_content } end end