def METHOD_NAME(release, platform, locale):
    with dbo.begin() as trans:
        release_row = releases_service.get_release(release, trans)
        if release_row:
            locale_data = get_by_path(release_row["blob"], ("platforms", platform, "locales", locale))
            data_version = get_by_path(release_row["data_versions"], ("platforms", platform, "locales", locale))
        else:
            try:
                locale_data = dbo.releases.getLocale(release, platform, locale, transaction=trans)
            except KeyError as e:
                return problem(404, "Not Found", json.dumps(e.args))
            data_version = dbo.releases.getReleases(name=release, transaction=trans)[0]["data_version"]
        headers = {"X-Data-Version": data_version}
        return Response(response=json.dumps(locale_data), mimetype="application/json", headers=headers)