Hm, please just use `==`, ` type == "post"`. Or in this case even a case when:

```ruby
raw case type
       when "post"
         t(...)
       when "comment"
         t(...)
       end