...
 
Commits (2)
......@@ -3,4 +3,3 @@ Things to do
- Add a Snackbar when a button is clicked (https://material-ui.com/demos/snackbars/)
- Store the state in the URL fragment or in the localStorage (and add a button to reset)
- Translate to English
......@@ -38,13 +38,13 @@ const messages = defineMessages({
id: "app.title",
defaultMessage: "Who's talking?",
},
cisdude: {
id: "app.cisdude",
defaultMessage: "A cis dude",
dude: {
id: "app.dude",
defaultMessage: "A dude",
},
notcisdude: {
id: "app.notcisdude",
defaultMessage: "Not a cis dude",
notdude: {
id: "app.notdude",
defaultMessage: "Not a dude",
},
});
......@@ -73,14 +73,14 @@ class App extends Component {
<ConnectedSpeakerButton
category="man"
isNew={true}
text={this.props.intl.formatMessage(messages.cisdude)}
text={this.props.intl.formatMessage(messages.dude)}
/>
</Grid>
<Grid item>
<ConnectedSpeakerButton
category="other"
isNew={true}
text={this.props.intl.formatMessage(messages.notcisdude)}
text={this.props.intl.formatMessage(messages.notdude)}
/>
</Grid>
<Grid item xs={12}>
......
import React from 'react';
import ReactDOM from 'react-dom';
import { Provider } from 'react-redux'
import { IntlProvider } from 'react-intl';
import configureStore from '../store';
import App from './App';
it('renders without crashing', () => {
const div = document.createElement('div');
ReactDOM.render(<App />, div);
const store = configureStore();
ReactDOM.render(
<Provider store={store}>
<IntlProvider locale="en">
<App />
</IntlProvider>
</Provider>,
div);
ReactDOM.unmountComponentAtNode(div);
});
......@@ -19,7 +19,7 @@ const messages = defineMessages({
},
timeMan: {
id: "exportbutton.timeMan",
defaultMessage: "Cis dude speaking time",
defaultMessage: "Men speaking time",
},
timeOther: {
id: "exportbutton.timeOther",
......@@ -27,7 +27,7 @@ const messages = defineMessages({
},
speechesMan: {
id: "exportbutton.speechesMan",
defaultMessage: "Cis dude speeches",
defaultMessage: "Speeches by men",
},
speechesOther: {
id: "exportbutton.speechesOther",
......@@ -35,7 +35,7 @@ const messages = defineMessages({
},
speakersMan: {
id: "exportbutton.speakersMan",
defaultMessage: "Number of cis dudes speaking",
defaultMessage: "Number of men speaking",
},
speakersOther: {
id: "exportbutton.speakersOther",
......
......@@ -29,7 +29,7 @@ const messages = defineMessages({
},
header: {
id: "stats.header",
defaultMessage: "Cis dudes have talked:",
defaultMessage: "Men have talked:",
},
timePercent: {
id: "stats.timePercent",
......
{
"alreadytalkedbutton.text": "Cette personne a déjà parlé",
"app.cisdude": "Un mec cis",
"app.notcisdude": "Pas un mec cis",
"app.dude": "Un mec",
"app.notdude": "Pas un mec",
"app.title": "Qui parle ?",
"exportbutton.date": "Date",
"exportbutton.save": "Sauvegarder",
"exportbutton.speakersMan": "Nombre d'intervenants mecs cis",
"exportbutton.speakersMan": "Nombre d'intervenants mecs",
"exportbutton.speakersOther": "Nombre d'autres intervenants",
"exportbutton.speechesMan": "Interventions de mecs cis",
"exportbutton.speechesMan": "Interventions de mecs",
"exportbutton.speechesOther": "Interventions des autres",
"exportbutton.timeMan": "Temps parlé par des mecs cis",
"exportbutton.timeMan": "Temps parlé par des mecs",
"exportbutton.timeOther": "Temps parlé par des autres",
"footer.text1": "Très largement inspiré de",
"footer.text2": "En fait, c'est pareil mais avec quelques stats en plus.",
"footer.viewCode": "Voir le code",
"header.title": "Les hommes parlent trop, prouvez-le.",
"stats.forOthers": "pour les autres :",
"stats.header": "Les mecs cis ont parlé :",
"stats.header": "Les mecs ont parlé :",
"stats.nobody": "Personne n'a encore parlé.",
"stats.speakersPercent": "{value}% des intervenant⋅e⋅s",
"stats.speechesDuration": "Durée moyenne des interventions :",
......@@ -27,4 +27,4 @@
"timerlimitedit.modaltitle": "Temps de parole maximum",
"timerlimitedit.nolimit": "sans limite",
"timerlimitedit.seconds": "Secondes"
}
\ No newline at end of file
}