[l10n] Adds changes to localized_mod for new locales.

This makes localized_mod support the newly-imported
locales.

Bug: 8907
Change-Id: Ie4c2b2636c7e5f27fd12b4ebea535bf7deafc833
diff --git a/examples/ui/localized_mod/lib/localization/messages_all.dart b/examples/ui/localized_mod/lib/localization/messages_all.dart
index ec428cb..0fc8910 100755
--- a/examples/ui/localized_mod/lib/localization/messages_all.dart
+++ b/examples/ui/localized_mod/lib/localization/messages_all.dart
@@ -12,6 +12,7 @@
 import 'messages_ar-XB.dart' deferred as messages_ar_xb;
 import 'messages_en-XA.dart' deferred as messages_en_xa;
 import 'messages_en-XC.dart' deferred as messages_en_xc;
+import 'messages_he.dart' deferred as messages_he;
 import 'messages_sr-Latn.dart' deferred as messages_sr_latn;
 import 'messages_sr.dart' deferred as messages_sr;
 
@@ -21,6 +22,7 @@
   'en_XA': messages_en_xa.loadLibrary,
   'en_XC': messages_en_xc.loadLibrary,
   'sr_Latn': messages_sr_latn.loadLibrary,
+  'he': messages_he.loadLibrary,
   'sr': messages_sr.loadLibrary,
 };
 
@@ -36,6 +38,8 @@
       return messages_sr_latn.messages;
     case 'sr':
       return messages_sr.messages;
+    case 'he':
+      return messages_he.messages;
     default:
       return null;
   }
diff --git a/examples/ui/localized_mod/lib/supported_locales.dart b/examples/ui/localized_mod/lib/supported_locales.dart
index 75611db..a6bed55 100644
--- a/examples/ui/localized_mod/lib/supported_locales.dart
+++ b/examples/ui/localized_mod/lib/supported_locales.dart
@@ -7,9 +7,15 @@
 // Ideally, this file should be generated at build time from a build variable.
 const List<Locale> supportedLocales = <Locale>[
   Locale('en'),
+  Locale('ar', 'XB'),
+  Locale('en', 'XA'),
+  Locale('en', 'XC'),
   // Note: There is no messages_es.dart checked in. Creating this file is
   // left as an exercise for those working on integrating Fuchsia with a
   // translation pipeline.
   Locale('es'),
   Locale('he'),
+  Locale('sr'),
+  // Here is how to to specify a locale with a script code.
+  Locale.fromSubtags(languageCode: 'sr', scriptCode: 'Latn', countryCode: 'RS')
 ];