Skip to content

Commit

Permalink
add UI text to data so it can be localized
Browse files Browse the repository at this point in the history
  • Loading branch information
sarahs committed Dec 8, 2020
1 parent da51ae2 commit 64c59fb
Show file tree
Hide file tree
Showing 2 changed files with 11 additions and 4 deletions.
6 changes: 6 additions & 0 deletions data/ui.yml
Original file line number Diff line number Diff line change
Expand Up @@ -66,6 +66,12 @@ contribution_cta:
button: Make a contribution
or: Or,
to_guidelines: learn how to contribute.
enterprise_releases_list:
title: Enterprise Server Releases
currently_supported: Currently supported
currently_supported_message: See <a href="https://github.com/enterprise">GitHub Enterprise</a> for more information.
deprecated: Deprecated
deprecated_message: 'These docs remain available but are no longer maintained:'
products:
graphql:
reference:
Expand Down
9 changes: 5 additions & 4 deletions layouts/enterprise-releases.html
Original file line number Diff line number Diff line change
Expand Up @@ -14,18 +14,19 @@

<div class="article-grid-head">
<div class="d-flex flex-items-baseline flex-justify-between mt-3">
<h1 class="border-bottom-0">Enterprise Server Releases</h1>
<h1 class="border-bottom-0">{% data ui.enterprise_releases_list.title %}</h1>
</div>
</div>
<div id="article-contents" class="article-grid-body">
<h2>Currently supported</h2>
<h2>{% data ui.enterprise_releases_list.currently_supported %}</h2>
<p>{% data ui.enterprise_releases_list.currently_supported_message %}</p>
<ul>
{% for version in enterpriseServerReleases.supported %}
<li><a href="/{{currentLanguage}}/enterprise-server@{{version}}">Enterprise Server {{version}}</a></li>
{% endfor %}
</ul>
<h2>Deprecated</h2>
<p>These docs remain available but are no longer maintained:</p>
<h2>{% data ui.enterprise_releases_list.deprecated %}</h2>
<p>{% data ui.enterprise_releases_list.deprecated_message %}</p>
<ul>
{% for version in enterpriseServerReleases.deprecatedReleasesWithNewFormat %}
<li><a href="/{{currentLanguage}}/enterprise-server@{{version}}">Enterprise Server {{version}}</a></li>
Expand Down

0 comments on commit 64c59fb

Please sign in to comment.