Skip to content

Commit

Permalink
Add missing tr lang when merging with default subs
Browse files Browse the repository at this point in the history
Fix #39
  • Loading branch information
matrixik committed Oct 22, 2019
1 parent ff4fe77 commit 748bff7
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 1 deletion.
2 changes: 1 addition & 1 deletion languages_substitution.go
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ package slug
func init() {
// Merge language subs with the default one
for _, sub := range []*map[rune]string{
&deSub, &enSub, &esSub, &fiSub, &grSub, &kkSub, &nlSub, &plSub, &svSub,
&deSub, &enSub, &esSub, &fiSub, &grSub, &kkSub, &nlSub, &plSub, &svSub, &trSub,
} {
for key, value := range defaultSub {
(*sub)[key] = value
Expand Down
2 changes: 2 additions & 0 deletions slug_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -111,6 +111,8 @@ func TestSlugMakeLang(t *testing.T) {
{"kk", "1\"2'3’4‒5–6—7―8", "1234-5-6-7-8", true},
{"nl", "1\"2'3’4‒5–6—7―8", "1234-5-6-7-8", true},
{"pl", "1\"2'3’4‒5–6—7―8", "1234-5-6-7-8", true},
{"sv", "1\"2'3’4‒5–6—7―8", "1234-5-6-7-8", true},
{"tr", "1\"2'3’4‒5–6—7―8", "1234-5-6-7-8", true},
}

for index, smlt := range testCases {
Expand Down

0 comments on commit 748bff7

Please sign in to comment.