1
0
mirror of https://github.com/danielstjules/Stringy.git synced 2025-09-08 20:20:47 +02:00

toAscii changes: rename locale to language, correct some transliterations

This commit is contained in:
Daniel St. Jules
2017-03-08 19:14:42 -05:00
parent bf2a302aa1
commit 72102ae911
4 changed files with 53 additions and 51 deletions

View File

@@ -923,9 +923,10 @@ s('i like to watch television')->titleize($ignore);
Returns an ASCII version of the string. A set of non-ASCII characters are
replaced with their closest ASCII counterparts, and the rest are removed
unless instructed otherwise. The locale of the source string can be supplied
for locale-specific transliteration. The locale can be supplied in any of the
following formats: en, en_GB, or en-GB.
by default. The language or locale of the source string can be supplied
for language-specific transliteration in any of the following formats:
en, en_GB, or en-GB. For example, passing "de" results in "äöü" mapping
to "aeoeue" rather than "aou" as in other languages.
```php
s('fòôbàř')->toAscii(); // 'foobar'