completed translation extraction of profile and work

This commit is contained in:
Amruth Pillai
2020-03-29 23:28:24 +05:30
parent e75c0769c6
commit 9510d44949
18 changed files with 275 additions and 177 deletions

View File

@ -1,19 +1,15 @@
import i18n from 'i18next';
import { initReactI18next } from 'react-i18next';
import leftSidebarEn from './locales/en/leftSidebar.json';
import resources from './resources';
i18n.use(initReactI18next).init({
lng: 'en',
fallbackLng: 'en',
resources,
debug: true,
resources: {
en: {
translations: leftSidebarEn,
},
},
ns: ['translations'],
defaultNS: 'translations',
ns: ['app', 'leftSidebar'],
defaultNS: 'app',
});
export default i18n;

View File

@ -1,5 +0,0 @@
{
"profile": {
"photoUrl": "Photo URL"
}
}

View File

@ -0,0 +1,22 @@
{
"heading": {
"placeholder": "Heading"
},
"item": {
"addHeading": "Add {{heading}}",
"startDate": {
"label": "Start Date",
"placeholder": "March 2018"
},
"endDate": {
"label": "End Date",
"placeholder": "current"
}
},
"buttons": {
"add": {
"label": "Add"
}
},
"markdownHelpText": "You can use <1>GitHub Flavored Markdown</1> to style this section of text."
}

View File

@ -0,0 +1,3 @@
import app from './app.json';
export default app;

View File

@ -0,0 +1,7 @@
import app from './app';
import leftSidebar from './leftSidebar';
export default {
app,
leftSidebar,
};

View File

@ -0,0 +1,9 @@
import profile from './profile.json';
import objective from './objective.json';
import work from './work.json';
export default {
profile,
objective,
work,
};

View File

@ -0,0 +1,6 @@
{
"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."
}
}

View File

@ -0,0 +1,44 @@
{
"photoUrl": {
"label": "Photo URL",
"placeholder": "https://i.imgur.com/..."
},
"firstName": {
"label": "First Name",
"placeholder": "Jane"
},
"lastName": {
"label": "Last Name",
"placeholder": "Doe"
},
"subtitle": {
"label": "Subtitle",
"placeholder": "Full Stack Web Developer"
},
"address": {
"line1": {
"label": "Address Line 1",
"placeholder": "Palladium Complex"
},
"line2": {
"label": "Address Line 2",
"placeholder": "140 E 14th St"
},
"line3": {
"label": "Address Line 3",
"placeholder": "New York, NY 10003 USA"
}
},
"phone": {
"label": "Phone Number",
"placeholder": "+1 541 754 3010"
},
"website": {
"label": "Website",
"placeholder": "google.com"
},
"email": {
"label": "Email Address",
"placeholder": "john.doe@example.com"
}
}

View File

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

View File

@ -0,0 +1,5 @@
import en from './en';
export default {
en,
};