feat: integrate post AI translation with UI toggle and backend queue

This commit is contained in:
Adolfo Reyna
2026-02-25 18:41:54 -05:00
parent 9da5874977
commit c281878875
4 changed files with 72 additions and 4 deletions

View File

@@ -155,7 +155,7 @@ export const fetchBibleChapter = async (chapterReference = "", locale = "", cust
queryParamsString += p + "=" + queryParams[p] + "&";
});
const localBaseUrl = global.baseUrl ?? "http://localhost:3000";
const localBaseUrl = global.baseUrl ?? "https://emiapi.reynafamily.com";
// To bypass getCall's strict JSON structure mapping (since our backend just passes the API response directly),
// we can use standard fetch with the same cookie inclusion strategy.
const fetchRes = await fetch(localBaseUrl + url + queryParamsString, {