mirror of
https://github.com/discourse/discourse.git
synced 2025-02-25 18:55:32 -06:00
FIX: Customizing missing pluralized translations didn't work
This commit is contained in:
@@ -12,10 +12,10 @@ class SiteTextSerializer < ApplicationSerializer
|
||||
end
|
||||
|
||||
def overridden?
|
||||
current_val = value
|
||||
|
||||
I18n.overrides_disabled do
|
||||
return I18n.t(object[:id]) != current_val
|
||||
if I18n.exists?(object[:id])
|
||||
I18n.overrides_disabled { I18n.t(object[:id]) != object[:value] }
|
||||
else
|
||||
TranslationOverride.exists?(locale: I18n.locale, translation_key: object[:id])
|
||||
end
|
||||
end
|
||||
|
||||
|
Reference in New Issue
Block a user