docbrown/app/lib/constants/settings/rate_limit.rb
yheuhtozr d6c15a3fc6
I18nize Constants::Settings (#17086)
* app/lib i18n (no callers)

* tidy key names

* callers deconstantified

* delete ja.yml

* update locale keys and calls

* remove ja.yml

* Revert "remove ja.yml"

This reverts commit 6a6881e274b58424ece0411c887c862124a2ca87.

* fix conflicts

* remove ja.yml

* Update general.rb
2022-05-11 09:58:37 +01:00

18 lines
558 B
Ruby

module Constants
module Settings
module RateLimit
def self.details
{
spam_trigger_terms: {
description: I18n.t("lib.constants.settings.rate_limit.spam.description"),
placeholder: I18n.t("lib.constants.settings.rate_limit.spam.placeholder")
},
user_considered_new_days: {
description: I18n.t("lib.constants.settings.rate_limit.new_days.description"),
placeholder: ::Settings::RateLimit.user_considered_new_days
}
}
end
end
end
end