This repository has been archived on 2022-10-02. You can view files and clone it, but cannot push or open issues or pull requests.
|
package utils
|
|
|
|
import (
|
|
"github.com/tribalwarshelp/shared/models"
|
|
)
|
|
|
|
func LanguageTagFromWorldName(world string) models.LanguageTag {
|
|
if len(world) < 2 {
|
|
return ""
|
|
}
|
|
return models.LanguageTag(world[0:2])
|
|
}
|