Skip to content

FIX: Missing translations error #598

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 1 commit into from
Oct 2, 2024
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 3 additions & 3 deletions app/controllers/comments_controller.rb
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand All @@ -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 }
Expand All @@ -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
Expand Down
Loading