Sha256: db77980226d25e1ab6305c718abb42f19fef1bb364bc74540e04313aed87a34e
Contents?: true
Size: 276 Bytes
Versions: 1
Compression:
Stored size: 276 Bytes
Contents
module GroupingHelper # Groups all translations by language in array def group_by_language(array) array.group_by { |el| el.partition('.').first } end # Gets all paths from keys array def get_translation_key_paths(array) array.map { |el| el.last } end end
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
kakimasu-1.0.0 | app/helpers/grouping_helper.rb |