about summary refs log tree commit diff
path: root/app/lib
diff options
context:
space:
mode:
Diffstat (limited to 'app/lib')
-rw-r--r--app/lib/language_detector.rb2
1 files changed, 1 insertions, 1 deletions
diff --git a/app/lib/language_detector.rb b/app/lib/language_detector.rb
index 8c1751beb..ca5cb2591 100644
--- a/app/lib/language_detector.rb
+++ b/app/lib/language_detector.rb
@@ -35,6 +35,6 @@ class LanguageDetector
   end
 
   def default_locale
-    account&.user&.locale || I18n.default_locale
+    account&.user_locale || I18n.default_locale
   end
 end