Language detection defaults to nil (#3666)
* Default to nil for statuses.language * Language detection defaults to nil instead of instance UI default
This commit is contained in:
parent
a3715598cc
commit
022008a2a6
5 changed files with 21 additions and 16 deletions
|
@ -10,7 +10,7 @@ class LanguageDetector
|
|||
end
|
||||
|
||||
def to_iso_s
|
||||
detected_language_code || default_locale.to_sym
|
||||
detected_language_code || default_locale
|
||||
end
|
||||
|
||||
def prepared_text
|
||||
|
@ -43,6 +43,6 @@ class LanguageDetector
|
|||
end
|
||||
|
||||
def default_locale
|
||||
account&.user_locale || I18n.default_locale
|
||||
account&.user_locale&.to_sym || nil
|
||||
end
|
||||
end
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue