We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 0c67035 commit d9de3efCopy full SHA for d9de3ef
src/main/kotlin/translations/index/providers.kt
@@ -56,7 +56,11 @@ object JsonTranslationProvider : TranslationProvider {
56
return null
57
}
58
val obj = json.asJsonObject
59
- return TranslationIndexEntry(domain, obj.entrySet().map { Translation(it.key, it.value.asString) })
+ val translations = obj.entrySet().asSequence()
60
+ .filter { it.value.isJsonPrimitive }
61
+ .map { Translation(it.key, it.value.asString) }
62
+ .toList()
63
+ return TranslationIndexEntry(domain, translations)
64
65
66
override fun findElements(project: Project, file: VirtualFile, key: String): List<JsonProperty> {
0 commit comments