Skip to content

Commit 9f91072

Browse files
authored
Update helpers.php
1 parent 5aab348 commit 9f91072

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/Helpers/helpers.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33
use SertxuDeveloper\Translatable\Facades\Translatable;
44

55
if (!function_exists('trans_route')) {
6-
function trans_route($name, $params = [], $absolute = false, $locale = false) {
6+
function trans_route($name, $params = [], $absolute = false, $locale = null) {
77
return Translatable::route($name, $params, $absolute, $locale);
88
}
99
}
@@ -12,4 +12,4 @@ function trans_route($name, $params = [], $absolute = false, $locale = false) {
1212
function switch_to_locale($locale) {
1313
return Translatable::switchToLocale($locale);
1414
}
15-
}
15+
}

0 commit comments

Comments
 (0)