File tree Expand file tree Collapse file tree 1 file changed +5
-4
lines changed
Expand file tree Collapse file tree 1 file changed +5
-4
lines changed Original file line number Diff line number Diff line change @@ -12,10 +12,11 @@ class DefaultSlugGenerator implements SlugGeneratorInterface
1212 const LANG_AUTO = 'auto ' ;
1313
1414 private static $ transliterationRules = [
15- self ::LANG_CHINESE => 'Han-Latin; Latin-ASCII; Lower() ' ,
16- self ::LANG_RUSSIAN => 'Russian-Latin/BGN; Latin-ASCII; Lower() ' ,
17- self ::LANG_ARABIC => 'Arabic-Latin; Latin-ASCII; Lower() ' ,
18- self ::LANG_JAPANESE => 'Hiragana-Latin; Katakana-Latin; Latin-ASCII; Lower() ' ,
15+ self ::LANG_CHINESE => 'Han-Latin; Latin-ASCII; Lower() ' ,
16+ self ::LANG_RUSSIAN => 'Russian-Latin/BGN; Latin-ASCII; Lower() ' ,
17+ self ::LANG_ARABIC => 'Arabic-Latin; Latin-ASCII; Lower() ' ,
18+ // include Han-Latin to transliterate Kanji
19+ self ::LANG_JAPANESE => 'Han-Latin; Hiragana-Latin; Katakana-Latin; Latin-ASCII; Lower() ' ,
1920 ];
2021
2122 public function generate ($ text , $ language = self ::LANG_AUTO , $ separator = '- ' )
You can’t perform that action at this time.
0 commit comments