feat(org): Added various translation pages
This commit is contained in:
parent
2299cc6ade
commit
b822e35fbe
11 changed files with 548 additions and 17 deletions
|
@ -287,6 +287,20 @@ Backend.prototype.createIssue = async function (data) {
|
|||
return responseHandler(await api.post(`/issues`, data), 201)
|
||||
}
|
||||
|
||||
/*
|
||||
* Send translation invite
|
||||
*/
|
||||
Backend.prototype.sendTranslatorInvite = async function (language) {
|
||||
return responseHandler(await api.post(`/flows/translator-invite/jwt`, { language }, this.auth))
|
||||
}
|
||||
|
||||
/*
|
||||
* Send language suggestion
|
||||
*/
|
||||
Backend.prototype.sendLanguageSuggestion = async function (data) {
|
||||
return responseHandler(await api.post(`/flows/language-suggestion/jwt`, data, this.auth))
|
||||
}
|
||||
|
||||
export function useBackend(token = false) {
|
||||
/*
|
||||
* This backend object is what we'll end up returning
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue