From 997953565f4ba5863c270f16d948b184e15275f7 Mon Sep 17 00:00:00 2001 From: Andreas Nedbal Date: Tue, 19 Mar 2024 22:04:06 +0100 Subject: [PATCH] Localize uniqueness validation message Otherwise it'd say "Parent already taken" instead of "Target already smiled" --- config/locales/activerecord.en.yml | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/config/locales/activerecord.en.yml b/config/locales/activerecord.en.yml index d7a879ae..30bb48f4 100644 --- a/config/locales/activerecord.en.yml +++ b/config/locales/activerecord.en.yml @@ -54,6 +54,8 @@ en: success_text: "Success text colour" warning_color: "Warning colour" warning_text: "Warning text colour" + reaction: + parent_id: "Target" user: created_at: "Account created at" current_password: "Current password" @@ -107,6 +109,11 @@ en: errors: messages: invalid_url: "does not look like a valid URL" + models: + reaction: + attributes: + parent_id: + taken: "already smiled" helpers: submit: user: