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

Image localization #135

Merged
merged 3 commits into from
May 10, 2021
Merged

Image localization #135

merged 3 commits into from
May 10, 2021

Conversation

dhakim87
Copy link
Contributor

Uses babel updates in jinja2 templates to point towards correctly localized image files.
Assumes we will translate en_us to es_mx for our mexico deployment, and copy over translated images to that folder.

Only the bristol stool chart seems to be used within surveys, which is the only one I couldn't do this way. I added a separate PR to microsetta-private-api to update the sql on that side, but we may want to build more localization support on the private api side before merging that, or merge it to somewhere other than master.

@dhakim87
Copy link
Contributor Author

Note that FAQ was deleted rather than translated

@@ -19,16 +19,16 @@
{% block content %}
<div class="row">
<div class="col-12 col-lg-8 text-center how_it_works">
<img src="/static/img/how-it-works.svg" class="img-fluid" />
<img src="/static/img/{{ _("en_us") }}/how-it-works.svg" class="img-fluid" />
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

That's pleasant

@wasade wasade merged commit ad6af98 into i18n May 10, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants