mirror of
https://github.com/jesseduffield/lazygit.git
synced 2026-06-20 01:19:23 +02:00
Remove non-English translation sets, read them from JSON instead
This commit is contained in:
+3
-2
@@ -8,7 +8,7 @@ import (
|
||||
"github.com/jesseduffield/lazygit/pkg/i18n"
|
||||
)
|
||||
|
||||
func saveLanguageFileToJson(tr i18n.TranslationSet, filepath string) error {
|
||||
func saveLanguageFileToJson(tr *i18n.TranslationSet, filepath string) error {
|
||||
jsonData, err := json.MarshalIndent(tr, "", " ")
|
||||
if err != nil {
|
||||
return err
|
||||
@@ -19,7 +19,8 @@ func saveLanguageFileToJson(tr i18n.TranslationSet, filepath string) error {
|
||||
}
|
||||
|
||||
func saveNonEnglishLanguageFilesToJson() error {
|
||||
for lang, tr := range i18n.GetTranslationSets() {
|
||||
translationSets, _ := i18n.GetTranslationSets()
|
||||
for lang, tr := range translationSets {
|
||||
if lang == "en" {
|
||||
continue
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user