diff --git a/client/languages/croatian.js b/client/languages/croatian.js new file mode 100644 index 0000000..3d5e21c --- /dev/null +++ b/client/languages/croatian.js @@ -0,0 +1,24 @@ +(function(){ + var app = cartjs + + var t = app.translation + t.addressFieldLabel = "Adresa" + t.addressFieldPlaceholder = "Unesite vašu poštansku adresu" + t.buyButtonTitle = 'Dodaj u košaricu' + t.cartButtonLabelOne = "proizvod" + t.cartButtonLabelMany = "proizvoda" + t.emailFieldLabel = "e-mail" + t.emailFieldPlaceholder = "Unesite vašu e-mail adresu" + t.emptyCart = "Vaša košarica je prazna." + t.nameFieldLabel = "Ime" + t.nameFieldPlaceholder = "Unesite vaše puno ime i prezime" + t.orderFailed = 'Narudžba nije uspjela, molimo vas kontaktirajte našu podršku za kupce' + t.orderSent = "Vaša narudžba je poslana" + t.phoneFieldLabel = "Telefon" + t.phoneFieldPlaceholder = "Unesite vaš broj telefona" + t.purchaseButtonTitle = 'Naruči' + t.emailNotificationTitle = '' + t.emailNotificationBody = '' + + t.pluralize = function(count){return count === 1 ? 'One' : 'Many'} +})() \ No newline at end of file diff --git a/server/languages/croatian.js b/server/languages/croatian.js new file mode 100644 index 0000000..c4044a5 --- /dev/null +++ b/server/languages/croatian.js @@ -0,0 +1,26 @@ +module.exports = function(app){ + // Owner email templates, users can override those templates to fit their needs. + app.template('croatian', 'owner-email-subject', function(add, order){ + add('Narudžba sa ' + order.site + ' za ' + app.priceWithCurrency(order.price, order.currency)) + }) + + app.template('croatian', 'owner-email-text', function(add, order){ + add('Kupac') + add('') + if(order.name) add(" Ime " + order.name) + if(order.phone) add(" Telefon " + order.phone) + if(order.email) add(" Email " + order.email) + if(order.address) add(" Adresa " + order.address) + add('') + + add('Naručuje') + add('') + for(var i = 0; i < order.items.length; i++){ + var item = order.items[i] + add(' ' + item.name + '\t' + item.quantity + '\t' + + app.priceWithCurrency(item.price, order.currency)) + } + add('') + add('Ukupno ' + app.priceWithCurrency(order.price, order.currency)) + }) +}