Translate to regional language variant (e.g. pt-BR) (#32428)

This commit is contained in:
Christian Schmidt 2024-10-15 14:26:20 +01:00 committed by Claire
parent dc2f9eef77
commit 0ff427fab3
3 changed files with 21 additions and 4 deletions

View file

@ -23,6 +23,6 @@ class Api::V1::Statuses::TranslationsController < Api::V1::Statuses::BaseControl
private
def set_translation
@translation = TranslateStatusService.new.call(@status, content_locale)
@translation = TranslateStatusService.new.call(@status, I18n.locale.to_s)
end
end