We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent e03c20c commit f465700Copy full SHA for f465700
src/Traits/IsTranslatable.php
@@ -212,7 +212,7 @@ public function getAttribute($key): mixed
212
213
// Translate using the current app locale if possible
214
if ($this->isTranslatable($key)) {
215
- $translated_value = $this->translate($key, app()->currentLocale());
+ $translated_value = $this->translate($key, translation_locale());
216
217
// Return translated value if not null, otherwise fallback to original value
218
return $translated_value ?? parent::getAttribute($key);
0 commit comments