mirror of
https://github.com/AmruthPillai/Reactive-Resume.git
synced 2025-11-17 02:01:29 +10:00
completed translation extraction of profile and work
This commit is contained in:
@ -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;
|
||||
|
||||
@ -1,5 +0,0 @@
|
||||
{
|
||||
"profile": {
|
||||
"photoUrl": "Photo URL"
|
||||
}
|
||||
}
|
||||
22
src/i18n/resources/en/app/app.json
Normal file
22
src/i18n/resources/en/app/app.json
Normal 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."
|
||||
}
|
||||
3
src/i18n/resources/en/app/index.js
Normal file
3
src/i18n/resources/en/app/index.js
Normal file
@ -0,0 +1,3 @@
|
||||
import app from './app.json';
|
||||
|
||||
export default app;
|
||||
7
src/i18n/resources/en/index.js
Normal file
7
src/i18n/resources/en/index.js
Normal file
@ -0,0 +1,7 @@
|
||||
import app from './app';
|
||||
import leftSidebar from './leftSidebar';
|
||||
|
||||
export default {
|
||||
app,
|
||||
leftSidebar,
|
||||
};
|
||||
9
src/i18n/resources/en/leftSidebar/index.js
Normal file
9
src/i18n/resources/en/leftSidebar/index.js
Normal 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,
|
||||
};
|
||||
6
src/i18n/resources/en/leftSidebar/objective.json
Normal file
6
src/i18n/resources/en/leftSidebar/objective.json
Normal 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."
|
||||
}
|
||||
}
|
||||
44
src/i18n/resources/en/leftSidebar/profile.json
Normal file
44
src/i18n/resources/en/leftSidebar/profile.json
Normal 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"
|
||||
}
|
||||
}
|
||||
14
src/i18n/resources/en/leftSidebar/work.json
Normal file
14
src/i18n/resources/en/leftSidebar/work.json
Normal 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."
|
||||
}
|
||||
}
|
||||
5
src/i18n/resources/index.js
Normal file
5
src/i18n/resources/index.js
Normal file
@ -0,0 +1,5 @@
|
||||
import en from './en';
|
||||
|
||||
export default {
|
||||
en,
|
||||
};
|
||||
Reference in New Issue
Block a user