You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
:param array $parameters: Parameters as key/value pairs to populate placeholders in the translation. Note that Symfony has deprecated `transChoice()` in favor of using this method plus defining the key ``%count%`` in ``$parameters``. For example, ``echo $translator->trans('helloworld.number_of_moons', ['%count%' => 1, '%world% => 'Earth']);`` with the translation, ``"helloworld.number_of_moons="{0}%world% has no moons|{1}%world% has one moon|]1,Inf[ %world% has %count% moons"``.
71
-
:param string|null $domain: Specific domain to look for the translation key. Defaults to ``messages`` if ``NULL``.
72
-
:param string|null $locale: Specific locale to look for the translation key. Defaults to system or user configured locale.
70
+
:param array $parameters: Parameters as key/value pairs to populate placeholders in the translation. Note that Symfony has deprecated `transChoice()` in favor of using this method plus defining the key ``%count%`` in ``$parameters``. For example, ``echo $translator->trans('helloworld.number_of_moons', ['%count%' => 1, '%world% => 'Earth']);`` with the translation, ``"helloworld.number_of_moons="{0}%world% has no moons|{1}%world% has one moon|]1,Inf[ %world% has %count% moons"``.
71
+
:param string|null $domain: Specific domain to look for the translation key. Defaults to ``messages`` if ``NULL``.
72
+
:param string|null $locale: Specific locale to look for the translation key. Defaults to system or user configured locale.
73
73
74
-
:returns: Returns the translated string if the key is found. Otherwise, an empty string.
75
-
:returntype: string
74
+
:returns: Returns the translated string if the key is found. Otherwise, an empty string.
0 commit comments