localeFromName function

String localeFromName(
  1. String fileName,
  2. String baseName
)

Implementation

String localeFromName(
  String fileName,
  String baseName,
) {
  final locale = fileName.replaceAll('${baseName}_', '');
  return locale;
}