lib/traco.rb in traco-1.3.0 vs lib/traco.rb in traco-2.0.0

- old
+ new

@@ -1,4 +1,11 @@ require "traco/version" require "traco/translates" require "traco/class_methods" require "traco/localized_reader" + +module Traco + # E.g. :sv -> :sv, :"pt-BR" -> :pt_br + def self.locale_suffix(locale) + locale.to_s.downcase.sub("-", "_").to_sym + end +end