lib/i18n/migrations/migration.rb in i18n-migrations-1.2.4 vs lib/i18n/migrations/migration.rb in i18n-migrations-2.0.0
- old
+ new
@@ -99,13 +99,13 @@
@translations.delete_term(key)
end
def assign_translation(key, term, overrides)
if overrides[@locale_code.to_sym]
- @translations.set_term(key, value: overrides[@locale_code.to_sym])
+ @translations.set_term(key, value: overrides[@locale_code.to_sym], errors: [], autotranslated: false)
else
- value, notes = @dictionary.lookup(term, key: key)
- @translations.set_term(key, value: value, notes: notes)
+ value, errors = @dictionary.lookup(term, key: key)
+ @translations.set_term(key, value: value, errors: errors, autotranslated: true)
end
end
end
end
end