MCPcopy Create free account
hub / github.com/FlashpointProject/launcher / buildFileTranslation

Function buildFileTranslation

updateLangs.mjs:64–70  ·  view source on GitHub ↗
(fileId, langId)

Source from the content-addressed store, hash-verified

62}
63
64async function buildFileTranslation(fileId, langId) {
65 const buildRes = await axios.post(`${baseUrl}/projects/${projectId}/translations/builds/files/${fileId}`, {
66 targetLanguageId: langId
67 }, { headers });
68 const res = await axios.get(buildRes.data.data.url);
69 return res.data;
70}
71
72function fillExportPattern(pattern, langInfo) {
73 return pattern

Callers 1

updateLangs.mjsFile · 0.85

Calls 1

getMethod · 0.80

Tested by

no test coverage detected