diff --git a/temp_file/app/helpers/admin/gmail_helper.rb b/temp_file/app/helpers/admin/gmail_helper.rb index 9e892e1..b334e4c 100644 --- a/temp_file/app/helpers/admin/gmail_helper.rb +++ b/temp_file/app/helpers/admin/gmail_helper.rb @@ -118,7 +118,7 @@ module Admin::GmailHelper message = Google::Apis::GmailV1::Message.new(raw: raw) error = nil result = nil - service.send_user_message(user_id,message,quota_user: site[:title][site.default_locale||:zh_tw]){|r,err| result=r;error=err} + service.send_user_message(user_id,message,quota_user: site.title_translations[site.default_locale||:zh_tw]){|r,err| result=r;error=err} [service,error] end end