14 lines
186 B
Go
14 lines
186 B
Go
|
package utils
|
||
|
|
||
|
import (
|
||
|
"strings"
|
||
|
)
|
||
|
|
||
|
func ConvertLocalizedString(s string) string {
|
||
|
if strings.ContainsAny(s, ",") {
|
||
|
return strings.Replace(s, ",", ".", 1)
|
||
|
} else {
|
||
|
return s
|
||
|
}
|
||
|
}
|