Adds conditionals to most of the uniques currently in the enum (#5270)

* Moved uniques to their own folder

* Added support for conditionals to most of the uniques in the current enum

* Deprecation > removal, of course

* Fixed tests & added `.removeConditionals` before checking for placeholders
This commit is contained in:
Xander Lenstra
2021-09-19 17:43:32 +02:00
committed by GitHub
parent 62e3dbe014
commit f47f427b05
11 changed files with 83 additions and 53 deletions

View File

@ -110,7 +110,7 @@ class TranslationTests {
fun allPlaceholderKeysMatchEntry() {
var allPlaceholderKeysMatchEntry = true
for (key in translations.keys) {
if (!key.contains('[')) continue
if (!key.contains('[') || key.contains('<')) continue
val translationEntry = translations[key]!!.entry
val keyFromEntry = translationEntry.replace(squareBraceRegex, "[]")
if (key != keyFromEntry) {