Skip to content

Commit

Permalink
Add French set of rules (#154)
Browse files Browse the repository at this point in the history
* Create french.json

* Edited French test
  • Loading branch information
SuN-80 authored and Florian Eckerstorfer committed Feb 11, 2017
1 parent 639e12d commit e6fb2cf
Show file tree
Hide file tree
Showing 2 changed files with 33 additions and 1 deletion.
32 changes: 32 additions & 0 deletions Resources/rules/french.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,32 @@
{
"À": "A",
"Â": "A",
"Æ": "AE",
"Ç": "C",
"É": "E",
"È": "E",
"Ê": "E",
"Ë": "E",
"Ï": "I",
"Î": "I",
"Ô": "O",
"Œ": "OE",
"Ù": "U",
"Û": "U",
"Ü": "U",
"à": "a",
"â": "a",
"æ": "ae",
"ç": "c",
"é": "e",
"è": "e",
"ê": "e",
"ë": "e",
"ï": "i",
"î": "i",
"ô": "o",
"œ": "oe",
"ù": "u",
"û": "u",
"ü": "u"
}
2 changes: 1 addition & 1 deletion tests/SlugifyTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -240,7 +240,7 @@ public function defaultRuleProvider()
['фильм', 'film'],
['драма', 'drama'],
['Ύπαρξη Αυτής η Σκουληκομυρμηγκότρυπα', 'iparxi-autis-i-skoulikomirmigkotripa'],
['C’est du français !', 'c-est-du-francais'],
['Français Œuf où à', 'francais-oeuf-ou-a'],
['هذه هي اللغة العربية', 'hthh-hy-llgh-laarby'],
['مرحبا العالم', 'mrhb-laa-lm'],
['Één jaar', 'een-jaar'],
Expand Down

0 comments on commit e6fb2cf

Please sign in to comment.