Last updated:
0 purchases
json translate
Features #
Translate json text
Usage #
import 'package:json_translate/translator.dart';
...
return MaterialApp(
localizationsDelegates: const [
Translator.delegate,
...
],
...
}
@override
Widget build(BuildContext context) {
var T = Translator.of(context)!;
return Text(T.tr('{"en": "text", "zh":"文本"}')
}
copied to clipboard
For personal and professional use. You cannot resell or redistribute these repositories in their original state.
There are no reviews.