Here is my code.
Faker faker = new Faker(new Locale("en-GB"));
String title = faker.lorem().sentence(3);
System.out.println("title = " + title);
The output is as below.
title = Ut at quis corrupti explicabo.
I checked in google translate. It is in the Latin language. How can I get the sentence in the English language?
To translate Latin (or any other language) to English you would obviously need a translator as Java-Faker doesn't do this. The easiest (I should think) would be to snag the translation from the internet.
I had the following method in my archives but I have no idea who wrote it. It does work but utilizes the WhatsApp's WhatsMate WA Gateway so, internet access is a requirement. I'm not really sure this is necessarily a good thing or not but here is a runnable demo in any case: