libraryName function

String libraryName(
  1. String x
)

We can't use a hyphen in a Dart library name, so convert the locale separator to an underscore.

Implementation

String libraryName(String x) =>
    'messages_' + x.replaceAll('-', '_').toLowerCase();