translateText method
Implementation
Future<List<TranslateResourceResponse>> translateText({
required String projectId,
required List<String> texts,
required String baseLocale,
required List<String> targetLocales,
}) async {
final response = await _dio.post('$_baseUrl/projects/$projectId/translate', data: {
'texts': texts,
'baseLocale': baseLocale,
'targetLocales': targetLocales,
});
return (response.data as List).map((e) => TranslateResourceResponse.fromJson(e)).toList();
}