-
Notifications
You must be signed in to change notification settings - Fork 12
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge branch 'epic/cv-x-wing-squadron' into feature/#261-CV-X-Wing-Sq…
…uadron-Create-languages-section
- Loading branch information
Showing
9 changed files
with
43 additions
and
88 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -330,4 +330,5 @@ describe('Testing profile-section.mapper.ts', () => { | |
}); | ||
}); | ||
}); | ||
|
||
export {}; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
14 changes: 10 additions & 4 deletions
14
...d2html/src/engine/cv-x-wing-squadron/html-parts/about-me-section/about-me-section.part.ts
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
5 changes: 5 additions & 0 deletions
5
...ne/cv-x-wing-squadron/html-parts/about-me-section/labels/about-me-english-labels.const.ts
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,5 @@ | ||
import { AboutMeLabels } from './about-me-labels.model'; | ||
|
||
export const englishAboutMeLabels: AboutMeLabels = { | ||
ABOUT_ME_HEADING: 'About me', | ||
}; |
3 changes: 3 additions & 0 deletions
3
...src/engine/cv-x-wing-squadron/html-parts/about-me-section/labels/about-me-labels.model.ts
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,3 @@ | ||
export interface AboutMeLabels { | ||
ABOUT_ME_HEADING: string; | ||
} |
5 changes: 5 additions & 0 deletions
5
...ne/cv-x-wing-squadron/html-parts/about-me-section/labels/about-me-spanish-labels.const.ts
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,5 @@ | ||
import { AboutMeLabels } from './about-me-labels.model'; | ||
|
||
export const spanishAboutMeLabels: AboutMeLabels = { | ||
ABOUT_ME_HEADING: 'Sobre mí', | ||
}; |
15 changes: 15 additions & 0 deletions
15
...es/manfred2html/src/engine/cv-x-wing-squadron/html-parts/about-me-section/labels/index.ts
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,15 @@ | ||
import { Language } from '@/model'; | ||
import { AboutMeLabels } from './about-me-labels.model'; | ||
import { spanishAboutMeLabels } from './about-me-spanish-labels.const'; | ||
import { englishAboutMeLabels } from './about-me-english-labels.const'; | ||
|
||
export const getLabels = (language: Language): AboutMeLabels => { | ||
switch (language) { | ||
case 'es': | ||
return spanishAboutMeLabels; | ||
case 'en': | ||
return englishAboutMeLabels; | ||
default: | ||
throw new Error(`Language not supported: ${language}`); | ||
} | ||
}; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters