cara menerjemahkan kode bahasa Inggris ke berbagai bahasa di file .dart
import 'package:i18n_extension/i18n_extension.dart';
extension Localization on String {
//en,fr,es,de
static var _t = Translations("en") +
{
"en": "Type here",
"te": "",
"ta": "",
"ml": "",
"kn": "",
"hi": ""
} +
{
"en": "Welcome",
"te": "",
"ta": "",
"ml": "",
"kn": "",
"hi": ""
} +
{
"en": "Something wrong",
"te": "",
"ta": "",
"ml": "",
"kn": "",
"hi": ""
} +
{
"en": "New Message from",
"te": "",
"ta": "",
"ml": "",
"kn": "",
"hi": ""
};
String get i18n => localize(this, _t);
String fill(List<Object> params) => localizeFill(this, params);
}