normalize static method

String normalize(
  1. String locale
)

Returns the locale with the following syntax:

  • dash as separator

Implementation

static String normalize(String locale) {
  return locale.replaceAll('_', '-');
}