-
Notifications
You must be signed in to change notification settings - Fork 12
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
Add support to display FR column headings in reports CSVs #1681
Conversation
- Converts email_address to Email address - Converts phone_number to Phone number
🧪 Review environmenthttps://6wcz6kj3psvc6lfrqattc7sxeu0tjexb.lambda-url.ca-central-1.on.aws/ |
- Fetch translations using fr.csv
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
For future work: I was playing around trying to fix this and it seems like if you yield the BOM before the rest of the CSV content this gets fixed, not sure if there are any negative side effects though. I added the following line to Source: https://stackoverflow.com/questions/37013433/proper-rendering-of-flask-produced-csv-files-in-excel |
Sweet catch, I will play around with this - having garbled text like that is less than ideal and a bad user experience. Seems like a straightforward enough fix to include with this PR. |
Works for excel file! |
Summary | Résumé
This PR adds support for displaying French translated column headers in downloaded report CSVs. It also cleans up the headers for consistency, converting
email_address
andphone_number
toEmail address
andPhone number
for consistent case and styling in the headings.Test instructions | Instructions pour tester la modification
Test 1 - Basic sends
Status
andType
are in FrenchTest 2 - Custom columns
Test Downloaded CSVs