angelolloqui/AGi18n

Swift file genstring

mihriminaz opened this issue · 1 comments

// Execute genstrings appending results
puts "Executing genstrings -a -o #{dir} **/*.{h,m,mm}"
source_files = Dir["*/.{h,m,mm}"]
genstrings -a -littleEndian -o #{dir} "#{source_files.join('" "')}"

.swift should be included, otherwise genstrings don't include the localisation for swift files..

//Execute genstrings appending results
puts "Executing genstrings -a -o #{dir} **/*.{h,m,mm, swift}"
source_files = Dir["*/.{h,m,mm, .swift}"]
genstrings -a -littleEndian -o #{dir} "#{source_files.join('" "')}"

Good catch! thanks, just added it