translateByLocale method

Future<TranslateResourceResponse> translateByLocale(
  1. String projectId,
  2. String locale
)

Implementation

Future<TranslateResourceResponse> translateByLocale(
  String projectId,
  String locale,
) async {
  final response = await _dio.post(
    '$_baseUrl/projects/$projectId/translateLocale',
    data: TranslateLocaleRequestModel(locale: locale).toJson(),
  );
  return TranslateResourceResponse.fromJson(response.data);
}