You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
var f = DateFormat("MMM");
String formattedDate = f.format(d);
return formattedDate.i18n; <-- this not able to find the translation
looks like above line is not translating because my Locale("en") is not found it is trying to find en_us
I don't have access to context yet when trying to translate, because that's being call at main() thus instead of calling
I18n.of(context).locale = const Locale("en");
I was trying to call
I18n.define(const Locale("en"));
but that marked for testing
///This should be used in tests ONLY. The real app, you should
/// instead do: `I18n.of(context).locale = Locale("en", "US");
this works, but I'm worry I'm doing something not correct, or that method gets deprecate/remove
The text was updated successfully, but these errors were encountered:
looks like above line is not translating because my Locale("en") is not found it is trying to find en_us
I don't have access to context yet when trying to translate, because that's being call at main() thus instead of calling
I18n.of(context).locale = const Locale("en");
I was trying to call
I18n.define(const Locale("en"));
but that marked for testing
///This should be used in tests ONLY. The real app, you should
/// instead do: `I18n.of(context).locale = Locale("en", "US");
this works, but I'm worry I'm doing something not correct, or that method gets deprecate/remove
The text was updated successfully, but these errors were encountered: