mirror of
https://github.com/crunchy-labs/crunchy-cli.git
synced 2026-01-21 12:12:00 -06:00
Add sorting for locales as string
This commit is contained in:
parent
bb0e51deee
commit
851dab7aac
1 changed files with 2 additions and 0 deletions
|
|
@ -13,6 +13,7 @@ import (
|
||||||
"reflect"
|
"reflect"
|
||||||
"regexp"
|
"regexp"
|
||||||
"runtime"
|
"runtime"
|
||||||
|
"sort"
|
||||||
"strconv"
|
"strconv"
|
||||||
"strings"
|
"strings"
|
||||||
"sync"
|
"sync"
|
||||||
|
|
@ -66,6 +67,7 @@ func allLocalesAsStrings() (locales []string) {
|
||||||
for _, locale := range utils.AllLocales {
|
for _, locale := range utils.AllLocales {
|
||||||
locales = append(locales, string(locale))
|
locales = append(locales, string(locale))
|
||||||
}
|
}
|
||||||
|
sort.Strings(locales)
|
||||||
return
|
return
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue