Core Concepts
Localization
Enable localization for Forui widgets across 115 languages.
Forui supports all 115 languages that Flutter natively does.
To enable localization for Forui widgets, add the FLocalizations.delegate in your call to the constructor for CupertinoApp, MaterialApp, or WidgetsApp. Afterwards, add the locales supported by your application.
1MaterialApp(2 localizationsDelegates: const [3 FLocalizations.delegate, // Add this line4 ],5 supportedLocales: const [6 // Add locales supported by your application here.7 ],8 builder: (context, child) =>9 FTheme(data: FThemes.neutral.light, child: child!),10 home: const FScaffold(child: Placeholder()),11);12The FLocalizations class also provides auto-generated localizationsDelegates and supportedLocales lists. You can use
these instead of providing them manually if your application doesn't have any other localization messages.
1MaterialApp(2 localizationsDelegates: FLocalizations.localizationsDelegates,3 supportedLocales: FLocalizations.supportedLocales,4 builder: (context, child) =>5 FTheme(data: FThemes.neutral.light, child: child!),6 home: const FScaffold(child: Placeholder()),7);8Please see Internationalizing Flutter apps for more information.