From d173ef3baa4e1e0dc4e520c5268fbe53a955295d Mon Sep 17 00:00:00 2001 From: Matthieu Lempereur Date: Wed, 15 Mar 2023 10:46:04 +0100 Subject: [PATCH] mention french inflector and interface in String doc --- components/string.rst | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/components/string.rst b/components/string.rst index 57628644fdf..696b692cd13 100644 --- a/components/string.rst +++ b/components/string.rst @@ -649,6 +649,12 @@ class to convert English words from/to singular/plural with confidence:: The value returned by both methods is always an array because sometimes it's not possible to determine a unique singular/plural form for the given word. +.. note:: + + Symfony also provide a :class:`Symfony\\Component\\String\\Inflector\\FrenchInflector` + and an :class:`Symfony\\Component\\String\\Inflector\\InflectorInterface` to implements + if you need to use your own inflector. + .. _`ASCII`: https://en.wikipedia.org/wiki/ASCII .. _`Unicode`: https://en.wikipedia.org/wiki/Unicode .. _`Code points`: https://en.wikipedia.org/wiki/Code_point