uploadResourcesFile method

Future<void> uploadResourcesFile(
  1. String projectId,
  2. String locale,
  3. Uint8List bytes
)

Implementation

Future<void> uploadResourcesFile(String projectId, String locale, Uint8List bytes) async {
  final formData = FormData.fromMap({
    'locale': locale,
    'file': MultipartFile.fromBytes(bytes, filename: 'filename.arb'),
  });
  await _dio.post('$_baseUrl/projects/$projectId/import', data: formData);
}