ソースを参照

Merge pull request #25411 from overleaf/dp-clone-project-translation

Add missing translation for clone project modal name placeholder

GitOrigin-RevId: 7ee99d811f31eaa0441d2e9b9f579f29ff1cb368
David 1 年間 前
コミット
2ea03af559

+ 1 - 0
services/web/frontend/extracted-translations.json

@@ -1063,6 +1063,7 @@
   "new_overleaf_editor": "",
   "new_password": "",
   "new_project": "",
+  "new_project_name": "",
   "new_subscription_will_be_billed_immediately": "",
   "new_tag": "",
   "new_tag_name": "",

+ 1 - 1
services/web/frontend/js/features/clone-project-modal/components/clone-project-modal-content.jsx

@@ -91,7 +91,7 @@ export default function CloneProjectModalContent({
             <OLFormLabel>{t('new_name')}</OLFormLabel>
             <OLFormControl
               type="text"
-              placeholder="New Project Name"
+              placeholder={t('new_project_name')}
               required
               value={clonedProjectName}
               onChange={event => setClonedProjectName(event.target.value)}

+ 1 - 0
services/web/locales/en.json

@@ -1390,6 +1390,7 @@
   "new_overleaf_editor": "New Overleaf editor",
   "new_password": "New password",
   "new_project": "New Project",
+  "new_project_name": "New project name",
   "new_snippet_project": "Untitled",
   "new_subscription_will_be_billed_immediately": "Your new subscription will be billed immediately to your current payment method.",
   "new_tag": "New Tag",

+ 2 - 2
services/web/test/frontend/features/editor-left-menu/components/actions-copy-project.test.jsx

@@ -23,7 +23,7 @@ describe('<ActionsCopyProject />', function () {
 
     fireEvent.click(screen.getByRole('button', { name: 'Copy Project' }))
 
-    screen.getByPlaceholderText('New Project Name')
+    screen.getByPlaceholderText('New project name')
   })
 
   it('loads the project page when submitted', async function () {
@@ -38,7 +38,7 @@ describe('<ActionsCopyProject />', function () {
 
     fireEvent.click(screen.getByRole('button', { name: 'Copy Project' }))
 
-    const input = screen.getByPlaceholderText('New Project Name')
+    const input = screen.getByPlaceholderText('New project name')
     fireEvent.change(input, { target: { value: 'New Project' } })
 
     const button = screen.getByRole('button', { name: 'Copy' })