🌐Translations for the latest features (#78)

* 🌐Translations for the latest features
Also:
  - Rename “Home” to Shared drive
  - Hide banner with suggestion of downloading desktop app
  - Fix Upload button on main screen
  - Add separate buttons for the manage access and share by link
This commit is contained in:
Anton Shepilov
2023-06-16 14:15:48 +02:00
committed by GitHub
parent 312e08d301
commit fddd3b4ebd
50 changed files with 1312 additions and 13609 deletions
@@ -35,5 +35,6 @@ export default (): React.ReactElement => {
});
}, []);
return showBanner ? <DownloadBanner onBannerClose={removeBanner} download={download} /> : <></>;
return <></>;
// return showBanner ? <DownloadBanner onBannerClose={removeBanner} download={download} /> : <></>;
};
@@ -41,11 +41,10 @@ export default ({ pendingFilesState, visible }: PropsType) => {
const momentTimeRemaining = moment(new Date().getTime() + timeRemainingInMs).fromNow();
// TODO translation
if (momentTimeRemaining !== 'Invalid date') {
return `Will end ${momentTimeRemaining}...`;
return Languages.t('components.pending_file_list.estimation.end') + `Will end ${momentTimeRemaining}...`;
} else {
return `Waiting for time approximations...`;
return Languages.t('components.pending_file_list.estimation.approximations');
}
}, [getOnePendingFile, pendingFilesState]);
@@ -68,6 +68,7 @@ export default class UploadZone extends React.Component<PropsType, StateType> {
}
open() {
console.log("OPEN");
if (this.props.disabled) {
return;
}