Skip to content

Commit

Permalink
Fix language for date in timeline item (Close #7), update Data and me…
Browse files Browse the repository at this point in the history
…ta tags
  • Loading branch information
Babasile committed Dec 9, 2021
1 parent 9cd81c4 commit ba81933
Show file tree
Hide file tree
Showing 4 changed files with 13 additions and 7 deletions.
6 changes: 3 additions & 3 deletions public/index.html
Original file line number Diff line number Diff line change
@@ -1,14 +1,14 @@
<!DOCTYPE html>
<html lang="fr">
<html>
<head>
<meta charset="UTF-8" />
<link rel="icon" href="%PUBLIC_URL%/favicon.ico" />
<meta name="viewport" content="width=device-width, initial-scale=1" />
<meta name="theme-color" content="#000000" />
<meta name="author" content="Basile Buchler" />
<meta
name="description"
content="Je suis <b>Basile Buchler</b>, un développeur full-stack passioné. En quelques mots: curieux, rigueur et teamwork !"
name="Description"
CONTENT="Je suis Basile Buchler, un développeur full-stack passioné. En quelques mots: curieux, rigueur et teamwork !"
/>
<meta property="og:type" content="website" />
<meta
Expand Down
4 changes: 2 additions & 2 deletions src/components/commons/timelineItem.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ interface Props {
}

function TimelineItem(props: Props) {
const { t } = useTranslation();
const { t, i18n } = useTranslation();
let details;
let renderDetails = props.details.map((detail, i) => (
<li key={i + "-d"}>{detail.name}</li>
Expand All @@ -43,7 +43,7 @@ function TimelineItem(props: Props) {
}

function renderDate() {
const formatter = new Intl.DateTimeFormat("fr", { month: "long" });
const formatter = new Intl.DateTimeFormat(i18n.language, { month: "long" });
if (props.formatDate) {
return (
<>
Expand Down
5 changes: 4 additions & 1 deletion src/i18n/en/Data.class.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -169,7 +169,10 @@ export class Data implements Resume {
missions: [],
keywords: [
{ name: "Java" },
{ name: "GIT" }
{ name: "GIT" },
{ name: "IntelliJ IDEA" },
{ name: "JIRA" },
{ name: "Jenkins" },
],
},
{
Expand Down
5 changes: 4 additions & 1 deletion src/i18n/fr/Data.class.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -169,7 +169,10 @@ export class Data implements Resume {
missions: [],
keywords: [
{ name: "Java" },
{ name: "GIT" }
{ name: "GIT" },
{ name: "IntelliJ IDEA" },
{ name: "JIRA" },
{ name: "Jenkins" },
],
},
{
Expand Down

0 comments on commit ba81933

Please sign in to comment.