Skip to content

Commit

Permalink
Merge pull request #360 from fperera123/update/add-more-languages
Browse files Browse the repository at this point in the history
add: new language support
  • Loading branch information
CrazyMarvin authored Sep 11, 2024
2 parents 22b1a7a + 41f88ac commit 31798c5
Show file tree
Hide file tree
Showing 3 changed files with 31 additions and 1 deletion.
7 changes: 6 additions & 1 deletion src/renderer/config/app.ts
Original file line number Diff line number Diff line change
Expand Up @@ -17,10 +17,15 @@ const countries: DropdownConfigType[] = [
]

const languages: DropdownConfigType[] = [
{ value: 'bs', label: 'Bosnian' },
{ value: 'cs', label: 'Czech' },
{ value: 'de', label: 'German' },
{ value: 'el', label: 'Greek' },
{ value: 'en', label: 'English' },
{ value: 'si', label: 'Sinhala' },
{ value: 'no', label: 'Norwegian' },
{ value: 'ru', label: 'Russian' },
{ value: 'si', label: 'Sinhala' },
{ value: 'es', label: 'Spanish' }
]

const themes: DropdownConfigType[] = [
Expand Down
20 changes: 20 additions & 0 deletions src/renderer/i18n/config.ts
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,11 @@ import en from "./en.json"
import si from "./si.json"
import no from "./no.json"
import de from "./de.json"
import es from "./es.json"
import cs from "./cs.json"
import ru from "./ru.json"
import bs from "./bs.json"
import el from "./el.json"

i18next.use(initReactI18next).init({
// lng: 'en', // if you're using a language detector, do not define the lng option
Expand All @@ -22,5 +27,20 @@ i18next.use(initReactI18next).init({
de: {
translation: de,
},
es: {
translation: es,
},
cs: {
translation: cs,
},
ru: {
translation: ru,
},
bs: {
translation: bs,
},
el: {
translation: el,
},
},
})
5 changes: 5 additions & 0 deletions src/renderer/i18n/en.json
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,11 @@
"English": "English",
"Sinhala": "Sinhala",
"Norwegian": "Norwegian",
"Spanish": "Spanish",
"Czech": "Czech",
"Russian": "Russian",
"Bosnian": "Bosnian",
"Greek": "Greek",

"Germany": "Germany",
"European Union": "European Union",
Expand Down

0 comments on commit 31798c5

Please sign in to comment.