diff --git a/src/themes/reorx/index.ejs b/src/themes/reorx/index.ejs index 59af7e1..22c9caa 100644 --- a/src/themes/reorx/index.ejs +++ b/src/themes/reorx/index.ejs @@ -64,10 +64,10 @@ function dateRange(item, level) { // level: 1: year, 2: month, 3: day switch (level) { case 1: - format = t('format_year') + format = t('format.year') break; case 2: - format = t('format_year_month') + format = t('format.year_month') break; } if (format) { @@ -90,7 +90,7 @@ function dateRange(item, level) { <% if (hasItems(cv.education)) { %>
-

<%= t('title_education') %>

+

<%= t('title.education') %>

<% for (const item of cv.education) { %> @@ -105,10 +105,10 @@ function dateRange(item, level) { <%- dateRange(item, 2) %> - <% if (item.score) { %>
Overall GPA: <%= item.score %>
<% } %> + <% if (item.score) { %>
<%= t('overall_gpa') %>: <%= item.score %>
<% } %> <% if (item.courses && item.courses.length > 0) { %>
- Courses: <%= item.courses.join('; ') %> + <%= t('courses') %>: <%= item.courses.join('; ') %>
<% } %> @@ -120,7 +120,7 @@ function dateRange(item, level) { <% if (hasItems(cv.work)) { %>
-

Work

+

<%= t('title.work') %>

<% for (const item of cv.work) { %> @@ -152,7 +152,7 @@ function dateRange(item, level) { <% if (hasItems(cv.projects)) { %>
-

Projects

+

<%= t('title.projects') %>

<% for (const item of cv.projects) { %> @@ -195,7 +195,7 @@ function dateRange(item, level) { <% if (hasItems(cv.sideProjects)) { %>
-

Side-projects

+

<%= t('title.side_projects') %>

@@ -228,7 +228,7 @@ function dateRange(item, level) { <% if (hasItems(cv.skills)) { %>
-

Skills

+

<%= t('title.skills') %>

@@ -256,7 +256,7 @@ function dateRange(item, level) { <% if (hasItems(cv.languages)) { %>
-

Languages

+

<%= t('title.languages') %>

<% for (const item of cv.languages) { %> @@ -283,10 +283,10 @@ function dateRange(item, level) { <% if (cv.meta) { %> <% } %> diff --git a/src/themes/reorx/locales/en.js b/src/themes/reorx/locales/en.js index 09b88bc..ce921de 100644 --- a/src/themes/reorx/locales/en.js +++ b/src/themes/reorx/locales/en.js @@ -1,5 +1,18 @@ export default { - 'title_education': 'Educations', - 'format_year': 'YYYY', - 'format_year_month': 'MMM YYYY', + 'title': { + 'education': 'Educations', + 'work': 'Work Experiences', + 'projects': 'Projects', + 'side_projects': 'Side-projects', + 'skills': 'Skills', + 'languages': 'Languages', + }, + 'overall_gpa': 'Overall GPA', + 'courses': 'Courses', + 'version': 'Version', + 'last_modified': 'Last Modified', + 'format': { + 'year': 'YYYY', + 'year_month': 'MMM YYYY', + }, } diff --git a/src/themes/reorx/locales/zh-cn.js b/src/themes/reorx/locales/zh-cn.js index 98219a5..7821679 100644 --- a/src/themes/reorx/locales/zh-cn.js +++ b/src/themes/reorx/locales/zh-cn.js @@ -1,5 +1,9 @@ export default { - 'title_education': '教育经历', - 'format_year': 'YYYY', - 'format_year_month': 'YYYY年MMM', + 'title': { + 'education': '教育经历', + }, + 'format': { + 'year': 'YYYY', + 'year_month': 'YYYY年MMM', + }, }