diff --git a/app/models/communication/website/post.rb b/app/models/communication/website/post.rb index 3a9302d2a5e6ba60364b2783db536d2eafc90d03..b3386f1ac8ce6fdfaa1df5f507afee5412f3be49 100644 --- a/app/models/communication/website/post.rb +++ b/app/models/communication/website/post.rb @@ -178,6 +178,10 @@ class Communication::Website::Post < ApplicationRecord end def translate_additional_data!(translation) - # TODO: Must handle categories + categories.each do |category| + translated_category = category.translation_for(translation.language) + translated_category ||= category.translate!(translation.language) + translation.categories << translated_category + end end end