getLocaleByPath method
Implementation
String getLocaleByPath(String path) {
final fileName = path.split('/').last;
final namePattern = _configManager.filePattern;
if (namePattern == null) {
throw Exception('File pattern not set');
}
final locale = fileName.replaceFirst('${namePattern}_', '').replaceFirst('.arb', '');
return locale;
}