]> git.openstreetmap.org Git - rails.git/commit
fix(i18n): make future-tense block time text translatable
authorSomSamantray <>
Wed, 5 Aug 2026 14:01:28 +0000 (19:31 +0530)
committerSomSamantray <>
Wed, 5 Aug 2026 14:01:28 +0000 (19:31 +0530)
commitf5bfe3808124da7cd2f0ab315a5ea125d3f0cbaf
tree178edfe6379b8ade4357ab0d6dfe7412c8d1993f
parent08eaa40b9cbb3b838cf99e6ec229c31526cf8707
fix(i18n): make future-tense block time text translatable

block_short_time_in_future rendered its relative-duration text via
time_ago_in_words with no :scope, falling back to Rails' bundled
gem-default locale data instead of the app's own translatable
config/locales files (issue #5769). Mirror the existing
distance_in_words_ago pattern used by block_short_time_in_past: add a
symmetric distance_in_words_in scope and point the helper at it, and
drop the hardcoded literal "in " from time_in_future_title so the
direction word is fully translator-controlled, like the past-tense
string already is.
app/helpers/user_blocks_helper.rb
config/locales/en.yml
test/helpers/user_blocks_helper_test.rb