fast_i18n v5.5.0
Namespaces
Split your translations into different files. Each file represents a namespace:
i18n/
widgets/
- widgets.i18n.json
- widgets_fr.i18n.json
dialogs/
- dialogs.i18n.json
- dialogs_fr.i18n.json
Interfaces
Create common super classes for different nodes. This allows for more type safety. Instead of List<dynamic>
, we can have List<PageData>
{
"pages": [
{
"title": "E2E encryption",
"content": "Your data is safe!"
},
{
"title": "Sync",
"content": "Synchronize all your devices!"
}
]
}
With the generated mixin:
mixin PageData {
String get title;
String get content;
}
See updated README for further information about those features.