mirror of
https://github.com/miniflux/v2.git
synced 2025-08-06 17:41:00 +00:00
refactor(locale): remove a call to fmt.Sprintf
This commit is contained in:
parent
f2b805850c
commit
78c7f66df7
1 changed files with 1 additions and 1 deletions
|
@ -28,7 +28,7 @@ func getTranslationDict(language string) (translationDict, error) {
|
|||
}
|
||||
|
||||
func loadTranslationFile(language string) (translationDict, error) {
|
||||
translationFileData, err := translationFiles.ReadFile(fmt.Sprintf("translations/%s.json", language))
|
||||
translationFileData, err := translationFiles.ReadFile("translations/" + language + ".json")
|
||||
if err != nil {
|
||||
return nil, err
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue