merge "Add LibreTranslate translations"

Changelog-Added: LibreTranslate note translations
This commit is contained in:
tyiu authored and William Casarin committed 2023-01-30 15:24:08 -08:00
commit 7d410bff34
11 files changed
+390 -5

No files matched your search

+5 -1
View File
@@ -103,11 +103,15 @@ class NostrEvent: Codable, Identifiable, CustomStringConvertible, Equatable, Has
if let bs = _blocks {
return bs
}
let blocks = parse_mentions(content: self.get_content(privkey), tags: self.tags)
let blocks = get_blocks(content: self.get_content(privkey))
self._blocks = blocks
return blocks
}
func get_blocks(content: String) -> [Block] {
return parse_mentions(content: content, tags: self.tags)
}
lazy var inner_event: NostrEvent? = {
// don't try to deserialize an inner event if we know there won't be one
if self.known_kind == .boost {