Stringy::langSpecificCharsArray() defines ASCII counterparts for the following Bulgarian characters: ъ, Ъ, ь, and Ь
However none of those characters have any alternatives in Stringy::charsArray(), which means they will be untouched by Stringy::toAscii() unless $language is set to 'bg'.
As there are no other ASCII equivalents for these characters, I think they should be defined in charsArray() instead.
echo Stringy::create('ъ')->toAscii();
// outputs: 'ъ'
// expected: 'a'
echo Stringy::create('ъ')->toAscii('bg');
// outputs: 'a' (as expected)
Stringy::langSpecificCharsArray()defines ASCII counterparts for the following Bulgarian characters:ъ,Ъ,ь, andЬHowever none of those characters have any alternatives in
Stringy::charsArray(), which means they will be untouched byStringy::toAscii()unless$languageis set to'bg'.As there are no other ASCII equivalents for these characters, I think they should be defined in
charsArray()instead.