fix: made some missing texts translatable

BREAKING CHANGE: locales without the new fields will display the field name
This commit is contained in:
TryAllTheThings
2022-11-25 18:21:24 +01:00
parent 77c587681b
commit deb4e0a0de
3 changed files with 7 additions and 4 deletions

View File

@ -103,7 +103,7 @@ const Layout = () => {
<Droppable key={index} droppableId={index}>
{(provided) => (
<div ref={provided.innerRef} className={styles.column} {...provided.droppableProps}>
<p className={styles.heading}>{columnIndex ? 'Sidebar' : 'Main'}</p>
<p className={styles.heading}>{columnIndex ? t<string>('builder.rightSidebar.sections.layout.sidebar') : t<string>('builder.rightSidebar.sections.layout.main')}</p>
<div className={styles.base} />

View File

@ -51,7 +51,7 @@ const Settings = () => {
const pageConfig: PageConfig | undefined = useMemo(() => get(resume, 'metadata.page'), [resume]);
const isDarkMode = useMemo(() => theme === 'dark', [theme]);
const exampleDateString = useMemo(() => `Eg. ${dayjs().utc().format(dateConfig.format)}`, [dateConfig.format]);
const exampleDateString = useMemo(() => t<string>('builder.rightSidebar.sections.settings.global.date.prefix') + ` ${dayjs().utc().format(dateConfig.format)}`, [dateConfig.format]);
const themeString = useMemo(() => (isDarkMode ? 'Matte Black Everything' : 'As bright as your future'), [isDarkMode]);
const { mutateAsync: loadSampleDataMutation } = useMutation<Resume, ServerError, LoadSampleDataParams>(

View File

@ -257,7 +257,9 @@
"heading": "Layout",
"tooltip": {
"reset-layout": "Reset Layout"
}
},
"main": "Main",
"sidebar": "Sidebar"
},
"links": {
"bugs-features": {
@ -278,7 +280,8 @@
"global": {
"date": {
"primary": "Date",
"secondary": "Date format to use across the app"
"secondary": "Date format to use across the app",
"prefix": "Eg."
},
"heading": "Global",
"language": {