hacks-guide-minimal-mistake.../docs/_docs/08-ui-text.md

49 lines
1.8 KiB
Markdown
Raw Normal View History

---
title: "UI Text"
permalink: /docs/ui-text/
2018-04-10 14:43:11 +02:00
excerpt: "Text for customizing user interface elements found in the theme."
last_modified_at: 2020-03-04T16:07:16-05:00
---
2018-04-10 14:43:11 +02:00
Text for UI elements, `_layouts`, and `_includes` grouped together as a set of translation keys. This is by no means a full-on i18n solution, but it does help make customizing theme text a bit easier.
2018-04-10 14:43:11 +02:00
The English[^yaml-anchors] main keys in [`_data/ui-text.yml`](https://github.com/mmistakes/minimal-mistakes/blob/master/_data/ui-text.yml) are translated in the following languages:
- Brazilian Portuguese (Português brasileiro)
2019-08-27 21:46:59 +02:00
- Catalan
- Chinese
- Danish
- Dutch
- French (Français)
- German (Deutsch)
- Greek
- Hungarian
2017-07-07 21:10:34 +02:00
- Indonesian
- Irish (Gaeilge)
- Italian (Italiano)
2017-02-14 20:28:41 +01:00
- Korean
2017-12-28 19:53:59 +01:00
- Japanese
2019-01-24 02:23:29 +01:00
- Malayalam
2017-01-24 15:42:49 +01:00
- Nepali (Nepalese)
- Polish
- Persian (فارسی)
- Romanian
- Russian
2018-04-10 14:43:11 +02:00
- Slovak
- Spanish (Español)
2017-05-16 14:20:23 +02:00
- Swedish
2019-04-03 21:16:04 +02:00
- Thai
- Turkish (Türkçe)
- Vietnamese
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.
![UI text labels]({{ "/assets/images/mm-ui-text-labels.jpg" | relative_url }})
**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}