21 lines
1.4 KiB
Markdown
21 lines
1.4 KiB
Markdown
---
|
|
title: "UI Text"
|
|
permalink: /docs/ui-text/
|
|
excerpt: "Text for customizing various user interface elements found in the theme."
|
|
modified: 2016-04-27T10:35:05-04:00
|
|
---
|
|
|
|
{% include base_path %}
|
|
|
|
Text for various UI elements, `_layouts`, and `_includes` have all been grouped together as a set of translation keys. This is by no means a full-on i18n solution, but it does help make customizing things a bit easier.
|
|
|
|
Currently all of the keys in `_data/ui-text.yml` are English only[^yaml-anchors]. If you're are interested in localizing them into other languages feel free to submit a pull request and I will be happy to look it over.
|
|
|
|
[^yaml-anchors]: `en-US`, and `en-GB` use [YAML anchors](http://www.yaml.org/spec/1.2/spec.html#id2785586) to reference the values in `en` as to not repeat them.
|
|
|
|
Many of the label based keys like `meta_label`, `categories_label`, `tags_label`, `share_on_label`, and `follow_label` can be left blank if you'd like to omit them from view. It really depends on you and if you want an even more minimal look to your site.
|
|
|
|

|
|
|
|
**Note:** The theme comes with localized text in English (`en`, `en-US`, `en-GB`). If you change `locale` in `_config.yml` to something else, most of the UI text will go blank. Be sure to add the corresponding locale key and translated text to `_data/ui-text.yml` to avoid this.
|
|
{: .notice--warning} |