LocalizationManager constructor

LocalizationManager({
  1. required List<SupportedLocale> supportedLocales,
  2. required Locale initialLocale,
  3. required List<String> initialTranslations,
  4. required bool debugMode,
})

Constructs a localization manager with initial settings.

Implementation

LocalizationManager({
  required this.supportedLocales,
  required Locale initialLocale,
  required List<String> initialTranslations,
  required bool debugMode,
})  : currentLocale = initialLocale,
      logger = Logger(debugMode: debugMode) {
  logger.log("Initializing Localization Manager");
  loadInitialTranslations(initialLocale, initialTranslations.toSet());
}