Unverified Commit 9a957e41 authored by Ian Hickson's avatar Ian Hickson Committed by GitHub

Remove hack for support of old Hebrew language code. (#13309)

See https://github.com/flutter/flutter/issues/11907 and https://github.com/flutter/engine/pull/4411
parent c085e474
......@@ -319,21 +319,6 @@ class _WidgetsAppState extends State<WidgetsApp> implements WidgetsBindingObserv
Locale _locale;
Locale _resolveLocale(Locale newLocale, Iterable<Locale> supportedLocales) {
// Android devices (Java really) report 3 deprecated language codes, see
// http://bugs.java.com/bugdatabase/view_bug.do?bug_id=4140555
// and https://developer.android.com/reference/java/util/Locale.html
switch (newLocale.languageCode) {
case 'iw':
newLocale = new Locale('he', newLocale.countryCode); // Hebrew
break;
case 'ji':
newLocale = new Locale('yi', newLocale.countryCode); // Yiddish
break;
case 'in':
newLocale = new Locale('id', newLocale.countryCode); // Indonesian
break;
}
if (widget.localeResolutionCallback != null) {
final Locale locale = widget.localeResolutionCallback(newLocale, widget.supportedLocales);
if (locale != null)
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment