mirror of
https://github.com/transloadit/uppy.git
synced 2026-07-19 01:24:18 +00:00
Use i18n for save/cancel in Dashboard file card
This commit is contained in:
parent
583a4e3199
commit
661d8d1596
3 changed files with 5 additions and 5 deletions
|
|
@ -79,12 +79,10 @@ module.exports = class FileCard extends Component {
|
|||
<div class="uppy-Dashboard-actions">
|
||||
<button class="uppy-u-reset uppy-c-btn uppy-c-btn-primary uppy-Dashboard-actionsBtn"
|
||||
type="button"
|
||||
title={this.props.i18n('finishEditingFiles')}
|
||||
onclick={this.handleSave}>Save changes</button>
|
||||
onclick={this.handleSave}>{this.props.i18n('saveChanges')}</button>
|
||||
<button class="uppy-u-reset uppy-c-btn uppy-c-btn-link uppy-Dashboard-actionsBtn"
|
||||
type="button"
|
||||
title={this.props.i18n('finishEditingFiles')}
|
||||
onclick={this.handleCancel}>Cancel</button>
|
||||
onclick={this.handleCancel}>{this.props.i18n('cancel')}</button>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
|
|
|
|||
|
|
@ -54,6 +54,8 @@ module.exports = class Dashboard extends Plugin {
|
|||
editFile: 'Edit file',
|
||||
editing: 'Editing',
|
||||
finishEditingFile: 'Finish editing file',
|
||||
saveChanges: 'Save changes',
|
||||
cancel: 'Cancel',
|
||||
localDisk: 'Local Disk',
|
||||
myDevice: 'My Device',
|
||||
dropPasteImport: 'Drop files here, paste, import from one of the locations above or',
|
||||
|
|
|
|||
|
|
@ -958,7 +958,7 @@
|
|||
}
|
||||
|
||||
.uppy-Dashboard--wide .uppy-Dashboard-actions {
|
||||
height: 75px;
|
||||
height: 65px;
|
||||
}
|
||||
|
||||
.uppy-Dashboard-actionsBtn {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue