Site updated at 2017-11-13 04:05:32 UTC

This commit is contained in:
Travis CI 2017-11-13 04:05:32 +00:00
parent 049f78a4f7
commit 90420da9ac
26 changed files with 66 additions and 64 deletions

View file

@ -86,6 +86,8 @@ The translation of the Home Assistant frontend is still a work in progress. More
<li>Stick to <a href="https://material.io/guidelines/style/writing.html">Material Design guidelines</a>.</li>
<li>Dont translate or change proper nouns like <code class="highlighter-rouge">Home Assistant</code>, <code class="highlighter-rouge">Hass.io</code> or <code class="highlighter-rouge">Hue</code>.</li>
<li>For a region specific translation, keys that will be the same as the base translation should be filled with <code class="highlighter-rouge">[VOID]</code>. These will be replaced during our translation build process.</li>
<li>Translations under the <code class="highlighter-rouge">state_badge</code> keys will be used for the notification badge display. These translations should be short enough to fit in the badge label without overflowing. This can be tested in the Home Assistant UI either by editing the label text with your browsers development tools, or by using the States <img src="/images/screenshots/developer-tool-states-icon.png" alt="" class="no-shadow" height="38" /> developer tool in the Home Assistant UI. In the UI, enter a new entity ID (<code class="highlighter-rouge">device_tracker.test</code>), and enter the text you want to test in state.</li>
<li>If text will be duplicated across different translation keys, make use of the Lokalise key reference feature where possible. The base translation provides examples of this underneath the <code class="highlighter-rouge">states</code> translations. Please see the <a href="https://docs.lokalise.co/article/KO5SZWLLsy-key-referencing">Lokalise key referencing</a> documentation for more details.</li>
</ol>
<h2><a class="title-link" name="adding-a-new-language" href="#adding-a-new-language"></a> Adding a new language</h2>
<p>If your language is not listed you can request it at <a href="https://github.com/home-assistant/home-assistant-polymer/issues/new">GitHub</a>. Please provide both the English name and the native name for your language. For example:</p>