Last active
February 20, 2024 18:24
-
-
Save seblavoie/146f3620a381538d8281 to your computer and use it in GitHub Desktop.
Harvest translations
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| // To open console, in chrome, do cmd+option+j or ctrl+shift+j | |
| // Copy paste code below in console to switch to english | |
| var translationsEn = [ | |
| "INVOICE", | |
| "From", | |
| "For", | |
| "Invoice ID", | |
| "PO Number", | |
| "Issue Date", | |
| "Due Date", | |
| "Upon Receipt", | |
| "Tax", | |
| "Tax 2", | |
| "Discount", | |
| "Subject", | |
| "Type", | |
| "Description", | |
| "Quantity", | |
| "Unit Price", | |
| "Amount", | |
| "Subtotal", | |
| "Amount Due", | |
| "Notes", | |
| "Page [page] of [toPage]", | |
| "Payments", | |
| "Retainer Payments", | |
| "Pay Invoice", | |
| "Click here to see and/or pay you invoice online", | |
| "PAID", | |
| "Client Message" | |
| ] | |
| var elements = document.querySelectorAll(".pds-row input[type='text']"); | |
| Array.prototype.forEach.call(elements, function(el, i){ | |
| el.value = translationsEn[i]; | |
| }); | |
| // Copy paste code below in console to switch to french | |
| var translationsFr = [ | |
| "FACTURE", | |
| "De", | |
| "Pour", | |
| "Numéro de facture", | |
| "Numéro de commande", | |
| "Date d'émission", | |
| "Date d'échéance", | |
| "Lors de la réception", | |
| "Taxe", | |
| "Taxe 2", | |
| "Rabais", | |
| "Sujet", | |
| "Type", | |
| "Description", | |
| "Quantité", | |
| "Prix unitaire", | |
| "Montant", | |
| "Sous-total", | |
| "Montant dû", | |
| "Notes", | |
| "Page [page] de [toPage]", | |
| "Paiements", | |
| "Paiements de retenue", | |
| "Payer la facture", | |
| "Cliquez ici pour voir et/ou payer votre facture en ligne", | |
| "Payé", | |
| "Message du client" | |
| ]; | |
| var elements = document.querySelectorAll(".pds-row input[type='text']"); | |
| Array.prototype.forEach.call(elements, function(el, i){ | |
| el.value = translationsFr[i]; | |
| }); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment