localizable_annotation

Last updated:

0 purchases

localizable_annotation Image
localizable_annotation Images
Add to Cart

Description:

localizable annotation

localizable_annotation #
An annotation for localizable, so Localization can be created automatically.
Required by localizable package.
Getting Started #
Add localizable_annotation as dependency on your project
dependencies:
localization_annotation: ^0.0.3
copied to clipboard
Then you can now annotate your Translation class like this
import 'package:localizable_annotation/localizable_annotation.dart';

@Localizable(
className: "AppLocalization",
)
class AppTranslations {
static const Map<String, Map<String, String>> translations = {
'en': {
'title': 'Flutter Demo',
'description': 'A Flutter Demo',
'greetings': 'Hello {name}!',
},
'id': {
'title': 'Demo Flutter',
'description': 'Sebuah Demo Flutter',
'greetings': 'Halo {name}!',
},
};

static const String defaultLocale = 'en';
}
copied to clipboard

License:

For personal and professional use. You cannot resell or redistribute these repositories in their original state.

Files In This Product:

Customer Reviews

There are no reviews.