From 8a1be572100705ba8a21de226ce367f2cb151fa5 Mon Sep 17 00:00:00 2001 From: Eder Diego de Sousa Date: Wed, 20 Jul 2022 15:50:46 -0300 Subject: Toast messages translate --- modern/src/settings/DevicePage.js | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) (limited to 'modern/src/settings/DevicePage.js') diff --git a/modern/src/settings/DevicePage.js b/modern/src/settings/DevicePage.js index 6998288c..f3330040 100644 --- a/modern/src/settings/DevicePage.js +++ b/modern/src/settings/DevicePage.js @@ -150,11 +150,15 @@ const DevicePage = () => { `${t('sharedMaxFileLimit')} ${t('sharedOnly')} ${filesLimit} ${t('sharedAllowed')}`} + getFileAddedMessage={(fileName) => `${t('sharedFile')} ${fileName} ${t('sharedSuccessfullyAdded')}`} + getFileRemovedMessage={(fileName) => `${t('sharedFile')} ${fileName} ${t('sharedRemoved')}`} + getDropRejectMessage={(file) => `${t('sharedFile')} ${file.name} ${t('sharedDropRejectFile')} ${file.size} ${t('sharedMegabytes')}`} /> -- cgit v1.2.3