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
Currently, the Spatie Translatable package uses the locale set by config('app.locale') for retrieving translations. However, there are scenarios where it would be beneficial to set a different locale for specific operations or parts of the application without changing the global app.locale.
This discussion was converted from issue #493 on March 21, 2025 08:24.
Heading
Bold
Italic
Quote
Code
Link
Numbered list
Unordered list
Task list
Attach files
Mention
Reference
Menu
reacted with thumbs up emoji reacted with thumbs down emoji reacted with laugh emoji reacted with hooray emoji reacted with confused emoji reacted with heart emoji reacted with rocket emoji reacted with eyes emoji
-
Currently, the Spatie Translatable package uses the locale set by
config('app.locale')
for retrieving translations. However, there are scenarios where it would be beneficial to set a different locale for specific operations or parts of the application without changing the globalapp.locale
.Beta Was this translation helpful? Give feedback.
All reactions