feat: add bulkTranslate

This commit is contained in:
2026-06-15 20:19:30 +04:00
parent 615d3fafa0
commit 20e701b754
2 changed files with 78 additions and 0 deletions
+5
View File
@@ -39,6 +39,11 @@ module.exports = createCoreController('api::parole.parole', ({strapi}) => ({
ctx.body = lines.join('\n')
},
async bulkTranslate(ctx) {
const result = await strapi.service('api::parole.parole').bulkTranslateMissing()
return ctx.send(result)
},
async findOne(documentId) {
const parole = await strapi.documents('api::parole.parole').findOne({
documentId,