Reputation: 1090
I've created a fairly simple script which finds English and replaces it with Spanish words.
function translatesp() {
var body = DocumentApp.getActiveDocument()
.getBody();
body.replaceText('Master Change Log', 'Historial de Cambios');
body.replaceText('Prepared for:', 'Preparado para:');
body.replaceText('Git Reference', 'Referencia Git');
}
But the function is only available on the document in which I created the code. How can I make this available in all instances of Google Docs? Sorry if this has been asked before, I did search but couldn't find anything.
Upvotes: 0
Views: 79
Reputation: 316
Two ways I know of:
Upvotes: 1