This commit is contained in:
Yair Morgenstern
2020-03-30 22:54:40 +03:00
parent a05dc1806b
commit 62e78dec1c
3 changed files with 22 additions and 3 deletions

View File

@ -162,7 +162,7 @@ class TranslationTests {
for (key in translations.keys) {
val placeholders = placeholderPattern.findAll(key).map { it.value }.toList()
for (language in languages) {
placeholders.forEach { placeholder ->
for (placeholder in placeholders) {
if (!translations.get(key, language).contains(placeholder)) {
allTranslationsHaveCorrectPlaceholders = false
println("Placeholder `$placeholder` not found in `$language` for key `$key`")