From 5ccdd88747e07ab77c7b4d8564f082a934dfd3a9 Mon Sep 17 00:00:00 2001 From: yheuhtozr <84892012+yheuhtozr@users.noreply.github.com> Date: Sun, 5 Mar 2023 22:17:31 +0900 Subject: [PATCH] make sure I18n.fallbacks updates itself --- lib/i18n/locale/fallbacks.rb | 1 + 1 file changed, 1 insertion(+) diff --git a/lib/i18n/locale/fallbacks.rb b/lib/i18n/locale/fallbacks.rb index e30acc43..a8f8b3e0 100644 --- a/lib/i18n/locale/fallbacks.rb +++ b/lib/i18n/locale/fallbacks.rb @@ -74,6 +74,7 @@ def map(*args, &block) @map[from] << _to.to_sym end end + replace @map else @map.map(*args, &block) end