Skip to content

Commit

Permalink
fix: fix translation files
Browse files Browse the repository at this point in the history
  • Loading branch information
juancarlosfarah committed Mar 25, 2020
1 parent c0c8f7b commit 5345f97
Show file tree
Hide file tree
Showing 4 changed files with 42 additions and 15 deletions.
16 changes: 9 additions & 7 deletions scripts/deploy.sh
Original file line number Diff line number Diff line change
Expand Up @@ -112,12 +112,14 @@ aws s3 sync ${BUILD} s3://${APP_DIR} --delete
# see: https://docs.aws.amazon.com/IAM/latest/UserGuide/reference_aws-services-that-work-with-iam.html

# ensure the correct distribution variables are defined
#if \
# [ -z "${DISTRIBUTION}" ]; then
# echo "error: environment variable DISTRIBUTION is not defined" 1>&2
# echo "error: contact your favourite Graasp engineer if you keep running into trouble" 1>&2
# exit 1
#fi
if \
[ -z "${DISTRIBUTION}" ]; then
echo "error: environment variable DISTRIBUTION is not defined" 1>&2
echo "error: contact your favourite Graasp engineer if you keep running into trouble" 1>&2
exit 1
fi

# invalidate cloudfront distribution
# aws cloudfront create-invalidation --distribution-id ${DISTRIBUTION} --paths /${APP_PATH}/*
aws cloudfront create-invalidation --distribution-id ${DISTRIBUTION} --paths /${APP_PATH}/*

echo "published app to https://${REACT_APP_HOST}/${APP_PATH}/index.html"
2 changes: 1 addition & 1 deletion src/components/modes/teacher/Response.js
Original file line number Diff line number Diff line change
Expand Up @@ -154,7 +154,7 @@ class Response extends Component {
open={confirmDialogOpen}
title={t('Delete Student Response')}
text={t(
'By clicking "Delete", you will be deleting the student\'s response. This action cannot be undone.'
"By clicking 'Delete', you will be deleting the student's response. This action cannot be undone."
)}
handleClose={this.handleToggleConfirmDialog(false)}
handleConfirm={this.handleConfirmDelete}
Expand Down
20 changes: 16 additions & 4 deletions src/langs/en.json
Original file line number Diff line number Diff line change
@@ -1,8 +1,20 @@
{
"translations": {
"This is the student view. Switch to the teacher view by clicking on the URL below.": "This is the student view. Switch to the teacher view by clicking on the URL below.",
"This is the teacher view. Switch to the student view by clicking on the URL below.": "This is the teacher view. Switch to the student view by clicking on the URL below.",
"Welcome to the Graasp App Starter Kit": "Welcome to the Graasp App Starter Kit",
"Feedback": "Feedback"
"Feedback": "Feedback",
"Currently we do not support giving feedback to anonymous users.": "Currently we do not support giving feedback to anonymous users.",
"By clicking \"Delete\", you will be deleting the student's response. This action cannot be undone.": "By clicking \"Delete\", you will be deleting the student's response. This action cannot be undone.",
"Text Input": "Text Input",
"Save": "Save",
"Type Here": "Type Here",
"Submit feedback that will be visible to the student.": "Submit feedback that will be visible to the student.",
"Delete Student Response": "Delete Student Response",
"Delete": "Delete",
"Cancel": "Cancel",
"No Responses": "No Responses",
"These are the responses submitted by the students.": "These are the responses submitted by the students.",
"Student": "Student",
"Input": "Input",
"Settings": "Settings",
"Show Header to Students": "Show Header to Students"
}
}
19 changes: 16 additions & 3 deletions src/langs/fr.json
Original file line number Diff line number Diff line change
@@ -1,7 +1,20 @@
{
"translations": {
"This is the student view. Switch to the teacher view by clicking on the URL below.": "Ceci est la vue des étudiants. Passez à la vue enseignant en cliquant sur l’URL ci-dessous.",
"This is the teacher view. Switch to the student view by clicking on the URL below.": "Ceci est la vue de l'enseignant. Passez à la vue des étudiants en cliquant sur l’URL ci-dessous.",
"Welcome to the Graasp App Starter Kit": "Bienvenue dans le kit de démarrage de l'application Graasp"
"Feedback": "Feedback",
"Currently we do not support giving feedback to anonymous users.": "Currently we do not support giving feedback to anonymous users.",
"By clicking 'Delete', you will be deleting the student's response. This action cannot be undone.": "By clicking 'Delete', you will be deleting the student's response. This action cannot be undone.",
"Text Input": "Text Input",
"Save": "Save",
"Type Here": "Type Here",
"Submit feedback that will be visible to the student.": "Submit feedback that will be visible to the student.",
"Delete Student Response": "Delete Student Response",
"Delete": "Delete",
"Cancel": "Cancel",
"No Responses": "No Responses",
"These are the responses submitted by the students.": "These are the responses submitted by the students.",
"Student": "Student",
"Input": "Input",
"Settings": "Paramètres",
"Show Header to Students": "Montrer l'en-tête aux étudiants."
}
}

0 comments on commit 5345f97

Please sign in to comment.