I am having some issues setting up translation functions for localization in my Dart application. I currently have 1 class called basics.dart, and all classes have access to its functions. Here is the function that I want translated:
basics.dart
String loadingMessage() {
return Intl.message(
"Tickets are currently loading",
name: "loadingMessage",
args: [],
desc: "Tickets are currently loading");
}
ticket_list.dart
_p.text = loadingMessage();//'Currently loading the tickets';
This returns the message in English correctly. Now how do I set it up so I can get French translations as well?