updateLocale method
Updates the current locale for the app.
Provide the locale
you wish to use like Locale("es")
The locale needs to also exist within your /lang directory
Implementation
updateLocale(BuildContext context, Locale locale) {
this.locale = locale;
reloadLocale(context, locale);
}