Closed piecehealth closed 2 years ago
The I18n.t method won't raise I18n::MissingInterpolationArgument error if the given options are empty, which is not as expected.
I18n.t
I18n::MissingInterpolationArgument
e.g.
en: greeting: "Hello %{firstname} %{lastname}"
I18n.t("greeting", firstname: "Michael", lastname: "Jordan") # => "Hello Michael Jordan" I18n.t("greeting") # => "Hello %{firstname} %{lastname}" I18n.t("greeting", firstname: "Michael") # => I18n::MissingInterpolationArgument
The
I18n.t
method won't raiseI18n::MissingInterpolationArgument
error if the given options are empty, which is not as expected.e.g.