// isDirection checks - "direction" is language direction.
isDirection checks - "direction" is language direction.
// isDirection checks - " direction " is language direction .
func isDirection(ctx context.Context, direction string, isTr bool) bool {
	var languages []string
	if isTr {
		languages = trLangs
	} else {
		languages = dictLangs
	}
	if i := sort.SearchStrings(languages, direction); i < len(languages) && languages[i] == direction {
		return true
	}
	return false
}
func isDirection ( ctx context . Context , direction string , isTr bool ) bool { var languages [ ] string if isTr { languages = trLangs } else { languages = dictLangs } if i := sort . SearchStrings ( languages , direction ) ; i < len ( languages ) && languages [ i ] == direction { return true } return false }
isDirection checks - "direction" is language direction.
isDirection checks - " direction " is language direction .