fixup! 🌐(frontend) add Crowdin translator context

This commit is contained in:
Anthony LC
2026-10-06 15:08:32 +02:00
parent a7d9b00835
commit c72b0b180c
3 changed files with 17 additions and 12 deletions
+1
View File
@@ -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
@@ -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,
);
},