Ensure plurals are output even if they don't appear magically in normal

transliatont
This commit is contained in:
Dwayne Bailey 2024-08-13 17:19:43 +01:00
parent 22071efd3c
commit aa853e5506

View file

@ -196,6 +196,14 @@ module Twine
value.gsub(/\A *| *\z/) { |spaces| '\u0020' * spaces.length }
end
def should_include_definition(definition, lang)
if definition.is_plural?
return !definition.plural_translation_for_lang(lang).nil?
else
return !definition.translation_for_lang(lang).nil?
end
end
end
end
end