mirror of
https://github.com/suitenumerique/docs.git
synced 2026-10-14 12:15:27 +02:00
fixup! 🌐(frontend) add Crowdin translator context
This commit is contained in:
@@ -72,6 +72,7 @@ and this project adheres to
|
||||
offline
|
||||
- 🐛(frontend) stop the service worker from caching the collaboration server's
|
||||
rest api
|
||||
- 🌐(frontend) add Crowdin translator context #2785
|
||||
|
||||
### Changed
|
||||
|
||||
|
||||
+1
-1
@@ -292,7 +292,7 @@ export const ToastActions = ({
|
||||
onClick={onCloseToast}
|
||||
>
|
||||
{isTopRoot
|
||||
? t('Open', {
|
||||
? t('Open document', {
|
||||
description: 'Action to open the duplicated document',
|
||||
})
|
||||
: t('Back to original', {
|
||||
|
||||
@@ -57,17 +57,21 @@ export const useImport = ({ onDragOver, onImportSuccess }: UseImportProps) => {
|
||||
(fileName: string) => {
|
||||
const allowedExtensions = Object.values(ACCEPT).flat().join(', ');
|
||||
toast(
|
||||
t(
|
||||
allowedExtensions
|
||||
? `The document "{{documentName}}" import has failed (only {{allowedExtensions}} files are allowed)`
|
||||
: `The document "{{documentName}}" import has failed`,
|
||||
{
|
||||
description:
|
||||
'Toast shown when a file to import has an unsupported type',
|
||||
documentName: fileName,
|
||||
allowedExtensions,
|
||||
},
|
||||
),
|
||||
allowedExtensions
|
||||
? t(
|
||||
`The document "{{documentName}}" import has failed (only {{allowedExtensions}} files are allowed)`,
|
||||
{
|
||||
description:
|
||||
'Toast shown when a file to import has an unsupported type',
|
||||
documentName: fileName,
|
||||
allowedExtensions,
|
||||
},
|
||||
)
|
||||
: t(`The document "{{documentName}}" import has failed`, {
|
||||
description:
|
||||
'Toast shown when importing a file as a document failed',
|
||||
documentName: fileName,
|
||||
}),
|
||||
VariantType.ERROR,
|
||||
);
|
||||
},
|
||||
|
||||
Reference in New Issue
Block a user