Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Italian translation #225

Open
wants to merge 1 commit into
base: development
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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
1 change: 1 addition & 0 deletions src/locales/it.json

Large diffs are not rendered by default.

449 changes: 239 additions & 210 deletions src/locales/languages.csv

Large diffs are not rendered by default.

1 change: 1 addition & 0 deletions src/locales/writeLanguageFiles.py
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,7 @@ def CsvToJson():
"es": {},
"kr": {},
"pt": {},
"it": {}
}
with open('languages.csv', encoding="utf8") as csv_file:
csv_reader = csv.reader(csv_file, delimiter=delimiter)
Expand Down