From d188ba295e6f5ff28a6060ed8916c2fc5de61a87 Mon Sep 17 00:00:00 2001 From: Avelino Date: Wed, 17 May 2023 00:43:38 -0300 Subject: [PATCH] docs/lang: describe how to add a new language Signed-off-by: Avelino --- docs/contributing-to-translations.md | 9 ++++++++- 1 file changed, 8 insertions(+), 1 deletion(-) diff --git a/docs/contributing-to-translations.md b/docs/contributing-to-translations.md index 7725928065..f5766fc7b0 100644 --- a/docs/contributing-to-translations.md +++ b/docs/contributing-to-translations.md @@ -106,4 +106,11 @@ and tell you what's wrong. ## Add a Language -To add a new language, add an entry to `frontend.dicts.core/languages`. Then add a new locale keyword to `frontend.dicts.core/dicts`. +To add a new language you must create a new file in the `frontend.dicts` namespace containing two variables: + +- **application `(def application ...)`:** translation of the application into the idiom +- **shortcuts `(def shortcuts ...)`:** shortcut translation + +Use as base the main language file `frontend/dicts/en.cljs`. + +After creating the language pack you should add the `application` variable to `frontend.dicts.core` and the `shortcuts` variable to `frontend.modules.shortcut.dicts`.