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 28, 2024
1 parent 9e19ce2 commit 08b429e
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 08b429e

Please sign in to comment.