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

Commit 6169130

Browse files
committed
Merge branch 'main' of github.com:AndresMorelos/Invoncify
2 parents 4431733 + 18110eb commit 6169130

File tree

23 files changed

+486
-18
lines changed

23 files changed

+486
-18
lines changed

README.md

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -29,7 +29,7 @@ A desktop application for creating invoices with beautiful and customizable temp
2929
Do you speak multiple languages? We need your help!
3030

3131
If you're interested in translating Invoncify, please see the [detailed instruction here](https://github.com/AndresMorelos/Invoncify/discussions/31).
32-
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).
32+
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).
3333

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

5557
### Features
5658
* 🎚 Flexible form. You can turn on/off field and save as default setting.

app/components/form/DueDate.jsx

Lines changed: 13 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -57,19 +57,6 @@ export class DueDate extends Component {
5757
return (
5858
<Section>
5959
<label className="itemLabel">{t('form:fields:dueDate:name')}</label>
60-
{this.state.useCustom ? (
61-
<DueDatePicker
62-
t={t}
63-
selectedDate={selectedDate}
64-
updateCustomDate={this.updateCustomDate}
65-
/>
66-
) : (
67-
<DueDateTerms
68-
t={t}
69-
paymentTerm={paymentTerm}
70-
updatePaymentTerm={this.updatePaymentTerm}
71-
/>
72-
)}
7360
<div>
7461
<div className="radio">
7562
<label>
@@ -94,6 +81,19 @@ export class DueDate extends Component {
9481
</label>
9582
</div>
9683
</div>
84+
{this.state.useCustom ? (
85+
<DueDatePicker
86+
t={t}
87+
selectedDate={selectedDate}
88+
updateCustomDate={this.updateCustomDate}
89+
/>
90+
) : (
91+
<DueDateTerms
92+
t={t}
93+
paymentTerm={paymentTerm}
94+
updatePaymentTerm={this.updatePaymentTerm}
95+
/>
96+
)}
9797
</Section>
9898
);
9999
}

app/components/form/Recipient.jsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -121,7 +121,6 @@ export class Recipient extends Component {
121121
return (
122122
<Section>
123123
<label className="itemLabel">{t('form:fields:recipient:name')} *</label>
124-
{this.renderComponent()}
125124
{contacts.length > 0 ? (
126125
<div>
127126
<div className="radio">
@@ -148,6 +147,7 @@ export class Recipient extends Component {
148147
</div>
149148
</div>
150149
) : null}
150+
{this.renderComponent()}
151151
</Section>
152152
);
153153
}

app/components/settings/General.jsx

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -132,6 +132,9 @@ class General extends Component {
132132
<option value="sr">
133133
{t('settings:fields:language:sr', { lng: 'sr' })}
134134
</option>
135+
<option value="sr-CS">
136+
{t('settings:fields:language:sr-CS', { lng: 'sr-CS' })}
137+
</option>
135138
<option value="nl">
136139
{t('settings:fields:language:nl', { lng: 'nl' })}
137140
</option>

i18n/en/settings.json

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -67,6 +67,7 @@
6767
"zh-CN": "Chinese (Simplified)",
6868
"zh-TW": "Chinese (Traditional)",
6969
"sr": "Serbian (Cyrillic)",
70+
"sr-CS": "Serbian (Latin)",
7071
"ro": "Romanian"
7172
},
7273
"importExport": {

i18n/i18n.js

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -15,6 +15,7 @@ import zhCN from './zh-CN';
1515
import sr from './sr';
1616
import nl from './nl';
1717
import ro from './ro';
18+
import srCS from './sr-CS';
1819
const moment = require('moment');
1920
const appConfig = require('@electron/remote').require('electron-settings');
2021

@@ -37,6 +38,7 @@ i18n.use(initReactI18next).init({
3738
vi,
3839
'zh-CN': zhCN,
3940
sr,
41+
'sr-CS': srCS,
4042
nl,
4143
ro,
4244
},

i18n/nl/settings.json

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -66,6 +66,7 @@
6666
"zh-CN": "Chinees (vereenvoudigd)",
6767
"zh-TW": "Chinees (traditioneel)",
6868
"sr": "Servisch (Cyrillisch)",
69+
"sr-CS": "Servisch (Latin)",
6970
"ro": "Roemeens"
7071
},
7172
"importExport": {

i18n/ro/settings.json

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -66,6 +66,7 @@
6666
"zh-CN": "Chineză (simplificată)",
6767
"zh-TW": "Chineză (tradiţională)",
6868
"sr": "Sârbă (alfabet chirilic)",
69+
"sr-CS": "Sârbă (alfabet latin)",
6970
"ro": "Română"
7071
},
7172
"importExport": {

i18n/sr-CS/common.json

Lines changed: 17 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,17 @@
1+
{
2+
"fields": {
3+
"fullname": "Ime i Prezime",
4+
"company": "Preduzeće",
5+
"address": "Adresa",
6+
"email": "Elektronska pošta",
7+
"phone": "Broj Telefona",
8+
"website": "Veb sajt"
9+
},
10+
"save": "Sačuvaj",
11+
"amount": "Iznos",
12+
"default": "Podrazumevano",
13+
"saveAsDefault": "Sačuvaj kao podrazumevano?",
14+
"yes": "Da",
15+
"noThanks": "Ne, hvala",
16+
"details": "Detalji"
17+
}

i18n/sr-CS/contacts.json

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,9 @@
1+
{
2+
"header": "Svi kontakti",
3+
"fields": {
4+
"contact": "Kontakt",
5+
"email": "Elektronska pošta",
6+
"phone": "Telefon",
7+
"actions": "Radnje"
8+
}
9+
}

0 commit comments

Comments
 (0)