loadInitialTranslations method

Future<void> loadInitialTranslations(
  1. Locale locale,
  2. Set<String> initialTranslations
)

Loads initial translations for the given locale.

locale is the locale for which to load translations. initialTranslations is a set of translation keys to load initially.

Implementation

Future<void> loadInitialTranslations(
    Locale locale, Set<String> initialTranslations) async {
  loadTranslations(locale, initialTranslations);
  logger.log(
      "Finished Initializing Localization PRO with translations: "
      "$initialTranslations and Locale: $currentLocale",
      type: LogType.init);
}