From 68e6e61141290bec5214e57dae4183a2e7c268f1 Mon Sep 17 00:00:00 2001 From: Ben Halpern Date: Thu, 14 Oct 2021 12:15:14 -0400 Subject: [PATCH] Add bin script to find untranslated text in erb files (#15072) --- bin/untranslated_erb | 52 ++++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 52 insertions(+) create mode 100755 bin/untranslated_erb diff --git a/bin/untranslated_erb b/bin/untranslated_erb new file mode 100755 index 000000000..850586925 --- /dev/null +++ b/bin/untranslated_erb @@ -0,0 +1,52 @@ +#!/usr/bin/env ruby +class I18nExtractor + ERB_TAG = /<%(.*?)%>/ + HTML_TAG = /<(.*?)>/ + SEPERATOR = '_@@@_' + SKIP_TAGS = [[/