Skip to content

📈 Open source, privacy-first web analytics — a cookie-less Google Analytics alternative with built-in error tracking and performance monitoring. Self-host it or use our cloud. Get started for free!

added translations

Blue Mousee5ffe11a7226
diff --git a/public/locales/en.json b/public/locales/en.json
index f881ba9b4..a7297deed 100644
--- a/public/locales/en.json
+++ b/public/locales/en.json
@@ -619,7 +619,11 @@
},
"errorNoRole": "Please select a role.",
"ipBlacklist": "IP's to blacklist",
- "ipBlacklistHint": "A list of IP addresses from which no analytics will be collected on this project.\nThis functionality is handy if you want to ignore analytics from your IP, for example.\nExample: 172.126.10.16, 192.168.0.1/32, ::1"
+ "ipBlacklistHint": "A list of IP addresses from which no analytics will be collected on this project.\nThis functionality is handy if you want to ignore analytics from your IP, for example.\nExample: 172.126.10.16, 192.168.0.1/32, ::1",
+ "transfer": "Tranfer project",
+ "transferTo": "Transfer project",
+ "transferHint": "You can transfer '{{name}}' project to another user.\nThis user will become the project's owner and will be able to manage the project's settings, add/remove members, and invite new users.\nYou will be assigned to the project as an administrator. However, the new owner will be able to remove you from the project.",
+ "transfereeEmail": "Transferee email"
},
"captcha": {
"settings": {
diff --git a/src/pages/Project/Settings/ProjectSettings.tsx b/src/pages/Project/Settings/ProjectSettings.tsx
index 86872f8ef..d33fa48f5 100644
--- a/src/pages/Project/Settings/ProjectSettings.tsx
+++ b/src/pages/Project/Settings/ProjectSettings.tsx
@@ -47,6 +47,8 @@ interface IForm extends Partial<IProject> {
ipBlacklist: string | null,
}
+const DEFAULT_PROJECT_NAME = 'Untitled Project'
+
const ProjectSettings = ({
updateProjectFailed, createNewProjectFailed, generateAlerts, projectDeleted, deleteProjectFailed,
loadProjects, isLoading, projects, showError, removeProject, user, isSharedProject, sharedProjects,
@@ -146,7 +148,7 @@ const ProjectSettings = ({
} else {
await createProject({
id: data.id || nanoid(),
- name: data.name || 'Untitled Project',
+ name: data.name || DEFAULT_PROJECT_NAME,
})
trackCustom('PROJECT_CREATED')
generateAlerts(t('project.settings.created'))
@@ -445,13 +447,15 @@ const ProjectSettings = ({
{t('project.settings.transferTo')}
</h2>
<p className='mt-2 text-base text-gray-700 dark:text-gray-200'>
- {t('project.settings.transferHint')}
+ {t('project.settings.transferHint', {
+ name: form.name || DEFAULT_PROJECT_NAME,
+ })}
</p>
<Input
name='email'
id='email'
type='email'
- label={t('auth.common.email')}
+ label={t('project.settings.transfereeEmail')}
value={transferEmail}
placeholder='[email protected]'
className='mt-4'