Removes the tag from the autotranslation index to avoid translating the name itself.

This commit is contained in:
Vitor Pamplona
2023-03-24 10:03:56 -04:00
parent eed62c36b9
commit 1a923cefaf
2 changed files with 10 additions and 1 deletions

View File

@@ -77,4 +77,13 @@ class TranslationsTest {
"pt"
)
}
@Test
fun testNostrEvents() {
assertTranslateContains(
"nostr:nevent1qqs0tsw8hjacs4fppgdg7f5yhgwwfkyua4xcs3re9wwkpkk2qeu6mhql22rcy",
"sure, nostr:nevent1qqs0tsw8hjacs4fppgdg7f5yhgwwfkyua4xcs3re9wwkpkk2qeu6mhql22rcy",
"en"
)
}
}

View File

@@ -102,7 +102,7 @@ object LanguageTranslatorService {
while (matcher.find()) {
try {
val tag = matcher.group()
val short = "Amethysttagindexer$counter"
val short = "Amethystmindexer$counter"
returningList.put(short, tag)
} catch (e: Exception) {
}