Skip to content

Commit

Permalink
🔧 Update Danger removing the custom missing strings checking
Browse files Browse the repository at this point in the history
  • Loading branch information
igorkulman committed Jan 13, 2024
1 parent a9b0c92 commit 5453aa2
Showing 1 changed file with 1 addition and 23 deletions.
24 changes: 1 addition & 23 deletions Dangerfile
Original file line number Diff line number Diff line change
Expand Up @@ -54,26 +54,4 @@ Dir.chdir "Sources" do

markdown message
end
end

# Checking for missing strings
`support/verify-string-files -master Sources/iOSSampleApp/Resources/Base.lproj/Localizable.strings -warning-level warning &> verify-string-files.txt`
result = File.readlines('verify-string-files.txt')
if result.count > 0
message = "### Missing translations\n\n".dup

message << "Language | Key | \n"
message << "| --- | ----- \n"
result.each { |line|
index = line.index(": warning:") + 11
line = line[index...-1]
lang = line.rpartition(' ').last.sub(".lproj", "").upcase()
if lang == "SK"
lang = "🇸🇰 SK"
end
key = line.rpartition(' ').first.sub("is missing in", "")
message << "#{lang} | #{key} \n"
}
markdown message
end
`rm verify-string-files.txt`
end

0 comments on commit 5453aa2

Please sign in to comment.