Skip to content

Commit

Permalink
Fix: Use "brazilian" as language tag (#17)
Browse files Browse the repository at this point in the history
  • Loading branch information
felipemarinho97 authored Nov 18, 2024
1 parent a6977ae commit e994ee1
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions schema/audio.go
Original file line number Diff line number Diff line change
Expand Up @@ -59,7 +59,7 @@ var AudioList = []Audio{
}

func (a Audio) String() string {
return a.toISO639_2()
return a.toTag()
}

func GetAudioFromString(s string) *Audio {
Expand All @@ -71,12 +71,12 @@ func GetAudioFromString(s string) *Audio {
return nil
}

func (a Audio) toISO639_2() string {
func (a Audio) toTag() string {
switch a {
case AudioPortuguese:
return "por"
return "brazilian"
case AudioPortuguese2:
return "por"
return "brazilian"
case AudioEnglish:
return "eng"
case AudioEnglish2:
Expand Down

0 comments on commit e994ee1

Please sign in to comment.