Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Dev to master #373

Merged
merged 1 commit into from
Nov 1, 2023
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
23 changes: 6 additions & 17 deletions src/components/Drinks.jsx
Original file line number Diff line number Diff line change
@@ -1,22 +1,12 @@
import React from 'react';
import { Card } from 'semantic-ui-react';
import { graphql, StaticQuery } from 'gatsby';
import { getTranslation, getLanguage, metadata } from '../data/i18n';
import { getLanguage, metadata } from '../data/i18n';
import Markdown from 'markdown-to-jsx';

class Drinks extends React.Component {
renderDescription = (drinks, lg) => {
return (
<>
{drinks.description}
<b>
{getTranslation(lg, 'drinks.when', [
drinks.day,
drinks.time,
drinks.location,
])}
</b>
</>
);
return <Markdown>{drinks.descriptionlong.descriptionlong}</Markdown>;
};

render() {
Expand All @@ -42,12 +32,11 @@ const drinksQuery = graphql`
query drinksQuery {
allContentfulDrinks {
nodes {
day
node_locale
time
location
title
description
descriptionlong {
descriptionlong
}
}
}
}
Expand Down
3 changes: 0 additions & 3 deletions src/data/en-us.json
Original file line number Diff line number Diff line change
@@ -1,7 +1,4 @@
{
"drinks": {
"when": "Every {0} starting at {1} in the {2}!"
},
"board": {
"number": "Board {0}",
"current": "The current board",
Expand Down
3 changes: 0 additions & 3 deletions src/data/nl.json
Original file line number Diff line number Diff line change
@@ -1,7 +1,4 @@
{
"drinks": {
"when": "Elke {0} vanaf {1} in de {2}!"
},
"board": {
"number": "Bestuur {0}",
"current": "Het huidige bestuur",
Expand Down
Loading