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 Mouse941b16f0e1a3
diff --git a/public/locales/en.json b/public/locales/en.json
index 4d2f23c85..690176ee4 100644
--- a/public/locales/en.json
+++ b/public/locales/en.json
@@ -417,10 +417,19 @@
"12-hour": "12 hour",
"24-hour": "24 hour",
"timeFormat": "Time notation",
- "selectTimeFormat": "This will be the time notation used on the chart, it is only used to visualise the data on the chart in 12 hour or 24 hour format."
+ "selectTimeFormat": "This will be the time notation used on the chart, it is only used to visualise the data on the chart in 12 hour or 24 hour format.",
+ "captcha": "CAPTCHA",
+ "selectProject": "Select project",
+ "captchaSecretKey": "CAPTCHA secret key",
+ "generateSecretKey": "Generate secret key",
+ "regenerateSecretKey": "Regenerate secret key",
+ "regenerateSecretKeyTitle": "Regenerate secret key?",
+ "regenerateSecretKeyMessage": "Are you sure you want to regenerate your secret key?\nAll the existing CAPTCHA widgets will stop working and you will need to update them with the new secret key.",
+ "captchaSecretKeyHint": "This is your secret key, it is used to verify the CAPTCHA response on your server. Keep it secret and do not share it with anyone."
},
"dashboard": {
"newProject": "New project",
+ "newCaptchaProject": "New CAPTCHA project",
"verifyEmailTitle": "Please, verify the email address first",
"verifyEmailDesc": "To start using our service and creating your projects, you first need to confirm your email address.\n\nA link to confirm your account was sent to the email address you provided during registration, if it was not delivered - you can request the link again in your account settings.",
"lowEventsTitle": "You are running out of events!",
@@ -605,6 +614,16 @@
"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"
+ },
+ "captcha": {
+ "settings": {
+ "general": "General settings",
+ "inheritance": "Inheritance",
+ "name": "CAPTCHA project name",
+ "pid": "CAPTCHA project ID",
+ "enabled": "CAPTCHA enabled",
+ "enabledHint": "Disabled CAPTCHA projects will not count any newly incoming events.\nYou will still be able to access the analytics in dashboard."
+ }
}
},
"billing": {
diff --git a/src/pages/Captcha/Settings/CaptchaSettings.jsx b/src/pages/Captcha/Settings/CaptchaSettings.jsx
index aa1cd0ea1..83b726586 100644
--- a/src/pages/Captcha/Settings/CaptchaSettings.jsx
+++ b/src/pages/Captcha/Settings/CaptchaSettings.jsx
@@ -121,7 +121,7 @@ const CaptchaSettings = ({
}
if (isSettings) {
await updateProject(id, formalisedData)
- newProject(t('project.captcha.settings.updated'))
+ newProject(t('project.settings.updated'))
} else {
if (tab === tabForInheritance) {
if (_isEmpty(reuseProjectId)) {
@@ -133,7 +133,7 @@ const CaptchaSettings = ({
await createProject(formalisedData)
}
trackCustom('PROJECT_CREATED')
- newProject(t('project.captcha.settings.created'))
+ newProject(t('project.settings.created'))
}
loadProjects()
@@ -157,7 +157,7 @@ const CaptchaSettings = ({
try {
await deleteProject(id)
removeProject(id)
- projectDeleted(t('project.captcha.settings.deleted'))
+ projectDeleted(t('project.settings.deleted'))
history.push(routes.dashboard)
} catch (e) {
deleteProjectFailed(e)
@@ -174,7 +174,7 @@ const CaptchaSettings = ({
try {
await resetProject(id)
deleteProjectCache(id)
- projectDeleted(t('project.captcha.settings.resetted'))
+ projectDeleted(t('project.settings.resetted'))
history.push(routes.dashboard)
} catch (e) {
deleteProjectFailed(e)
@@ -188,19 +188,19 @@ const CaptchaSettings = ({
const allErrors = {}
if (_isEmpty(form.name) && tabForInheritance !== tab) {
- allErrors.name = t('project.captcha.settings.noNameError')
+ allErrors.name = t('project.settings.noNameError')
}
if (_size(form.name) > MAX_NAME_LENGTH && tabForInheritance !== tab) {
- allErrors.name = t('project.captcha.settings.pxCharsError', { amount: MAX_NAME_LENGTH })
+ allErrors.name = t('project.settings.pxCharsError', { amount: MAX_NAME_LENGTH })
}
if (_size(form.origins) > MAX_ORIGINS_LENGTH) {
- allErrors.origins = t('project.captcha.settings.oxCharsError', { amount: MAX_ORIGINS_LENGTH })
+ allErrors.origins = t('project.settings.oxCharsError', { amount: MAX_ORIGINS_LENGTH })
}
if (_size(form.ipBlacklist) > MAX_IPBLACKLIST_LENGTH) {
- allErrors.ipBlacklist = t('project.captcha.settings.oxCharsError', { amount: MAX_IPBLACKLIST_LENGTH })
+ allErrors.ipBlacklist = t('project.settings.oxCharsError', { amount: MAX_IPBLACKLIST_LENGTH })
}
const valid = _isEmpty(_keys(allErrors))
@@ -247,7 +247,7 @@ const CaptchaSettings = ({
history.push(isSettings ? _replace(routes.project, ':id', id) : routes.dashboard)
}
- const title = isSettings ? `${t('project.captcha.settings.settings')} ${form.name}` : t('project.captcha.settings.create')
+ const title = isSettings ? `${t('project.settings.settings')} ${form.name}` : t('project.settings.create')
const onRegenerateSecretKey = async () => {
try {
@@ -344,8 +344,8 @@ const CaptchaSettings = ({
name='origins'
id='origins'
type='text'
- label={t('project.captcha.settings.origins')}
- hint={t('project.captcha.settings.originsHint')}
+ label={t('project.settings.origins')}
+ hint={t('project.settings.originsHint')}
value={form.origins || ''}
className='mt-4'
onChange={handleInput}
@@ -355,8 +355,8 @@ const CaptchaSettings = ({
name='ipBlacklist'
id='ipBlacklist'
type='text'
- label={t('project.captcha.settings.ipBlacklist')}
- hint={t('project.captcha.settings.ipBlacklistHint')}
+ label={t('project.settings.ipBlacklist')}
+ hint={t('project.settings.ipBlacklistHint')}
value={form.ipBlacklist || ''}
className='mt-4'
onChange={handleInput}
@@ -436,8 +436,8 @@ const CaptchaSettings = ({
name='public'
id='public'
className='mt-4'
- label={t('project.captcha.settings.public')}
- hint={t('project.captcha.settings.publicHint')}
+ label={t('project.settings.public')}
+ hint={t('project.settings.publicHint')}
/>
<div className='flex justify-between mt-8 h-20 sm:h-min'>
<div className='flex flex-wrap items-center'>
@@ -452,11 +452,11 @@ const CaptchaSettings = ({
<div className='flex flex-wrap items-center justify-end'>
<Button onClick={() => !projectResetting && setShowReset(true)} loading={projectDeleting} semiDanger semiSmall>
<TrashIcon className='w-5 h-5 mr-1' />
- {t('project.captcha.settings.reset')}
+ {t('project.settings.reset')}
</Button>
<Button className='ml-2' onClick={() => !projectDeleting && setShowDelete(true)} loading={projectDeleting} danger semiSmall>
<ExclamationTriangleIcon className='w-5 h-5 mr-1' />
- {t('project.captcha.settings.delete')}
+ {t('project.settings.delete')}
</Button>
</div>
)}
@@ -465,7 +465,7 @@ const CaptchaSettings = ({
</>
) : (
<p className='text-gray-500 dark:text-gray-300 italic mt-1 mb-4 text-sm'>
- {t('project.captcha.settings.createHint')}
+ {t('project.settings.createHint')}
</p>
)}
@@ -483,10 +483,10 @@ const CaptchaSettings = ({
<Modal
onClose={() => setShowDelete(false)}
onSubmit={onDelete}
- submitText={t('project.captcha.settings.delete')}
+ submitText={t('project.settings.delete')}
closeText={t('common.close')}
- title={t('project.captcha.settings.qDelete')}
- message={t('project.captcha.settings.deleteHint')}
+ title={t('project.settings.qDelete')}
+ message={t('project.settings.deleteHint')}
submitType='danger'
type='error'
isOpened={showDelete}
@@ -494,10 +494,10 @@ const CaptchaSettings = ({
<Modal
onClose={() => setShowReset(false)}
onSubmit={onReset}
- submitText={t('project.captcha.settings.reset')}
+ submitText={t('project.settings.reset')}
closeText={t('common.close')}
- title={t('project.captcha.settings.qReset')}
- message={t('project.captcha.settings.resetHint')}
+ title={t('project.settings.qReset')}
+ message={t('project.settings.resetHint')}
submitType='danger'
type='error'
isOpened={showReset}
diff --git a/src/pages/Dashboard/Dashboard.jsx b/src/pages/Dashboard/Dashboard.jsx
index 73b352ffe..49c92ba52 100644
--- a/src/pages/Dashboard/Dashboard.jsx
+++ b/src/pages/Dashboard/Dashboard.jsx
@@ -255,7 +255,7 @@ const Dashboard = ({
</h2>
<span onClick={onNewProject} className='!pl-2 inline-flex justify-center items-center cursor-pointer text-center border border-transparent leading-4 font-medium rounded-md focus:outline-none focus:ring-2 focus:ring-offset-2 focus:ring-indigo-500 shadow-sm text-white bg-indigo-600 hover:bg-indigo-700 px-3 py-2 text-sm'>
<FolderPlusIcon className='w-5 h-5 mr-1' />
- {tabProjects === tabForCaptchaProject ? t('dashboard.createCaptchaProject') : t('dashboard.newProject')}
+ {tabProjects === tabForCaptchaProject ? t('dashboard.newCaptchaProject') : t('dashboard.newProject')}
</span>
</div>
<div className='mt-6'>