update and remove unnecessary translation strings

This commit is contained in:
Amruth Pillai
2020-03-30 14:12:31 +05:30
parent 1b2bae43be
commit 82037d4cfe
12 changed files with 25 additions and 37 deletions

View File

@ -78,7 +78,7 @@ const Form = ({ item, onChange, identifier = '' }) => {
<TextField
className="mb-6"
label={t('education.grade.label')}
placeholder={t('education.grade.placeholder')}
placeholder="7.2 CGPA"
value={item.grade}
onChange={v => onChange(`${identifier}grade`, v)}
/>

View File

@ -11,7 +11,7 @@ const ProfileTab = ({ data, onChange }) => {
<TextField
className="mb-6"
label={t('profile.photoUrl.label')}
placeholder={t('profile.photoUrl.placeholder')}
placeholder="https://i.imgur.com/..."
value={data.profile.photo}
onChange={v => onChange('data.profile.photo', v)}
/>
@ -73,7 +73,7 @@ const ProfileTab = ({ data, onChange }) => {
<TextField
className="mb-6"
label={t('profile.phone.label')}
placeholder={t('profile.phone.placeholder')}
placeholder="+1 541 754 3010"
value={data.profile.phone}
onChange={v => onChange('data.profile.phone', v)}
/>
@ -81,7 +81,7 @@ const ProfileTab = ({ data, onChange }) => {
<TextField
className="mb-6"
label={t('profile.website.label')}
placeholder={t('profile.website.placeholder')}
placeholder="google.com"
value={data.profile.website}
onChange={v => onChange('data.profile.website', v)}
/>
@ -89,7 +89,7 @@ const ProfileTab = ({ data, onChange }) => {
<TextField
className="mb-6"
label={t('profile.email.label')}
placeholder={t('profile.email.placeholder')}
placeholder="john.doe@example.com"
value={data.profile.email}
onChange={v => onChange('data.profile.email', v)}
/>

View File

@ -98,7 +98,7 @@ const Form = ({ item, onChange, identifier = '' }) => {
<TextField
className="mb-6"
label={t('references.phone.label')}
placeholder={t('references.phone.placeholder')}
placeholder="+1 541 754 3010"
value={item.phone}
onChange={v => onChange(`${identifier}phone`, v)}
/>
@ -106,7 +106,7 @@ const Form = ({ item, onChange, identifier = '' }) => {
<TextField
className="mb-6"
label={t('references.email.label')}
placeholder={t('references.email.placeholder')}
placeholder="richard@piedpiper.com"
value={item.email}
onChange={v => onChange(`${identifier}email`, v)}
/>

View File

@ -1,11 +1,8 @@
import React from 'react';
import { useTranslation } from 'react-i18next';
import templates from '../../../templates';
const TemplatesTab = ({ theme, onChange }) => {
const { t } = useTranslation('rightSidebar');
return (
<div className="grid grid-cols-2 gap-6">
{templates.map(x => (
@ -17,9 +14,9 @@ const TemplatesTab = ({ theme, onChange }) => {
: 'border-transparent '
} hover:border-gray-500 cursor-pointer`}
src={x.preview}
alt={t(`templates.templates.${x.key}`)}
alt={x.name}
/>
<p className="mt-1 text-sm font-medium">{t(`templates.templates.${x.key}`)}</p>
<p className="mt-1 text-sm font-medium">{x.name}</p>
</div>
))}
</div>