Merge pull request #34167 from overleaf/mj-conversion-error-update

[web] Point conversion errors to docs page

GitOrigin-RevId: 1a5208065252159b6a69bc6ae4cecae1dd0cd4d8
This commit is contained in:
Mathias Jakobsen
2026-06-01 15:53:27 +01:00
committed by Copybot
parent a9a9f6ee6b
commit 96e0830eef
3 changed files with 11 additions and 7 deletions
@@ -380,6 +380,7 @@
"continue_to": "",
"continue_using_free_features": "",
"continue_with_free_plan": "",
"conversion_error_details": "",
"cookie_banner": "",
"cookie_banner_info": "",
"copied": "",
@@ -628,7 +629,6 @@
"entry_plural": "",
"equation_preview": "",
"error": "",
"error_details": "",
"error_loading_references": "",
"error_opening_document": "",
"error_opening_document_detail": "",
@@ -2015,7 +2015,7 @@
"the_code_editor_color_scheme": "",
"the_code_editor_color_scheme_dark_mode": "",
"the_code_editor_color_scheme_light_mode": "",
"the_document_contains_formatting_we_werent_able_to_convert_contact_support_if_you_need_help": "",
"the_document_contains_formatting_we_werent_able_to_convert": "",
"the_following_files_already_exist_in_this_project": "",
"the_following_files_and_folders_already_exist_in_this_project": "",
"the_following_folder_already_exists_in_this_project": "",
@@ -17,15 +17,19 @@ const ExportDocumentErrorToast = ({ data }: { data?: any }) => {
<b>{t('we_couldnt_export_this_document')}</b>
</p>
<Trans
i18nKey="the_document_contains_formatting_we_werent_able_to_convert_contact_support_if_you_need_help"
i18nKey="the_document_contains_formatting_we_werent_able_to_convert"
components={[
// eslint-disable-next-line react/jsx-key, jsx-a11y/anchor-has-content
<a href="/contact" target="_BLANK" rel="noopener noreferrer" />,
<a
href="https://docs.overleaf.com/managing-projects-and-files/importing-and-exporting-files#common-issues-and-how-to-address-them"
target="_BLANK"
rel="noopener noreferrer"
/>,
]}
/>
{errorMessage && (
<details>
<summary>{t('error_details')}</summary>
<summary>{t('conversion_error_details')}</summary>
<pre
style={{ maxWidth: '800px', maxHeight: '300px', overflow: 'auto' }}
>
+2 -2
View File
@@ -508,6 +508,7 @@
"continue_using_free_features": "Continue using our free features",
"continue_with_free_plan": "Continue with free plan",
"continue_with_service": "Continue with __service__",
"conversion_error_details": "Conversion error details",
"cookie_banner": "Cookie banner",
"cookie_banner_info": "We only use cookies for essential purposes and to improve your experience on our site. You can find out more in our <0>cookie policy</0>.",
"copied": "Copied",
@@ -818,7 +819,6 @@
"equation_preview": "Equation preview",
"error": "Error",
"error_assist": "Error Assist",
"error_details": "Error details",
"error_loading_references": "References couldnt be loaded. Refresh the page to try again.",
"error_opening_document": "Error opening document",
"error_opening_document_detail": "Sorry, something went wrong opening this document. Please try again.",
@@ -2619,7 +2619,7 @@
"the_code_editor_color_scheme": "The code editor color scheme",
"the_code_editor_color_scheme_dark_mode": "The code editor color scheme for dark mode",
"the_code_editor_color_scheme_light_mode": "The code editor color scheme for light mode",
"the_document_contains_formatting_we_werent_able_to_convert_contact_support_if_you_need_help": "The document contains formatting we werent able to convert. <0>Contact support</0> if you need help.",
"the_document_contains_formatting_we_werent_able_to_convert": "The document contains formatting we werent able to convert. Make sure you have fixed all LaTeX errors or <0>learn more</0> about common conversion errors.",
"the_file_supplied_is_of_an_unsupported_type ": "The link to open this content on Overleaf pointed to the wrong kind of file. Valid file types are .tex documents and .zip files. If this keeps happening for links on a particular site, please report this to them.",
"the_following_files_already_exist_in_this_project": "The following files already exist in this project:",
"the_following_files_and_folders_already_exist_in_this_project": "The following files and folders already exist in this project:",