1
0
mirror of https://github.com/jesseduffield/lazygit.git synced 2025-07-30 03:23:08 +03:00

Remove non-English translation sets, read them from JSON instead

This commit is contained in:
Stefan Haller
2024-06-08 12:11:05 +02:00
parent b34de70c99
commit 98e5fd70fb
14 changed files with 100 additions and 4406 deletions

View File

@ -21,7 +21,7 @@ func NewDummyCommon() *common.Common {
tr := i18n.EnglishTranslationSet()
return &common.Common{
Log: NewDummyLog(),
Tr: &tr,
Tr: tr,
UserConfig: config.GetDefaultConfig(),
Fs: afero.NewOsFs(),
}
@ -31,7 +31,7 @@ func NewDummyCommonWithUserConfigAndAppState(userConfig *config.UserConfig, appS
tr := i18n.EnglishTranslationSet()
return &common.Common{
Log: NewDummyLog(),
Tr: &tr,
Tr: tr,
UserConfig: userConfig,
AppState: appState,
// TODO: remove dependency on actual filesystem in tests and switch to using