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>

View File

@ -10,7 +10,7 @@
},
"endDate": {
"label": "End Date",
"placeholder": "current"
"placeholder": "March 2020"
},
"description": {
"label": "Description"
@ -21,5 +21,5 @@
"label": "Add"
}
},
"markdownHelpText": "You can use <1>GitHub Flavored Markdown</1> to style this section of text."
"markdownHelpText": "You can use <1>GitHub Flavored Markdown</1> to style this section of the text."
}

View File

@ -8,6 +8,6 @@
"placeholder": "First Place, International Level"
},
"description": {
"placeholder": ""
"placeholder": "You can write about what qualities made you succeed in getting this award."
}
}

View File

@ -8,6 +8,6 @@
"placeholder": "Udacity"
},
"description": {
"placeholder": ""
"placeholder": "You can write about what you learnt from your certification program."
}
}

View File

@ -8,8 +8,7 @@
"placeholder": "Masters in Computer Science"
},
"grade": {
"label": "Grade",
"placeholder": "7.2 CGPA"
"label": "Grade"
},
"description": {
"placeholder": "You can write about projects or special credit classes that you took while studying at this school."

View File

@ -1,7 +1,6 @@
{
"photoUrl": {
"label": "Photo URL",
"placeholder": "https://i.imgur.com/..."
"label": "Photo URL"
},
"firstName": {
"label": "First Name",
@ -30,15 +29,12 @@
}
},
"phone": {
"label": "Phone Number",
"placeholder": "+1 541 754 3010"
"label": "Phone Number"
},
"website": {
"label": "Website",
"placeholder": "google.com"
"label": "Website"
},
"email": {
"label": "Email Address",
"placeholder": "john.doe@example.com"
"label": "Email Address"
}
}

View File

@ -8,12 +8,10 @@
"placeholder": "CEO, Pied Piper"
},
"phone": {
"label": "Phone Number",
"placeholder": "+1 123 456 7890"
"label": "Phone Number"
},
"email": {
"label": "Email Address",
"placeholder": "richard@piedpiper.com"
"label": "Email Address"
},
"description": {
"placeholder": "You can write about how you and the reference contact worked together and which projects you were a part of."

View File

@ -1,9 +1,3 @@
{
"title": "Templates",
"templates": {
"onyx": "Onyx",
"pikachu": "Pikaaachu",
"gengar": "Gengar",
"castform": "Castform"
}
"title": "Templates"
}

View File

@ -6,21 +6,25 @@ import Castform, { Image as CastformPreview } from './castform';
export default [
{
key: 'onyx',
name: 'Onyx',
component: Onyx,
preview: OnyxPreview,
},
{
key: 'pikachu',
name: 'Pikachu',
component: Pikachu,
preview: PikachuPreview,
},
{
key: 'gengar',
name: 'Gengar',
component: Gengar,
preview: GengarPreview,
},
{
key: 'castform',
name: 'Castform',
component: Castform,
preview: CastformPreview,
},