i18n_checker 0.2.0 → 0.2.1
Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 9607a3e59428a3dfa046b5a42d494cc3a72ca793
|
4
|
+
data.tar.gz: 5ef70c86648059fee29f83c8bac3f645b2b72bfd
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 3fa10307135742d472e83c7bbc2f87d18bfc7199dac3c112e2f34c5961a8cc28d6b2a3bf6bad4317f9ec8ea067c4af5cea619892c6563878e4a2856c3dfe427a
|
7
|
+
data.tar.gz: 8c98e0689824e94298fd57d3f6bd7e1c68df399e3db61631f0203cb24823719d795c8298789263b1c763189d52578e39f98987d53e0386ba53d382043884e6d8
|
data/Gemfile.lock
CHANGED
@@ -3,7 +3,20 @@ require 'colorator'
|
|
3
3
|
module I18nChecker
|
4
4
|
module Reporter
|
5
5
|
class DefaultReporter < DetectResultReporter
|
6
|
+
CHECK_COMPLETED = 'Translation text checking is complete.'
|
7
|
+
|
6
8
|
def report(result)
|
9
|
+
return passed if result.empty?
|
10
|
+
failed(result)
|
11
|
+
end
|
12
|
+
|
13
|
+
def passed
|
14
|
+
logger.info CHECK_COMPLETED.green
|
15
|
+
logger.info 'There was no translated text that can not be referenced'.green
|
16
|
+
end
|
17
|
+
|
18
|
+
def failed(result)
|
19
|
+
logger.info CHECK_COMPLETED.red
|
7
20
|
logger.info 'There are settings where translated text can not be found'.red
|
8
21
|
result.locale_texts.each do |locale_text|
|
9
22
|
logger.info " #{locale_text.file_name.cyan}"
|
data/lib/i18n_checker/version.rb
CHANGED