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
Copy file name to clipboardExpand all lines: README.md
+3-1Lines changed: 3 additions & 1 deletion
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -56,7 +56,9 @@ If there is no Fluent message for a given key, translator will fall back to a `.
56
56
57
57
Laravel validator uses custom logic for replacing the `:attribute` variable and requires deeply nested keys, which are not supported in Fluent, so you should leave `validation.php` file in the default Laravel format.
58
58
59
-
The `trans_choice()` helper always falls back to the default translator, as Fluent format eliminates the need for this function.
59
+
The `trans_choice()` helper always falls back to the default translator, as the Fluent format eliminates the need for this function.
60
+
61
+
You may use the `FluentTranslator::addFunction()` method to register [Fluent functions](https://projectfluent.org/fluent/guide/functions.html).
0 commit comments