anchor.diff:  String generateMainImportFile() {
     var output = new StringBuffer();
     output.write(mainPrologue);
  -  for (var each in allLocales) {
  -    var baseFile = '${generatedFilePrefix}messages_$each.dart';
  +  for (var locale in allLocales) {
  +    var baseFile = '${generatedFilePrefix}messages_$locale.dart';
       var file = importForGeneratedFile(baseFile);
  -    output.write("import '$file' as ${asLibraryName(each)};\n");
  -  }
  +    output.write("@${_deferredName(locale)} ");
  +    output.write("import '$file' as ${_libraryName(locale)};\n");
  +  }
  +  output.write("\n");
  +  for (var locale in allLocales) {
  +    output.write("const ${_deferredName(locale)} = const DeferredLibrary");
  +    output.write("('${_libraryName(locale)}');\n");
  +  }
  +  output.write("\nconst deferredLibraries = const {\n");
  +  for (var locale in allLocales) {
  +    output.write("  '$locale' : ${_deferredName(locale)},\n");
  +  }
  +  output.write("};\n");
     output.write(
       "\nMessageLookupByLibrary _findExact(localeName) {\n"
       "  switch (localeName) {\n");
  -  for (var each in allLocales) {
  +  for (var locale in allLocales) {
       output.write(
  -        "    case '$each' : return ${asLibraryName(each)}.messages;\n");
  +        "    case '$locale' : return ${_libraryName(locale)}.messages;\n");
     }
     output.write(closing);
     return output.toString();
  
positive.code:  * We can't use a hyphen in a Dart library name, so convert the locale
   * separator to an underscore.
   */
  String asLibraryName(String x) => x.replaceAll('-', '_');
  
  /**
   * Generate a file <[generated_file_prefix]>_messages_<[locale]>.dart
  
negative.code: }
  
  /** User programs should call this before using [localeName] for messages.*/
  Future initializeMessages(String localeName) {
    initializeInternalMessageLookup(() => new CompositeMessageLookup());
    messageLookup.addLocale(localeName, _findGeneratedMessagesFor);
    return deferredLibraries[localeName].load();
  }
  
  MessageLookupByLibrary _findGeneratedMessagesFor(locale) {
  