getLocale method

Future<String> getLocale(
  1. String locale, [
  2. int? timestamp
])

Implementation

Future<String> getLocale(String locale, [int? timestamp]) async {
  final response = await _client
      .get(localeUrl(space, project, locale, timestamp), headers: headers);

  if (response.isValid) {
    return response.body;
  }

  throw response;
}