Skip to content

Commit

Permalink
mvp-tema-i18n (#9): funcionalidade l10n, rascunho
Browse files Browse the repository at this point in the history
  • Loading branch information
fititnt committed May 13, 2021
1 parent 28717f1 commit 830694d
Show file tree
Hide file tree
Showing 4 changed files with 18 additions and 1 deletion.
5 changes: 5 additions & 0 deletions _data/l10n.csv
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
#vocab+code,#vocab+l10n+i_lat,#vocab+l10n+i_eng,#vocab+l10n+i_por
l10n_API,API,API,API
l10n_API_UN,API UN 🇺🇳,API UN 🇺🇳,API UN 🇺🇳
l10n_openapi_filum,OpenAPI Fīlum,OpenAPI file,Arquivo OpenAPI
l10n_vicipaediam,Vicipaediam,Wikipedia,Wikipédia
5 changes: 5 additions & 0 deletions _includes/l10n.html
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
{% for item in site.data.l10n %}
{% if item['#vocab+code'] == include._ %}
{{ item }}
{% endif %}
{% endfor %}
2 changes: 2 additions & 0 deletions documentum/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,8 @@ published: false

> TODOs:
> - https://forestry.io/blog/creating-a-multilingual-blog-with-jekyll/
> - https://jekyllcodex.org/without-plugins/
> - http://hamishwillee.github.io/2014/11/13/jekyll-includes-are-functions/
## Extensões e plugins
### VSCode
Expand Down
7 changes: 6 additions & 1 deletion index.md
Original file line number Diff line number Diff line change
Expand Up @@ -33,4 +33,9 @@ permalink: /
<a href="/por/" class="btn btn-primary btn-lg px-4">Língua portuguesa (alfabeto latino)</a>
</div>
</div>
</div>
</div>

Testing
<pre>
{% include l10n.html _="l10n_API" %}
</pre>

0 comments on commit 830694d

Please sign in to comment.