chore(translations): updating pot -> po -> json files (babel 2.9.1) (#26773)

This commit is contained in:
Evan Rusackas
2024-02-13 08:47:15 -07:00
committed by GitHub
parent 4796484190
commit 91ac575eab
38 changed files with 382021 additions and 376044 deletions

View File

@@ -105,7 +105,9 @@ class Api(BaseSupersetView):
}
return self.json_response({"result": result})
except (ValueError, TimeRangeParseFailError, TimeRangeAmbiguousError) as error:
error_msg = {"message": _(f"Unexpected time range: {error}")}
error_msg = {
"message": _("Unexpected time range: %(error)s") % {"error": error}
}
return self.json_response(error_msg, 400)
def get_query_context_factory(self) -> QueryContextFactory: