File tree Expand file tree Collapse file tree 1 file changed +2
-1
lines changed Expand file tree Collapse file tree 1 file changed +2
-1
lines changed Original file line number Diff line number Diff line change @@ -530,10 +530,11 @@ The slugger transliterates the original string into the Latin script before
530530applying the other transformations. The locale of the original string is
531531detected automatically, but you can define it explicitly::
532532
533- // this tells the slugger to transliterate from Korean language
533+ // this tells the slugger to transliterate from Korean ('ko') language
534534 $slugger = new AsciiSlugger('ko');
535535
536536 // you can override the locale as the third optional parameter of slug()
537+ // e.g. this slugger transliterates from Persian ('fa') language
537538 $slug = $slugger->slug('...', '-', 'fa');
538539
539540In a Symfony application, you don't need to create the slugger yourself. Thanks
You can’t perform that action at this time.
0 commit comments