Skip to content

Commit d1a17ca

Browse files
committed
minor #18060 [String] Mention FrenchInflector and Interface (MrYamous)
This PR was submitted for the 6.2 branch but it was merged into the 5.4 branch instead. Discussion ---------- [String] Mention FrenchInflector and Interface Mention FrenchInflector 🐓 Commits ------- d173ef3 mention french inflector and interface in String doc
2 parents 2b8bbfe + d173ef3 commit d1a17ca

File tree

1 file changed

+6
-0
lines changed

1 file changed

+6
-0
lines changed

components/string.rst

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -649,6 +649,12 @@ class to convert English words from/to singular/plural with confidence::
649649
The value returned by both methods is always an array because sometimes it's not
650650
possible to determine a unique singular/plural form for the given word.
651651

652+
.. note::
653+
654+
Symfony also provide a :class:`Symfony\\Component\\String\\Inflector\\FrenchInflector`
655+
and an :class:`Symfony\\Component\\String\\Inflector\\InflectorInterface` to implements
656+
if you need to use your own inflector.
657+
652658
.. _`ASCII`: https://en.wikipedia.org/wiki/ASCII
653659
.. _`Unicode`: https://en.wikipedia.org/wiki/Unicode
654660
.. _`Code points`: https://en.wikipedia.org/wiki/Code_point

0 commit comments

Comments
 (0)