From 117aa1dcc61a640d8e57f7a34fa94b8f31ff3f0c Mon Sep 17 00:00:00 2001 From: Stefan Haller <stefan@haller-berlin.de> Date: Mon, 16 Oct 2023 09:10:27 +0200 Subject: [PATCH] Advise developers to use a nerd font in their editor --- CONTRIBUTING.md | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/CONTRIBUTING.md b/CONTRIBUTING.md index e5c1c7ede..f362cdad2 100644 --- a/CONTRIBUTING.md +++ b/CONTRIBUTING.md @@ -97,6 +97,10 @@ To run gofumpt from your terminal go: go install mvdan.cc/gofumpt@latest && gofumpt -l -w . ``` +## Programming Font + +Lazygit supports [Nerd Fonts](https://www.nerdfonts.com) to render certain icons. Sometimes we use some of these icons verbatim in string literals in the code (mainly in tests), so you need to set your development environment to use a nerd font to see these. + ## Internationalisation Boy that's a hard word to spell. Anyway, lazygit is translated into several languages within the pkg/i18n package. If you need to render text to the user, you should add a new field to the TranslationSet struct in `pkg/i18n/english.go` and add the actual content within the `EnglishTranslationSet()` method in the same file. Then you can access via `gui.Tr.YourNewText` (or `self.c.Tr.YourNewText`, etc). Although it is appreciated if you translate the text into other languages, it's not expected of you (google translate will likely do a bad job anyway!).