update readme and other texts

This commit is contained in:
Helium314 2024-01-05 11:14:39 +01:00
parent b98a208b69
commit 615d1711b5
6 changed files with 28 additions and 41 deletions

View file

@ -47,7 +47,7 @@ class TextKeyData(
return params.mLocaleKeyTexts.currencyKey
.let { it.first.toTextKey(it.second.toList(), labelFlags = Key.LABEL_FLAGS_FOLLOW_KEY_LETTER_RATIO) } // the flag is to match old parser, but why for main currency key, but not for others?
val n = label.substringAfter("$$$").toIntOrNull()
if (n != null && n <= 4)
if (n != null && n <= 4 && n > 0)
return params.mLocaleKeyTexts.currencyKey.second[n - 1].toTextKey()
}
return this