From 65946cbcf16e5852083a2832bf0cb584b3362dcd Mon Sep 17 00:00:00 2001 From: Igor Kulman Date: Sat, 13 Jan 2024 12:05:40 +0100 Subject: [PATCH] =?UTF-8?q?=F0=9F=94=A7=20Update=20Danger=20removing=20the?= =?UTF-8?q?=20custom=20missing=20strings=20checking?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- Dangerfile | 24 +----------------------- 1 file changed, 1 insertion(+), 23 deletions(-) diff --git a/Dangerfile b/Dangerfile index 8213bba..b5afc6b 100644 --- a/Dangerfile +++ b/Dangerfile @@ -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` \ No newline at end of file +end \ No newline at end of file