update all source translation keys to remove placeholders

This commit is contained in:
Amruth Pillai
2020-04-01 15:53:35 +05:30
parent a7839a307e
commit 212a3fa80c
26 changed files with 65 additions and 127 deletions

View File

@ -13,7 +13,6 @@ import AddItemButton from '../../../shared/AddItemButton';
import ItemHeading from '../../../shared/ItemHeading';
const AwardsTab = ({ data, onChange }) => {
const { t } = useTranslation();
const context = useContext(AppContext);
const { dispatch } = context;
@ -28,7 +27,7 @@ const AwardsTab = ({ data, onChange }) => {
</div>
<div className="col-span-5">
<TextField
placeholder={t('heading.placeholder')}
placeholder="Heading"
value={data.awards.heading}
onChange={v => onChange('data.awards.heading', v)}
/>
@ -62,7 +61,7 @@ const Form = ({ item, onChange, identifier = '' }) => {
<TextField
className="mb-6"
label={t('awards.title.label')}
placeholder={t('awards.title.placeholder')}
placeholder="Code For Good Hackathon"
value={item.title}
onChange={v => onChange(`${identifier}title`, v)}
/>
@ -70,7 +69,7 @@ const Form = ({ item, onChange, identifier = '' }) => {
<TextField
className="mb-6"
label={t('awards.subtitle.label')}
placeholder={t('awards.subtitle.placeholder')}
placeholder="First Place, National Level"
value={item.subtitle}
onChange={v => onChange(`${identifier}subtitle`, v)}
/>
@ -78,7 +77,6 @@ const Form = ({ item, onChange, identifier = '' }) => {
<TextArea
className="mb-6"
label={t('app:item.description.label')}
placeholder={t('awards.description.placeholder')}
value={item.description}
onChange={v => onChange(`${identifier}description`, v)}
/>

View File

@ -13,7 +13,6 @@ import ItemHeading from '../../../shared/ItemHeading';
import AddItemButton from '../../../shared/AddItemButton';
const CertificationsTab = ({ data, onChange }) => {
const { t } = useTranslation();
const context = useContext(AppContext);
const { dispatch } = context;
@ -28,7 +27,7 @@ const CertificationsTab = ({ data, onChange }) => {
</div>
<div className="col-span-5">
<TextField
placeholder={t('heading.placeholder')}
placeholder="Heading"
value={data.certifications.heading}
onChange={v => onChange('data.certifications.heading', v)}
/>
@ -62,7 +61,7 @@ const Form = ({ item, onChange, identifier = '' }) => {
<TextField
className="mb-6"
label={t('certifications.title.label')}
placeholder={t('certifications.title.placeholder')}
placeholder="CS50: Intro to Computer Science"
value={item.title}
onChange={v => onChange(`${identifier}title`, v)}
/>
@ -70,7 +69,7 @@ const Form = ({ item, onChange, identifier = '' }) => {
<TextField
className="mb-6"
label={t('certifications.subtitle.label')}
placeholder={t('certifications.subtitle.placeholder')}
placeholder="Harvard University"
value={item.subtitle}
onChange={v => onChange(`${identifier}subtitle`, v)}
/>
@ -78,7 +77,6 @@ const Form = ({ item, onChange, identifier = '' }) => {
<TextArea
className="mb-6"
label={t('app:item.description.label')}
placeholder={t('certifications.description.placeholder')}
value={item.description}
onChange={v => onChange(`${identifier}description`, v)}
/>

View File

@ -13,7 +13,6 @@ import AddItemButton from '../../../shared/AddItemButton';
import ItemHeading from '../../../shared/ItemHeading';
const EducationTab = ({ data, onChange }) => {
const { t } = useTranslation();
const context = useContext(AppContext);
const { dispatch } = context;
@ -28,7 +27,7 @@ const EducationTab = ({ data, onChange }) => {
</div>
<div className="col-span-5">
<TextField
placeholder={t('heading.placeholder')}
placeholder="Heading"
value={data.education.heading}
onChange={v => onChange('data.education.heading', v)}
/>
@ -62,7 +61,7 @@ const Form = ({ item, onChange, identifier = '' }) => {
<TextField
className="mb-6"
label={t('education.name.label')}
placeholder={t('education.name.placeholder')}
placeholder="Harvard University"
value={item.name}
onChange={v => onChange(`${identifier}name`, v)}
/>
@ -70,7 +69,7 @@ const Form = ({ item, onChange, identifier = '' }) => {
<TextField
className="mb-6"
label={t('education.major.label')}
placeholder={t('education.major.placeholder')}
placeholder="Masters in Computer Science"
value={item.major}
onChange={v => onChange(`${identifier}major`, v)}
/>
@ -87,7 +86,7 @@ const Form = ({ item, onChange, identifier = '' }) => {
<TextField
className="mb-6"
label={t('app:item.startDate.label')}
placeholder={t('app:item.startDate.placeholder')}
placeholder="March 2018"
value={item.start}
onChange={v => onChange(`${identifier}start`, v)}
/>
@ -95,7 +94,7 @@ const Form = ({ item, onChange, identifier = '' }) => {
<TextField
className="mb-6"
label={t('app:item.endDate.label')}
placeholder={t('app:item.endDate.placeholder')}
placeholder="June 2022"
value={item.end}
onChange={v => onChange(`${identifier}end`, v)}
/>
@ -105,7 +104,6 @@ const Form = ({ item, onChange, identifier = '' }) => {
rows="5"
className="mb-6"
label={t('app:item.description.label')}
placeholder={t('education.description.placeholder')}
value={item.description}
onChange={v => onChange(`${identifier}description`, v)}
/>

View File

@ -12,7 +12,6 @@ import ItemHeading from '../../../shared/ItemHeading';
import AddItemButton from '../../../shared/AddItemButton';
const ExtrasTab = ({ data, onChange }) => {
const { t } = useTranslation();
const context = useContext(AppContext);
const { dispatch } = context;
@ -27,7 +26,7 @@ const ExtrasTab = ({ data, onChange }) => {
</div>
<div className="col-span-5">
<TextField
placeholder={t('heading.placeholder')}
placeholder="Heading"
value={data.extras.heading}
onChange={v => onChange('data.extras.heading', v)}
/>
@ -61,7 +60,7 @@ const Form = ({ item, onChange, identifier = '' }) => {
<TextField
className="mb-6"
label={t('extras.key.label')}
placeholder={t('extras.key.placeholder')}
placeholder="Date of Birth"
value={item.key}
onChange={v => onChange(`${identifier}key`, v)}
/>
@ -69,7 +68,7 @@ const Form = ({ item, onChange, identifier = '' }) => {
<TextField
className="mb-6"
label={t('extras.value.label')}
placeholder={t('extras.value.placeholder')}
placeholder="6th August 1995"
value={item.value}
onChange={v => onChange(`${identifier}value`, v)}
/>

View File

@ -13,7 +13,6 @@ import AddItemButton from '../../../shared/AddItemButton';
import ItemHeading from '../../../shared/ItemHeading';
const LanguagesTab = ({ data, onChange }) => {
const { t } = useTranslation('app');
const context = useContext(AppContext);
const { dispatch } = context;
@ -47,7 +46,7 @@ const LanguagesTab = ({ data, onChange }) => {
</div>
<div className="col-span-5">
<TextField
placeholder={t('heading.placeholder')}
placeholder="Heading"
value={data.languages.heading}
onChange={v => onChange('data.languages.heading', v)}
/>
@ -82,7 +81,7 @@ const Form = ({ item, onChange, identifier = '' }) => {
<TextField
className="mb-6"
label={t('languages.key.label')}
placeholder={t('languages.key.placeholder')}
placeholder="English"
value={item.key}
onChange={v => onChange(`${identifier}key`, v)}
/>

View File

@ -6,7 +6,7 @@ import TextField from '../../../shared/TextField';
import Checkbox from '../../../shared/Checkbox';
const ObjectiveTab = ({ data, onChange }) => {
const { t } = useTranslation(['leftSidebar', 'app']);
const { t } = useTranslation('leftSidebar');
return (
<div>
@ -19,7 +19,7 @@ const ObjectiveTab = ({ data, onChange }) => {
</div>
<div className="col-span-5">
<TextField
placeholder={t('app:heading.placeholder')}
placeholder="Heading"
value={data.objective.heading}
onChange={v => onChange('data.objective.heading', v)}
/>
@ -32,8 +32,8 @@ const ObjectiveTab = ({ data, onChange }) => {
rows="15"
className="mb-4"
label={t('objective.objective.label')}
placeholder={t('objective.objective.placeholder')}
value={data.objective.body}
placeholder="Looking for a challenging role in a reputable organization to utilize my technical, database, and management skills for the growth of the organization as well as to enhance my knowledge about new and emerging trends in the IT sector."
onChange={v => onChange('data.objective.body', v)}
/>
</div>

View File

@ -20,7 +20,7 @@ const ProfileTab = ({ data, onChange }) => {
<TextField
className="mb-6"
label={t('profile.firstName.label')}
placeholder={t('profile.firstName.placeholder')}
placeholder="Jane"
value={data.profile.firstName}
onChange={v => onChange('data.profile.firstName', v)}
/>
@ -28,7 +28,7 @@ const ProfileTab = ({ data, onChange }) => {
<TextField
className="mb-6"
label={t('profile.lastName.label')}
placeholder={t('profile.lastName.placeholder')}
placeholder="Doe"
value={data.profile.lastName}
onChange={v => onChange('data.profile.lastName', v)}
/>
@ -37,7 +37,7 @@ const ProfileTab = ({ data, onChange }) => {
<TextField
className="mb-6"
label={t('profile.subtitle.label')}
placeholder={t('profile.subtitle.placeholder')}
placeholder="Full-Stack Web Developer"
value={data.profile.subtitle}
onChange={v => onChange('data.profile.subtitle', v)}
/>
@ -47,7 +47,7 @@ const ProfileTab = ({ data, onChange }) => {
<TextField
className="mb-6"
label={t('profile.address.line1.label')}
placeholder={t('profile.address.line1.placeholder')}
placeholder="Palladium Complex"
value={data.profile.address.line1}
onChange={v => onChange('data.profile.address.line1', v)}
/>
@ -55,7 +55,7 @@ const ProfileTab = ({ data, onChange }) => {
<TextField
className="mb-6"
label={t('profile.address.line2.label')}
placeholder={t('profile.address.line2.placeholder')}
placeholder="140 E 14th St"
value={data.profile.address.line2}
onChange={v => onChange('data.profile.address.line2', v)}
/>
@ -63,7 +63,7 @@ const ProfileTab = ({ data, onChange }) => {
<TextField
className="mb-6"
label={t('profile.address.line3.label')}
placeholder={t('profile.address.line3.placeholder')}
placeholder="New York, NY 10003 USA"
value={data.profile.address.line3}
onChange={v => onChange('data.profile.address.line3', v)}
/>
@ -81,7 +81,7 @@ const ProfileTab = ({ data, onChange }) => {
<TextField
className="mb-6"
label={t('profile.website.label')}
placeholder="google.com"
placeholder="janedoe.me"
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="john.doe@example.com"
placeholder="jane.doe@example.com"
value={data.profile.email}
onChange={v => onChange('data.profile.email', v)}
/>

View File

@ -13,7 +13,6 @@ import ItemHeading from '../../../shared/ItemHeading';
import AddItemButton from '../../../shared/AddItemButton';
const ReferencesTab = ({ data, onChange }) => {
const { t } = useTranslation();
const context = useContext(AppContext);
const { dispatch } = context;
@ -47,7 +46,7 @@ const ReferencesTab = ({ data, onChange }) => {
</div>
<div className="col-span-5">
<TextField
placeholder={t('heading.placeholder')}
placeholder="Heading"
value={data.references.heading}
onChange={v => onChange('data.references.heading', v)}
/>
@ -82,7 +81,7 @@ const Form = ({ item, onChange, identifier = '' }) => {
<TextField
className="mb-6"
label={t('references.name.label')}
placeholder={t('references.name.placeholder')}
placeholder="Richard Hendricks"
value={item.name}
onChange={v => onChange(`${identifier}name`, v)}
/>
@ -90,7 +89,7 @@ const Form = ({ item, onChange, identifier = '' }) => {
<TextField
className="mb-6"
label={t('references.position.label')}
placeholder={t('references.position.placeholder')}
placeholder="CEO, Pied Piper"
value={item.position}
onChange={v => onChange(`${identifier}position`, v)}
/>
@ -115,7 +114,6 @@ const Form = ({ item, onChange, identifier = '' }) => {
rows="5"
className="mb-6"
label={t('app:item.description.label')}
placeholder={t('references.description.placeholder')}
value={item.description}
onChange={v => onChange(`${identifier}description`, v)}
/>

View File

@ -8,7 +8,6 @@ import { addItem, deleteItem } from '../../../utils';
import ItemHeading from '../../../shared/ItemHeading';
const SkillsTab = ({ data, onChange }) => {
const { t } = useTranslation();
const context = useContext(AppContext);
const { dispatch } = context;
@ -23,7 +22,7 @@ const SkillsTab = ({ data, onChange }) => {
</div>
<div className="col-span-5">
<TextField
placeholder={t('heading.placeholder')}
placeholder="Heading"
value={data.skills.heading}
onChange={v => onChange('data.skills.heading', v)}
/>
@ -42,12 +41,10 @@ const SkillsTab = ({ data, onChange }) => {
};
const Form = ({ item, onChange }) => {
const { t } = useTranslation('leftSidebar');
return (
<input
className="appearance-none block w-full bg-gray-200 text-gray-700 border border-gray-200 rounded py-3 px-4 leading-tight focus:outline-none focus:bg-white focus:border-gray-500"
placeholder={t('skills.item.placeholder')}
placeholder="Team Building &amp; Training"
value={item}
onChange={e => onChange(e.target.value)}
type="text"

View File

@ -13,7 +13,6 @@ import AddItemButton from '../../../shared/AddItemButton';
import ItemHeading from '../../../shared/ItemHeading';
const WorkTab = ({ data, onChange }) => {
const { t } = useTranslation();
const context = useContext(AppContext);
const { dispatch } = context;
@ -25,7 +24,7 @@ const WorkTab = ({ data, onChange }) => {
</div>
<div className="col-span-5">
<TextField
placeholder={t('heading.placeholder')}
placeholder="Heading"
value={data.work.heading}
onChange={v => onChange('data.work.heading', v)}
/>
@ -59,7 +58,7 @@ const Form = ({ item, onChange, identifier = '' }) => {
<TextField
className="mb-6"
label={t('work.name.label')}
placeholder={t('work.name.placeholder')}
placeholder="Amazon"
value={item.title}
onChange={v => onChange(`${identifier}title`, v)}
/>
@ -67,7 +66,7 @@ const Form = ({ item, onChange, identifier = '' }) => {
<TextField
className="mb-6"
label={t('work.role.label')}
placeholder={t('work.role.placeholder')}
placeholder="Full-Stack Web Developer"
value={item.role}
onChange={v => onChange(`${identifier}role`, v)}
/>
@ -76,7 +75,7 @@ const Form = ({ item, onChange, identifier = '' }) => {
<TextField
className="mb-6"
label={t('app:item.startDate.label')}
placeholder={t('app:item.startDate.placeholder')}
placeholder="March 2018"
value={item.start}
onChange={v => onChange(`${identifier}start`, v)}
/>
@ -84,7 +83,7 @@ const Form = ({ item, onChange, identifier = '' }) => {
<TextField
className="mb-6"
label={t('app:item.endDate.label')}
placeholder={t('app:item.endDate.placeholder')}
placeholder="June 2022"
value={item.end}
onChange={v => onChange(`${identifier}end`, v)}
/>
@ -94,7 +93,6 @@ const Form = ({ item, onChange, identifier = '' }) => {
rows="5"
className="mb-6"
label={t('app:item.description.label')}
placeholder={t('work.description.placeholder')}
value={item.description}
onChange={v => onChange(`${identifier}description`, v)}
/>

View File

@ -101,7 +101,7 @@ const AboutTab = () => {
<div className="mt-5">
<p className="text-xs font-gray-600 text-center">
<Trans t={t} i18nKey="about.footer.credit">
Reactive Resume is a project by
Made with Love by
<a
className="font-bold hover:underline"
href="https://www.amruthpillai.com/"
@ -110,7 +110,6 @@ const AboutTab = () => {
>
Amruth Pillai
</a>
.
</Trans>
</p>
<p className="text-xs font-gray-600 text-center">{t('about.footer.thanks')}</p>

View File

@ -1,16 +1,11 @@
{
"heading": {
"placeholder": "Heading"
},
"item": {
"add": "Add {{- heading}}",
"startDate": {
"label": "Start Date",
"placeholder": "March 2018"
"label": "Start Date"
},
"endDate": {
"label": "End Date",
"placeholder": "March 2022"
"label": "End Date"
},
"description": {
"label": "Description"

View File

@ -1,13 +1,8 @@
{
"title": {
"label": "Title",
"placeholder": "Math & Science Olympiad"
"label": "Title"
},
"subtitle": {
"label": "Subtitle",
"placeholder": "First Place, International Level"
},
"description": {
"placeholder": "You can write about what qualities made you succeed in getting this award."
"label": "Subtitle"
}
}

View File

@ -1,13 +1,8 @@
{
"title": {
"label": "Title",
"placeholder": "Android Development Nanodegree"
"label": "Name"
},
"subtitle": {
"label": "Subtitle",
"placeholder": "Udacity"
},
"description": {
"placeholder": "You can write about what you learned from your certification program."
"label": "Authority"
}
}

View File

@ -1,16 +1,11 @@
{
"name": {
"label": "Name",
"placeholder": "Harvard University"
"label": "Name"
},
"major": {
"label": "Major",
"placeholder": "Masters in Computer Science"
"label": "Major"
},
"grade": {
"label": "Grade"
},
"description": {
"placeholder": "You can write about projects or special credit classes that you took while studying at this school."
}
}

View File

@ -1,10 +1,8 @@
{
"key": {
"label": "Key",
"placeholder": "Date of Birth"
"label": "Key"
},
"value": {
"label": "Value",
"placeholder": "6th August 1995"
"label": "Value"
}
}

View File

@ -4,7 +4,6 @@ import work from './work.json';
import education from './education.json';
import awards from './awards.json';
import certifications from './certifications.json';
import skills from './skills.json';
import languages from './languages.json';
import references from './references.json';
import extras from './extras.json';
@ -16,7 +15,6 @@ export default {
education,
awards,
certifications,
skills,
languages,
references,
extras,

View File

@ -1,7 +1,6 @@
{
"key": {
"label": "Key",
"placeholder": "Dothraki"
"label": "Name"
},
"rating": {
"label": "Rating"

View File

@ -1,6 +1,5 @@
{
"objective": {
"label": "Objective",
"placeholder": "Looking for a challenging role in a reputable organization to utilize my technical, database, and management skills for the growth of the organization as well as to enhance my knowledge about new and emerging trends in the IT sector."
"label": "Objective"
}
}

View File

@ -3,29 +3,24 @@
"label": "Photo URL"
},
"firstName": {
"label": "First Name",
"placeholder": "Jane"
"label": "First Name"
},
"lastName": {
"label": "Last Name",
"placeholder": "Doe"
"label": "Last Name"
},
"subtitle": {
"label": "Subtitle",
"placeholder": "Full Stack Web Developer"
"label": "Subtitle"
},
"address": {
"label": "Address",
"line1": {
"label": "Address Line 1",
"placeholder": "Palladium Complex"
"label": "Address Line 1"
},
"line2": {
"label": "Address Line 2",
"placeholder": "140 E 14th St"
"label": "Address Line 2"
},
"line3": {
"label": "Address Line 3",
"placeholder": "New York, NY 10003 USA"
"label": "Address Line 3"
}
},
"phone": {

View File

@ -1,19 +1,14 @@
{
"name": {
"label": "Name",
"placeholder": "Richard Hendricks"
"label": "Name"
},
"position": {
"label": "Position",
"placeholder": "CEO, Pied Piper"
"label": "Position"
},
"phone": {
"label": "Phone Number"
},
"email": {
"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,5 +0,0 @@
{
"item": {
"placeholder": "Cooking"
}
}

View File

@ -1,13 +1,8 @@
{
"name": {
"label": "Name",
"placeholder": "Amazon"
"label": "Name"
},
"role": {
"label": "Role",
"placeholder": "Front-end Web Developer"
},
"description": {
"placeholder": "You can write about what you specialized in while working at the company and what projects you were a part of."
"label": "Role"
}
}

View File

@ -2,7 +2,7 @@
"title": "About",
"documentation": {
"heading": "Documentation",
"body": "Want to know more about the app? Wouldn't it be nice if there was a guide to setting it up on your local machine? Need information on how to contribute to the project? Look no further, there's comprehensive documentation made just for you.",
"body": "Want to know more about the app? Need information on how to contribute to the project? Look no further, there's comprehensive guide made just for you.",
"buttons": {
"documentation": "Documentation"
}
@ -30,7 +30,7 @@
}
},
"footer": {
"credit": "Reactive Resume is a project by <1>Amruth Pillai</1>.",
"credit": "Made with Love by <1>Amruth Pillai</1>",
"thanks": "Thank you for using Reactive Resume!"
}
}

View File

@ -10,7 +10,7 @@
}
},
"downloadResume": {
"heading": "Download Resume",
"heading": "Download Your Resume",
"body": "You can click on the button below to download a PDF version of your resume instantly. For best results, please use the latest version of Google Chrome.",
"buttons": {
"saveAsPdf": "Save as PDF"

View File

@ -2,6 +2,6 @@
"title": "Colors",
"colorOptions": "Color Options",
"primaryColor": "Primary Color",
"accentColor": "Accent Color",
"accentColor": "Secondary Color",
"clipboardCopyAction": "{{color}} has been copied to the clipboard."
}