Skip to content

Commit

Permalink
disable linter for I18n gymnastics
Browse files Browse the repository at this point in the history
  • Loading branch information
glaszig committed May 14, 2024
1 parent 9b6385b commit 3f54e4c
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions lib/ice_cube/i18n.rb
Original file line number Diff line number Diff line change
Expand Up @@ -3,11 +3,13 @@
module IceCube
LOCALES_PATH = File.expand_path(File.join("..", "..", "config", "locales"), __dir__)

# rubocop:disable Naming/ConstantName
I18n = begin
require "i18n"
::I18n.load_path += Dir[File.join(LOCALES_PATH, "*.yml")]
::I18n
rescue LoadError
NullI18n
end
# rubocop:enable Naming/ConstantName
end

0 comments on commit 3f54e4c

Please sign in to comment.