mirror of
https://github.com/jesseduffield/lazygit.git
synced 2025-07-28 16:02:01 +03:00
type i18n
This commit is contained in:
@ -101,7 +101,8 @@ func Loader() string {
|
||||
// ResolvePlaceholderString populates a template with values
|
||||
func ResolvePlaceholderString(str string, arguments map[string]string) string {
|
||||
for key, value := range arguments {
|
||||
str = strings.Replace(str, "{{"+key+"}}", value, -1)
|
||||
str = strings.ReplaceAll(str, "{{"+key+"}}", value)
|
||||
str = strings.ReplaceAll(str, "{{."+key+"}}", value)
|
||||
}
|
||||
return str
|
||||
}
|
||||
|
Reference in New Issue
Block a user