add actual translations docs file

pull/5522/head
Sharif Elgamal 2019-10-01 15:09:58 -07:00
parent 54115535c2
commit bb7ece3f28
No known key found for this signature in database
GPG Key ID: 23CC0225BD9FD702
1 changed files with 21 additions and 0 deletions

View File

@ -0,0 +1,21 @@
---
title: "Translations"
date: 2019-09-30
weight: 3
description: >
How to add translations
---
All translations are stored in the top-level `translations` directory.
### Adding Translations To an Existing Language
* Run `make extract` to make sure all strings are up to date
* Add translated strings to the appropriate json files in the 'translations'
directory.
### Adding a New Language
* Add a new json file with the locale code of the language you want to add
translations for, e.g. en for English.
* Run `make extract` to populate that file with the strings to translate in json
form.
* Add translations to as many strings as you'd like.