Back to results for “Responsive UI”
Flutter › Internationalization & Localization (i18n)

What is the difference between internationalization and localization, and how does Flutter's own official flutter_localizations package genuinely support both of these important related concepts?

Beginner

Answer

Internationalization, often abbreviated as i18n, refers to genuinely designing and properly structuring your app so it can potentially support several separate different languages and various regional formatting conventions, while localization, often abbreviated as l10n, refers to the actual real specific process of genuinely translating and properly adapting your app's own actual content for one genuinely particular specific language or region, and Flutter's own official flutter_localizations package provides the genuinely essential underlying foundation for both, including proper built in support for translating your app's own text and correctly formatting dates, numbers, and currency values appropriately according to a given user's own specific chosen locale.
MaterialApp(
  localizationsDelegates: [
    AppLocalizations.delegate,
    GlobalMaterialLocalizations.delegate,
  ],
  supportedLocales: [Locale('en'), Locale('es'), Locale('fr')],
)
Real-world example A global e commerce app properly supports English, Spanish, and French, letting a given user's own device language automatically and correctly determine which specific language that particular app's own actual displayed content should genuinely appear in.

Common follow-ups: How does Flutter actually genuinely determine which particular specific locale a given user's own device is currently actually genuinely set to?;What genuinely happens if a user's own particular device locale is not actually included within your app's own specific list of supported locales?