Better ruby3 forwarding for localization and have a default locale of en

This commit is contained in:
2025-09-25 17:47:17 -05:00
parent 557763877c
commit 647cc38bad
2 changed files with 3 additions and 3 deletions
+2 -2
View File
@@ -15,9 +15,9 @@ module Cmtool
end end
# overwrite i18n l, to handle nil values # overwrite i18n l, to handle nil values
def l(*args) def l(*args, **options)
return '' unless args.first return '' unless args.first
super(*args) super(*args, **options)
end end
def site_title def site_title
+1 -1
View File
@@ -66,7 +66,7 @@ module Cmtool
end end
def locales def locales
Rails.configuration.i18n.available_locales.presence || [] Rails.configuration.i18n.available_locales.presence || [:en]
end end
def default_locale def default_locale