reLoadTranslations method

void reLoadTranslations(
  1. BuildContext context
)

Reloads all included translations and requests a UI update.

context is the build context, used to mark the widget tree as needing a rebuild.

Implementation

void reLoadTranslations(BuildContext context) {
  loadTranslations(currentLocale, loader.includedTranslations, context);
  (context as Element).markNeedsBuild();
  logger.log("Reloaded Translations: ${loader.includedTranslations}",
      type: LogType.info);
}