Skip to content

Commit 18eafd3

Browse files
committed
add fluent functions to readme
1 parent 541f18a commit 18eafd3

1 file changed

Lines changed: 3 additions & 1 deletion

File tree

README.md

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -56,7 +56,9 @@ If there is no Fluent message for a given key, translator will fall back to a `.
5656

5757
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.
5858

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).
6062

6163
### Configuration
6264

0 commit comments

Comments
 (0)