Attribute Localizations delivers a prepeard localizations labels for most used attributes.

Getting Started

  1. Add to your dependencies:
dependencies:
  attribute_localization: ^1.0.0
  1. Add delegates in your MaterialApp widget:
MaterialApp(
	// ...
	localizationsDelegates: [
		AttributeLocalizations.delegate,
	],
	supportedLocales: [
		const Locale('en'),
		const Locale('ar'),
		/// add other locales for now (en, ar)
	],
	// ...
)
  1. Use it:
/// ...

TextFormField(
	decoration: InputDecoration(
		labelText: AttributeLocalizations.of(context).name,
        // figer out more, AttributeLocalizations.of(context).email, etc..
	),
)

/// ..