Skip to content

Commit

Permalink
More Borrel Freedom (#372) (#373)
Browse files Browse the repository at this point in the history
* update drinks to richer content

* remove redundant loc strings

* format drinks
  • Loading branch information
SanderHageman authored Nov 1, 2023
1 parent 25cd8ee commit e100ed1
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 23 deletions.
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

0 comments on commit e100ed1

Please sign in to comment.