getLocalizationPath function
Implementation
String? getLocalizationPath(String pubspecPath) {
final lines = File(pubspecPath)
.readAsLinesSync()
.where((l) => l.trim().startsWith('localizationDir:'));
String? response;
if (lines.isNotEmpty) {
response = lines.first.trim().replaceFirst('localizationDir:', '').trim();
}
print(response);
return response;
}