4747 < div class ="nav-links " role ="navigation ">
4848 {% for section in site.nav limit: 5 %}
4949 {% capture section_url %}{% include localized-url.html page_id=section.page_id fallback_url=section.url locale=current_locale %}{% endcapture %}
50+ {% capture section_title %}{% include localized-title.html page_id=section.page_id fallback_title=section.title locale=current_locale %}{% endcapture %}
5051 {% assign section_active_prefix = section.page_id | append: '__' %}
51- < a href ="{{ section_url | strip }} " class ="nav-link{% if page.page_id == section.page_id or page.page_id contains section_active_prefix %} active{% endif %} "> {{ section.title }}</ a >
52+ < a href ="{{ section_url | strip }} " class ="nav-link{% if page.page_id == section.page_id or page.page_id contains section_active_prefix %} active{% endif %} "> {{ section_title | strip }}</ a >
5253 {% endfor %}
5354 < a href ="https://github.com/johnsamuelwrites/multilingual " class ="nav-link nav-link-external " target ="_blank " rel ="noopener noreferrer ">
5455 < svg class ="icon-github " viewBox ="0 0 24 24 " fill ="currentColor " width ="18 " height ="18 " aria-hidden ="true "> < path d ="M12 2C6.477 2 2 6.484 2 12.017c0 4.425 2.865 8.18 6.839 9.504.5.092.682-.217.682-.483 0-.237-.008-.868-.013-1.703-2.782.605-3.369-1.343-3.369-1.343-.454-1.158-1.11-1.466-1.11-1.466-.908-.62.069-.608.069-.608 1.003.07 1.531 1.032 1.531 1.032.892 1.53 2.341 1.088 2.91.832.092-.647.35-1.088.636-1.338-2.22-.253-4.555-1.113-4.555-4.951 0-1.093.39-1.988 1.029-2.688-.103-.253-.446-1.272.098-2.65 0 0 .84-.27 2.75 1.026A9.564 9.564 0 0112 6.844c.85.004 1.705.115 2.504.337 1.909-1.296 2.747-1.027 2.747-1.027.546 1.379.202 2.398.1 2.651.64.7 1.028 1.595 1.028 2.688 0 3.848-2.339 4.695-4.566 4.943.359.309.678.92.678 1.855 0 1.338-.012 2.419-.012 2.747 0 .268.18.58.688.482A10.019 10.019 0 0022 12.017C22 6.484 17.522 2 12 2z "/> </ svg >
118119 < h4 > Documentation</ h4 >
119120 < ul >
120121 {% capture footer_getting_started_url %}{% include localized-url.html page_id='getting_started' fallback_url='/en/docs/getting-started/' locale=current_locale %}{% endcapture %}
122+ {% capture footer_getting_started_title %}{% include localized-title.html page_id='getting_started' fallback_title='Getting Started' locale=current_locale %}{% endcapture %}
121123 {% capture footer_language_guide_url %}{% include localized-url.html page_id='language_guide' fallback_url='/en/docs/language-guide/' locale=current_locale %}{% endcapture %}
124+ {% capture footer_language_guide_title %}{% include localized-title.html page_id='language_guide' fallback_title='Language Guide' locale=current_locale %}{% endcapture %}
122125 {% capture footer_reference_url %}{% include localized-url.html page_id='reference' fallback_url='/en/docs/reference/' locale=current_locale %}{% endcapture %}
126+ {% capture footer_reference_title %}{% include localized-title.html page_id='reference' fallback_title='Reference' locale=current_locale %}{% endcapture %}
123127 {% capture footer_wasm_url %}{% include localized-url.html page_id='wasm' fallback_url='/en/docs/wasm/' locale=current_locale %}{% endcapture %}
128+ {% capture footer_wasm_title %}{% include localized-title.html page_id='wasm' fallback_title='WASM Backend' locale=current_locale %}{% endcapture %}
124129 {% capture footer_design_url %}{% include localized-url.html page_id='design' fallback_url='/en/docs/design/' locale=current_locale %}{% endcapture %}
125- < li > < a href ="{{ footer_getting_started_url | strip }} "> Getting Started</ a > </ li >
126- < li > < a href ="{{ footer_language_guide_url | strip }} "> Language Guide</ a > </ li >
127- < li > < a href ="{{ footer_reference_url | strip }} "> Reference</ a > </ li >
128- < li > < a href ="{{ footer_wasm_url | strip }} "> WASM Backend</ a > </ li >
129- < li > < a href ="{{ footer_design_url | strip }} "> Design & Architecture</ a > </ li >
130+ {% capture footer_design_title %}{% include localized-title.html page_id='design' fallback_title='Design & Architecture' locale=current_locale %}{% endcapture %}
131+ < li > < a href ="{{ footer_getting_started_url | strip }} "> {{ footer_getting_started_title | strip }}</ a > </ li >
132+ < li > < a href ="{{ footer_language_guide_url | strip }} "> {{ footer_language_guide_title | strip }}</ a > </ li >
133+ < li > < a href ="{{ footer_reference_url | strip }} "> {{ footer_reference_title | strip }}</ a > </ li >
134+ < li > < a href ="{{ footer_wasm_url | strip }} "> {{ footer_wasm_title | strip }}</ a > </ li >
135+ < li > < a href ="{{ footer_design_url | strip }} "> {{ footer_design_title | strip }}</ a > </ li >
130136 </ ul >
131137 </ div >
132138 < div class ="footer-col ">
133139 < h4 > Languages</ h4 >
134140 < ul >
135141 {% capture footer_all_languages_url %}{% include localized-url.html page_id='language_guide__all_languages' fallback_url='/en/docs/language-guide/all-languages/' locale=current_locale %}{% endcapture %}
142+ {% capture footer_all_languages_title %}{% include localized-title.html page_id='language_guide__all_languages' fallback_title='All 17 Languages' locale=current_locale %}{% endcapture %}
136143 {% capture footer_keywords_url %}{% include localized-url.html page_id='language_guide__keywords' fallback_url='/en/docs/language-guide/keywords/' locale=current_locale %}{% endcapture %}
144+ {% capture footer_keywords_title %}{% include localized-title.html page_id='language_guide__keywords' fallback_title='Keywords' locale=current_locale %}{% endcapture %}
137145 {% capture footer_extending_url %}{% include localized-url.html page_id='extending' fallback_url='/en/docs/extending/' locale=current_locale %}{% endcapture %}
146+ {% capture footer_extending_title %}{% include localized-title.html page_id='extending' fallback_title='Add a Language' locale=current_locale %}{% endcapture %}
138147 {% capture footer_translation_url %}{% include localized-url.html page_id='extending__translation' fallback_url='/en/docs/extending/translation/' locale=current_locale %}{% endcapture %}
139- < li > < a href ="{{ footer_all_languages_url | strip }} "> All 17 Languages</ a > </ li >
140- < li > < a href ="{{ footer_keywords_url | strip }} "> Keywords</ a > </ li >
141- < li > < a href ="{{ footer_extending_url | strip }} "> Add a Language</ a > </ li >
142- < li > < a href ="{{ footer_translation_url | strip }} "> Translation Guide</ a > </ li >
148+ {% capture footer_translation_title %}{% include localized-title.html page_id='extending__translation' fallback_title='Translation Guide' locale=current_locale %}{% endcapture %}
149+ < li > < a href ="{{ footer_all_languages_url | strip }} "> {{ footer_all_languages_title | strip }}</ a > </ li >
150+ < li > < a href ="{{ footer_keywords_url | strip }} "> {{ footer_keywords_title | strip }}</ a > </ li >
151+ < li > < a href ="{{ footer_extending_url | strip }} "> {{ footer_extending_title | strip }}</ a > </ li >
152+ < li > < a href ="{{ footer_translation_url | strip }} "> {{ footer_translation_title | strip }}</ a > </ li >
143153 </ ul >
144154 </ div >
145155 < div class ="footer-col ">
@@ -148,7 +158,8 @@ <h4>Project</h4>
148158 < li > < a href ="https://github.com/johnsamuelwrites/multilingual " target ="_blank " rel ="noopener "> GitHub</ a > </ li >
149159 < li > < a href ="https://github.com/johnsamuelwrites/multilingual/issues " target ="_blank " rel ="noopener "> Issues</ a > </ li >
150160 {% capture footer_related_work_url %}{% include localized-url.html page_id='design__related_work' fallback_url='/en/docs/design/related-work/' locale=current_locale %}{% endcapture %}
151- < li > < a href ="{{ footer_related_work_url | strip }} "> Related Work</ a > </ li >
161+ {% capture footer_related_work_title %}{% include localized-title.html page_id='design__related_work' fallback_title='Related Work' locale=current_locale %}{% endcapture %}
162+ < li > < a href ="{{ footer_related_work_url | strip }} "> {{ footer_related_work_title | strip }}</ a > </ li >
152163 </ ul >
153164 </ div >
154165 </ div >
0 commit comments