lib/g11n/translator.rb in g11n-0.0.2 vs lib/g11n/translator.rb in g11n-0.0.3

- old
+ new

@@ -13,9 +13,14 @@ raise NoTranslationAvailable, "There is no translation file available for the '#{the_locale}' locale, check the tranlations source directory configuration" end @locale = the_locale end + # @return [Symbol] the current locale + def locale + @locale + end + # Sets the path where translations will be looked for def translations_path= the_path @translations_path = the_path end