Skip to content
This repository has been archived by the owner on Jul 2, 2023. It is now read-only.

Commit

Permalink
Merge branch 'main' of github.com:AndresMorelos/Invoncify
Browse files Browse the repository at this point in the history
  • Loading branch information
AndresMorelos committed Jun 27, 2022
2 parents 4431733 + 18110eb commit 6169130
Show file tree
Hide file tree
Showing 23 changed files with 486 additions and 18 deletions.
4 changes: 3 additions & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,7 @@ A desktop application for creating invoices with beautiful and customizable temp
Do you speak multiple languages? We need your help!

If you're interested in translating Invoncify, please see the [detailed instruction here](https://github.com/AndresMorelos/Invoncify/discussions/31).
The following languages are currently being translated, if you would like to Manta to support another language, [please submit your request here]https://github.com/AndresMorelos/Invoncify/discussions/31).
The following languages are currently being translated, if you would like to Invoncify to support another language, [please submit your request here](https://github.com/AndresMorelos/Invoncify/discussions/31).

* [🇨🇳 中文 (Chinese Simplified)](https://crowdin.com/project/invoncify/zh-CN)
* [🇨🇳 中文 (Chinese Traditional)](https://crowdin.com/project/invoncify/zh-TW)
Expand All @@ -51,6 +51,8 @@ The following languages are currently being translated, if you would like to Man
* [🇹🇷 Türkçe (Turkish)](https://crowdin.com/project/invoncify/tr)
* [🇻🇳 Việt Nam (Vietnamese)](https://crowdin.com/project/invoncify/vi)
* [🇭🇷 Croatia (Croatian)](https://crowdin.com/project/invoncify/hr)
* [🇷🇸 Serbian (Cyrillic)](https://crowdin.com/project/invoncify/sr)
* [🇷🇸 Serbian (Latin)](https://crowdin.com/project/invoncify/sr-CS)

### Features
* 🎚 Flexible form. You can turn on/off field and save as default setting.
Expand Down
26 changes: 13 additions & 13 deletions app/components/form/DueDate.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -57,19 +57,6 @@ export class DueDate extends Component {
return (
<Section>
<label className="itemLabel">{t('form:fields:dueDate:name')}</label>
{this.state.useCustom ? (
<DueDatePicker
t={t}
selectedDate={selectedDate}
updateCustomDate={this.updateCustomDate}
/>
) : (
<DueDateTerms
t={t}
paymentTerm={paymentTerm}
updatePaymentTerm={this.updatePaymentTerm}
/>
)}
<div>
<div className="radio">
<label>
Expand All @@ -94,6 +81,19 @@ export class DueDate extends Component {
</label>
</div>
</div>
{this.state.useCustom ? (
<DueDatePicker
t={t}
selectedDate={selectedDate}
updateCustomDate={this.updateCustomDate}
/>
) : (
<DueDateTerms
t={t}
paymentTerm={paymentTerm}
updatePaymentTerm={this.updatePaymentTerm}
/>
)}
</Section>
);
}
Expand Down
2 changes: 1 addition & 1 deletion app/components/form/Recipient.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -121,7 +121,6 @@ export class Recipient extends Component {
return (
<Section>
<label className="itemLabel">{t('form:fields:recipient:name')} *</label>
{this.renderComponent()}
{contacts.length > 0 ? (
<div>
<div className="radio">
Expand All @@ -148,6 +147,7 @@ export class Recipient extends Component {
</div>
</div>
) : null}
{this.renderComponent()}
</Section>
);
}
Expand Down
3 changes: 3 additions & 0 deletions app/components/settings/General.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -132,6 +132,9 @@ class General extends Component {
<option value="sr">
{t('settings:fields:language:sr', { lng: 'sr' })}
</option>
<option value="sr-CS">
{t('settings:fields:language:sr-CS', { lng: 'sr-CS' })}
</option>
<option value="nl">
{t('settings:fields:language:nl', { lng: 'nl' })}
</option>
Expand Down
1 change: 1 addition & 0 deletions i18n/en/settings.json
Original file line number Diff line number Diff line change
Expand Up @@ -67,6 +67,7 @@
"zh-CN": "Chinese (Simplified)",
"zh-TW": "Chinese (Traditional)",
"sr": "Serbian (Cyrillic)",
"sr-CS": "Serbian (Latin)",
"ro": "Romanian"
},
"importExport": {
Expand Down
2 changes: 2 additions & 0 deletions i18n/i18n.js
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,7 @@ import zhCN from './zh-CN';
import sr from './sr';
import nl from './nl';
import ro from './ro';
import srCS from './sr-CS';
const moment = require('moment');
const appConfig = require('@electron/remote').require('electron-settings');

Expand All @@ -37,6 +38,7 @@ i18n.use(initReactI18next).init({
vi,
'zh-CN': zhCN,
sr,
'sr-CS': srCS,
nl,
ro,
},
Expand Down
1 change: 1 addition & 0 deletions i18n/nl/settings.json
Original file line number Diff line number Diff line change
Expand Up @@ -66,6 +66,7 @@
"zh-CN": "Chinees (vereenvoudigd)",
"zh-TW": "Chinees (traditioneel)",
"sr": "Servisch (Cyrillisch)",
"sr-CS": "Servisch (Latin)",
"ro": "Roemeens"
},
"importExport": {
Expand Down
1 change: 1 addition & 0 deletions i18n/ro/settings.json
Original file line number Diff line number Diff line change
Expand Up @@ -66,6 +66,7 @@
"zh-CN": "Chineză (simplificată)",
"zh-TW": "Chineză (tradiţională)",
"sr": "Sârbă (alfabet chirilic)",
"sr-CS": "Sârbă (alfabet latin)",
"ro": "Română"
},
"importExport": {
Expand Down
17 changes: 17 additions & 0 deletions i18n/sr-CS/common.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,17 @@
{
"fields": {
"fullname": "Ime i Prezime",
"company": "Preduzeće",
"address": "Adresa",
"email": "Elektronska pošta",
"phone": "Broj Telefona",
"website": "Veb sajt"
},
"save": "Sačuvaj",
"amount": "Iznos",
"default": "Podrazumevano",
"saveAsDefault": "Sačuvaj kao podrazumevano?",
"yes": "Da",
"noThanks": "Ne, hvala",
"details": "Detalji"
}
9 changes: 9 additions & 0 deletions i18n/sr-CS/contacts.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
{
"header": "Svi kontakti",
"fields": {
"contact": "Kontakt",
"email": "Elektronska pošta",
"phone": "Telefon",
"actions": "Radnje"
}
}
103 changes: 103 additions & 0 deletions i18n/sr-CS/dialog.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,103 @@
{
"appUpdate": {
"available": {
"title": "Dostupna je nova verzija programa",
"message": "Preuzimannje ažuriranja u pozadini?"
},
"noUpdate": {
"title": "Nema dostupnih ažuriranja",
"message": "Koristite najnoviju verziju aplikacije"
},
"error": {
"title": "Došlo je do greške",
"message": "Došlo je do greške pri ažuriranju aplikacije. Pokušajte kasnije ili preuzmite instalaciju ručno.",
"OpenReleasePage": "Otvorite stranicu sa preuzimanjima"
},
"downloaded": {
"title": "Ažuriranja su preuzeta",
"message": "Da li želite da zatvorite i ažurirate aplikaciju odmah?",
"quitNow": "Zatvori odmah",
"later": "Kasnije"
}
},
"noAccess": {
"title": "Dozvola za pristup odbijena",
"message": "Molimo odaberite drugi direktorijum"
},
"errorBoundary": "Došlo je do greške",
"deleteInvoice": {
"title": "Obriši ovu fakturu?",
"message": "Faktura će biti trajno obrisana iz baze podataka"
},
"deleteContact": {
"title": "Obriši ovaj kontakt?",
"message": "Kontakt će biti trajno obrisan iz baze podataka"
},
"fileTypeErr": {
"title": "Molimo odaberite drugu datoteku"
},
"validation": {
"invoiceID": {
"title": "Nevažeći ID fakture",
"message": "Fakura mora da ima ID"
},
"recipient": {
"empty": {
"title": "Nevažeći kontakt",
"message": "Kontakt ne može biti prazan"
},
"requiredFields": {
"title": "Obavezna polja",
"message": "Molimo Vas da popunite sva obavezna polja"
},
"email": {
"title": "Nevažeća e-pošta",
"message": "Molimo odaberite drugu adresu e-pošte"
}
},
"rows": {
"emptyDescription": {
"title": "Nevažeći opis",
"message": "Opis mora da postoji"
},
"priceZero": {
"title": "Nevažeća cena",
"message": "Cena mora biti veća od nule"
},
"qtyZero": {
"title": "Nevažeća količina",
"message": "Količina mora biti veća od nule"
}
},
"dueDate": {
"title": "Nevažeći datum valute",
"message": "Molimo odaberite datum"
},
"currency": {
"fraction": {
"title": "Nevažeća decimalna vrednost",
"message": "Decimalna vrednost mora biti nula ili veća"
}
},
"discount": {
"title": "Nevažeći popust",
"message": "Iznos popusta mora biti veći od nule"
},
"tax": {
"title": "Nevažeći porez",
"message": "Iznos poreza mora biti veći od nule"
},
"note": {
"title": "Nevažeća napomena",
"message": "Napomena mora imati sadržaj"
},
"payment": {
"title": "Nevažeće instrukcije za plaćanje",
"message": "Instrukcije za plaćanje ne mogu biti prazne"
}
},
"events": {
"clickToCopy": "Kliknite za kopiranje",
"copied": "Kopirano!!"
}
}
85 changes: 85 additions & 0 deletions i18n/sr-CS/form.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,85 @@
{
"header": {
"contactEdit": "Ažurirajte Kontakt",
"new": "Napravi novu fakturu",
"edit": "Izmeni fakturu",
"btns": {
"clear": "Obriši sve",
"update": "Ažuriraj",
"saveAndPreview": "Sačuvaj i pogledaj"
}
},
"settings": {
"name": "Podešavanja formulara",
"hint": "Označi polja koja su obavezna u formularu."
},
"fields": {
"items": {
"name": "Proizvod/Usluga",
"description": "Opis",
"price": "Cena",
"quantity": "Količina",
"add": "Dodaj novu stavku"
},
"paymentItems": {
"name": "Pretplate",
"description": "Opis",
"value": "Vrednost",
"add": "Dodajte novu stavku u pretplati"
},
"recipient": {
"name": "Primalac",
"select": "Izaberi",
"add": "Novo"
},
"discount": {
"name": "Popust",
"percentage": "Procenat",
"flat": "Fiksna stopa"
},
"createAtDate": {
"name": "Datum kreiranja",
"placeHolder": "Odaberite datum"
},
"dueDate": {
"name": "Datum valute",
"placeHolder": "Odaberi datum",
"paymentTerms": {
"name": "Odaberi uslove plaćanja",
"net7": {
"label": "7 dana",
"description": "Plaćanje 7 dana od datuma na fakturi"
},
"net10": {
"label": "10 dana",
"description": "Plaćanje deset dana od datuma na fakturi"
},
"net30": {
"label": "30 dana",
"description": "Plaćanje trideset dana od datuma na fakturi"
},
"net60": {
"label": "60 dana",
"description": "Plaćanje šezdeset dana od datuma na fakturi"
},
"net90": {
"label": "90 dana",
"description": "Plaćanje devedeset dana od datuma na fakturi"
}
}
},
"tax": {
"name": "Porez",
"id": "PIB",
"method": "Metoda",
"reverse": "Interni obračun PDV-a"
},
"note": "Napomena",
"currency": "Valuta",
"payment": {
"name": "Plaćanje",
"details": "Instrukcije za plaćanje",
"description": "Bankovni računi, digitalne opcije plaćanja ili druge informacije vezane za plaćanje"
}
}
}
25 changes: 25 additions & 0 deletions i18n/sr-CS/index.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,25 @@
import common from './common.json';
import contacts from './contacts.json';
import dialog from './dialog.json';
import form from './form.json';
import invoices from './invoices.json';
import messages from './messages.json';
import preview from './preview.json';
import settings from './settings.json';
import tour from './tour.json';
import login from './login.json'
import statistics from './statistics.json'

export default {
common,
contacts,
dialog,
form,
invoices,
messages,
preview,
settings,
tour,
login,
statistics
}
25 changes: 25 additions & 0 deletions i18n/sr-CS/invoices.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,25 @@
{
"header": {
"name": "Sve fakture"
},
"fields": {
"client": "Klijent",
"invoiceID": "ID fakture",
"createdDate": "Kreirano",
"dueDate": "Datum valute",
"total": "Ukupna vrednost",
"prepaid": "Pretplata",
"remaining": "Preostalo"
},
"status": {
"pending": "Na čekanju",
"paid": "Plaćeno",
"refunded": "Refundirano",
"cancelled": "Otkazano"
},
"btns": {
"view": "Pregled",
"edit": "Uredi",
"markAsPaid": "Označi kao plaćeno"
}
}
Loading

0 comments on commit 6169130

Please sign in to comment.