Put app strings into a YAML file for easy editing by product owner

This commit is contained in:
George Drummond
2018-12-13 15:02:52 -05:00
parent 8eecb62034
commit f806425d91
35 changed files with 845 additions and 246 deletions

View File

@@ -11,7 +11,9 @@
{% if dismissable %}
<button type='button' class='icon-link modal__dismiss' v-on:click='closeModal("{{name}}")'>
{{ Icon('x') }}
<span>Close</span>
<span>
{{ "components.modal.close" | translate }}
</span>
</button>
{% endif %}
</div>

View File

@@ -1,10 +1,14 @@
{% from "components/tooltip.html" import Tooltip %}
<aside class='usa-banner'>
<img src='{{ url_for("static", filename="img/us_flag_small.png") }}' alt='U.S. Flag' />
<p>An official website of the United States government</p>
<img src='{{ url_for("static", filename="img/us_flag_small.png") }}' alt='{{ "components.usa_header.flag_image_alt" | translate }}' />
<p>{{ "components.usa_header.official_message" | translate }}
{{ Tooltip('<p><strong>The .mil means its official.</strong><br/>Federal government websites often end in .gov or .mil. Before sharing sensitive information, make sure youre on a federal government site.</p><br/><p><strong>The site is secure.</strong><br>The <strong>https://</strong> ensures that you are connecting to the official website and that any information you provide is encrypted and transmitted securely.</p>',
title='Heres how you know') }}
{{
Tooltip(
("components.usa_header.tooltip.message" | translate),
title=("components.usa_header.tooltip.title" | translate)
)
}}
</aside>