diff --git a/src/renderer/component/common/file-selector.jsx b/src/renderer/component/common/file-selector.jsx index d5d12cfde..737c21a22 100644 --- a/src/renderer/component/common/file-selector.jsx +++ b/src/renderer/component/common/file-selector.jsx @@ -9,6 +9,8 @@ type Props = { type: string, currentPath: ?string, onFileChosen: (string, string) => void, + fileLabel: ?string, + directoryLabel: ?string, }; class FileSelector extends React.PureComponent { @@ -47,15 +49,14 @@ class FileSelector extends React.PureComponent { input: ?HTMLInputElement; render() { - const { type, currentPath } = this.props; + const { type, currentPath, fileLabel, directoryLabel } = this.props; + + const label = + type === 'file' ? fileLabel || __('Choose File') : directoryLabel || __('Choose Directory'); return ( -