lib/stringex/localization/backend/internal.rb in stringex-2.0.3 vs lib/stringex/localization/backend/internal.rb in stringex-2.0.4
- old
+ new
@@ -1,9 +1,9 @@
module Stringex
module Localization
module Backend
- module Internal
+ class Internal < Base
DEFAULT_LOCALE = :en
class << self
def locale
@locale || default_locale
@@ -37,13 +37,9 @@
self.translations[locale.to_sym][scope.to_sym] = Hash[data.map { |k, v| [k.to_sym, v] }] # Symbolize keys
end
def initial_translation(scope, key, locale)
translations[locale][scope][key.to_sym]
- end
-
- def reset!
- @translations = @locale = @default_locale = nil
end
end
end
end
end
\ No newline at end of file