Skip to content

Commit

Permalink
Italian translation of the web components
Browse files Browse the repository at this point in the history
  • Loading branch information
gionata committed Nov 19, 2024
1 parent a79df6a commit 0fe0239
Show file tree
Hide file tree
Showing 7 changed files with 10 additions and 3 deletions.
1 change: 1 addition & 0 deletions src/calc2/components/calculator.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -166,6 +166,7 @@ example, 42
<DropdownItem onClick={() => this.changeLocale('de')}>de</DropdownItem>
<DropdownItem onClick={() => this.changeLocale('es')}>es</DropdownItem>
<DropdownItem onClick={() => this.changeLocale('kr')}>kr</DropdownItem>
<DropdownItem onClick={() => this.changeLocale('it')}>it</DropdownItem>
</DropdownMenu>
</UncontrolledDropdown>
<NavItem>
Expand Down
1 change: 1 addition & 0 deletions src/calc2/components/navigation-mobile.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -56,6 +56,7 @@ export class NavigationMobile extends React.Component<Props, State> {
<DropdownItem onClick={() => this.changeLocale('de')}>de</DropdownItem>
<DropdownItem onClick={() => this.changeLocale('es')}>es</DropdownItem>
<DropdownItem onClick={() => this.changeLocale('kr')}>kr</DropdownItem>
<DropdownItem onClick={() => this.changeLocale('it')}>it</DropdownItem>
</DropdownMenu>
</UncontrolledDropdown>
<NavbarBrand href="/">RelaX</NavbarBrand>
Expand Down
1 change: 1 addition & 0 deletions src/calc2/components/navigation.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -108,6 +108,7 @@ export class Navigation extends React.Component<Props, State> {
<DropdownItem onClick={() => this.changeLocale('es')}>es</DropdownItem>
<DropdownItem onClick={() => this.changeLocale('kr')}>kr</DropdownItem>
<DropdownItem onClick={() => this.changeLocale('pt')}>pt</DropdownItem>
<DropdownItem onClick={() => this.changeLocale('it')}>it</DropdownItem>
</DropdownMenu>
</UncontrolledDropdown>
<NavItem className="navItemSpace"><NavLink href="https://github.com/dbis-uibk/relax/issues"><FontAwesomeIcon icon={faComment as IconProp} /> <T id="calc.navigation.feedback" /></NavLink></NavItem>
Expand Down
4 changes: 4 additions & 0 deletions src/calc2/i18n.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,7 @@ import langEN from '../locales/en.json';
import langES from '../locales/es.json';
import langKR from '../locales/kr.json';
import langPT from '../locales/pt.json';
import langIT from '../locales/it.json';

export type LanguageKeys = keyof typeof langEN;

Expand All @@ -34,6 +35,9 @@ export const i18n = i18next
pt: {
translations: langPT,
},
it: {
translations: langIT,
},
},
fallbackLng: 'en',
nsSeparator: ':',
Expand Down
2 changes: 1 addition & 1 deletion src/locales/it.json

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion src/locales/languages.csv
Original file line number Diff line number Diff line change
Expand Up @@ -388,4 +388,4 @@ calc.editors.ra.inline-editor.button-ok,Ok,Ok,Ok,Ok,Ok,Ok
calc.editors.ra.inline-editor.row-name,Name,Nome,Name,Nombre,Name,Nome
calc.editors.ra.inline-editor.row-type,Type,Tipo,Typ,Escriba,Type,Tipo
calc.editors.ra.inline-editor.input-relation-name,Relation Name,Nome da Relação,Relations Name,Nombre de la relación,Relation Name,Nome relazione
calc.navigation.imprint,Imprint,Impressão,Impressum,Imprimir,Imprint,Stampa
calc.navigation.imprint,Imprint,Impressão,Impressum,Imprimir,Imprint,Impressum
2 changes: 1 addition & 1 deletion src/locales/writeLanguageFiles.py
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ def CsvToJson():
"es": {},
"kr": {},
"pt": {},
"it": {}
"it": {}
}
with open('languages.csv', encoding="utf8") as csv_file:
csv_reader = csv.reader(csv_file, delimiter=delimiter)
Expand Down

0 comments on commit 0fe0239

Please sign in to comment.