lib/active_record_translated/translated.rb
def translations_for_locales(*args)
        result = []
        args.each do |locale|
          result.push(translation(locale) || translations.build(locale: locale))
        end
        result
      end
# For usage in Rails forms to always have all required translations (new and persisted) together with
# new records for missing ones.
For usage in Rails forms to always have all required translations (new and persisted) together with
new records for missing ones.
For usage in Rails forms to always have all required translations ( new and persisted ) together with new records for missing ones .
def translations_for_locales(*args)
        result = []
        args.each do |locale|
          result.push(translation(locale) || translations.build(locale: locale))
        end
        result
      end
def translations_for_locales ( * args ) result = [ ] args . each do | locale | result . push ( translation ( locale ) || translations . build ( locale : locale ) ) end result end
For usage in Rails forms to always have all required translations (new and persisted) together with
new records for missing ones.
For usage in Rails forms to always have all required translations ( new and persisted ) together with new records for missing ones .
args