Skip to content

Commit

Permalink
[Upd #18] Added i18n for specific buttons
Browse files Browse the repository at this point in the history
  • Loading branch information
LaChope authored and blcham committed Dec 17, 2023
1 parent 872afac commit 4ce6727
Show file tree
Hide file tree
Showing 3 changed files with 9 additions and 3 deletions.
6 changes: 3 additions & 3 deletions js/components/record/Record.js
Original file line number Diff line number Diff line change
Expand Up @@ -122,12 +122,12 @@ class Record extends React.Component {
return <>
{EXTENSIONS === EXTENSION_CONSTANTS.SUPPLIER &&
<>
<Button className="mx-1" variant='danger' size='sm'>Reject</Button>
<Button className="mx-1" variant='success' size='sm'>Accept</Button>
<Button className="mx-1" variant='danger' size='sm'>{this.i18n('reject')}</Button>
<Button className="mx-1" variant='success' size='sm'>{this.i18n('accept')}</Button>
</>
}
{EXTENSIONS === EXTENSION_CONSTANTS.OPERATOR &&
<Button className="mx-1" variant='success' size='sm'>Complete</Button>}
<Button className="mx-1" variant='success' size='sm'>{this.i18n('complete')}</Button>}
</>;
}

Expand Down
3 changes: 3 additions & 0 deletions js/i18n/cs.js
Original file line number Diff line number Diff line change
Expand Up @@ -33,6 +33,9 @@ export default {
'please-wait': 'Prosím, čekejte...',
'actions': 'Akce',
'required': 'Políčka označená * jsou povinná',
'reject': 'Odmítnout',
'accept':'Přijmout',
'complete': 'Dokončit',

'login.title': Constants.APP_NAME + ' - Přihlášení',
'login.username': 'Uživatelské jméno',
Expand Down
3 changes: 3 additions & 0 deletions js/i18n/en.js
Original file line number Diff line number Diff line change
Expand Up @@ -33,6 +33,9 @@ export default {
'please-wait': 'Please wait...',
'actions': 'Actions',
'required': 'Fields marked with * are required',
'reject': 'Reject',
'accept':'Accept',
'complete': 'Complete',

'login.title': Constants.APP_NAME + ' - Login',
'login.username': 'Username',
Expand Down

0 comments on commit 4ce6727

Please sign in to comment.