Don't force the creation of 'other' form

This commit is contained in:
Dwayne Bailey 2024-08-13 16:34:03 +01:00
parent 5ea7bdb5d0
commit 22071efd3c

View file

@ -50,8 +50,8 @@ module Twine
if definition.is_plural?
# If definition is plural, but no translation found -> create
# Then check 'other' key
if !(new_definition.plural_translations[language] ||= {}).key? 'other'
# and add 'other' key
if (new_definition.plural_translations[language] ||= {}).empty?
new_definition.plural_translations[language]['other'] = value
end
end