mirror of
https://github.com/ralsina/tartrazine.git
synced 2025-06-18 14:13:07 -03:00
Update common.go
Thanks @lafriks for catching this! Co-authored-by: Lauris BH <lauris@nix.lv>
This commit is contained in:
@ -570,7 +570,7 @@ func GetLanguageInfo(language string) (data.LanguageInfo, error) {
|
||||
return GetLanguageInfoByID(id)
|
||||
}
|
||||
|
||||
// GetLanguageInfo returns the LanguageInfo for a given language name, or an error if not found.
|
||||
// GetLanguageInfoByID returns the LanguageInfo for a given language ID, or an error if not found.
|
||||
func GetLanguageInfoByID(id int) (data.LanguageInfo, error) {
|
||||
if info, ok := data.LanguageInfoByID[id]; ok {
|
||||
return info, nil
|
||||
|
Reference in New Issue
Block a user