mirror of
https://github.com/yu-i-i/overleaf-cep.git
synced 2026-05-23 17:19:37 +02:00
Merge pull request #25411 from overleaf/dp-clone-project-translation
Add missing translation for clone project modal name placeholder GitOrigin-RevId: 7ee99d811f31eaa0441d2e9b9f579f29ff1cb368
This commit is contained in:
@@ -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": "",
|
||||
|
||||
@@ -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)}
|
||||
|
||||
@@ -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",
|
||||
|
||||
@@ -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' })
|
||||
|
||||
Reference in New Issue
Block a user