Skip to content

Commit

Permalink
Fix kkSub alphabetic order
Browse files Browse the repository at this point in the history
  • Loading branch information
matrixik committed Oct 22, 2019
1 parent 748bff7 commit 6c8aaf6
Showing 1 changed file with 19 additions and 17 deletions.
36 changes: 19 additions & 17 deletions languages_substitution.go
Expand Up @@ -6,7 +6,9 @@
package slug

func init() {
// Merge language subs with the default one
// Merge language subs with the default one.
// TODO: Find better way so all langs are merged automatically and better
// tested.
for _, sub := range []*map[rune]string{
&deSub, &enSub, &esSub, &fiSub, &grSub, &kkSub, &nlSub, &plSub, &svSub, &trSub,
} {
Expand Down Expand Up @@ -69,6 +71,22 @@ var grSub = map[rune]string{
'ϋ': "u",
}

var kkSub = map[rune]string{
'&': "jane",
'ә': "a",
'ғ': "g",
'қ': "q",
'ң': "n",
'ө': "o",
'ұ': "u",
'Ә': "A",
'Ғ': "G",
'Қ': "Q",
'Ң': "N",
'Ө': "O",
'Ұ': "U",
}

var nlSub = map[rune]string{
'&': "en",
'@': "at",
Expand Down Expand Up @@ -100,19 +118,3 @@ var trSub = map[rune]string{
'ç': "c",
'Ç': "C",
}

var kkSub = map[rune]string{
'&': "jane",
'ә': "a",
'ғ': "g",
'қ': "q",
'ң': "n",
'ө': "o",
'ұ': "u",
'Ә': "A",
'Ғ': "G",
'Қ': "Q",
'Ң': "N",
'Ө': "O",
'Ұ': "U",
}

0 comments on commit 6c8aaf6

Please sign in to comment.