From bb7ece3f28041404aa93ab3b28326a7a469c1b74 Mon Sep 17 00:00:00 2001 From: Sharif Elgamal Date: Tue, 1 Oct 2019 15:09:58 -0700 Subject: [PATCH] add actual translations docs file --- .../en/docs/Contributing/translations.md | 21 +++++++++++++++++++ 1 file changed, 21 insertions(+) create mode 100644 site/content/en/docs/Contributing/translations.md diff --git a/site/content/en/docs/Contributing/translations.md b/site/content/en/docs/Contributing/translations.md new file mode 100644 index 0000000000..40f7cfdee1 --- /dev/null +++ b/site/content/en/docs/Contributing/translations.md @@ -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.