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
530
530
applying the other transformations. The locale of the original string is
531
531
detected automatically, but you can define it explicitly::
532
532
533
- // this tells the slugger to transliterate from Korean language
533
+ // this tells the slugger to transliterate from Korean ('ko') language
534
534
$slugger = new AsciiSlugger('ko');
535
535
536
536
// you can override the locale as the third optional parameter of slug()
537
+ // e.g. this slugger transliterates from Persian ('fa') language
537
538
$slug = $slugger->slug('...', '-', 'fa');
538
539
539
540
In 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