1
0
mirror of https://github.com/flarum/core.git synced 2025-08-06 16:36:47 +02:00

Use Laravel's slugger for basic transliteration

This is better than the current system, as it adds transliteration rules
for special characters, rather than just throwing all of them away.

For languages that cannot be transliterated to ASCII in a reasonable
manner, more possible improvements are outlined in #194.
This commit is contained in:
Franz Liedke
2020-01-24 17:40:09 +01:00
parent 6f6958dd6b
commit a2cc49b1d9
3 changed files with 2 additions and 33 deletions

View File

@@ -7,9 +7,9 @@
* LICENSE file that was distributed with this source code.
*/
use Flarum\Util\Str;
use Illuminate\Database\Schema\Blueprint;
use Illuminate\Database\Schema\Builder;
use Illuminate\Support\Str;
return [
'up' => function (Builder $schema) {