writeLocalizationFile method
Implementation
Future<void> writeLocalizationFile(String locale, String jsonString) {
final jsonDecoded = jsonDecode(jsonString);
final namePattern = _configManager.filePattern;
if (namePattern == null) {
throw Exception('File pattern not set');
}
final fileName = '${namePattern}_${locale}.arb';
final file = File('$localizationDir/$fileName');
return file.writeAsString(jsonEncode(jsonDecoded).indent);
}