I'm using Firebase ML Kit Translate to translate some text from Japanese to English.
I'm just using the example code they have in their documentation:
func translate (input: String) {
print(input)
translator.translate(input) { translatedText, error in
guard error == nil, let translatedText = translatedText else { return }
self.output = translatedText
print(self.output)
return
}
When I input Japanese text, I notice all the newline characters are ignored and the English translation is in one block of text. Is there a setting to enable newlines or is this a bug?