discourse/spec/helpers
Régis HANOL 54fc63b4ad
FIX: Make twitter card meta data translatable (#39150)
The reading time and likes values in twitter card meta tags were
hard-coded English strings ("X mins 🕑" and "X ❤"). This made them
impossible to translate on Crowdin and also caused incorrect
pluralization ("1 mins" instead of "1 min").

Replace the hard-coded strings with I18n.t calls using new
`reading_time_minutes` and `likes_count` translation keys with proper
`one`/`other` pluralization.

https://meta.discourse.org/t/400164
2026-04-08 18:40:21 +02:00
..
application_helper_spec.rb FIX: Make twitter card meta data translatable (#39150) 2026-04-08 18:40:21 +02:00
email_helper_spec.rb DEV: update base url links to respect subfolder installs (#27740) 2024-07-09 12:42:38 +04:00
embed_helper_spec.rb DEV: Extract embed post date title into i18n-aware helper (#38594) 2026-03-17 09:12:21 -05:00
redis_snapshot_helper.rb DEV: Call Discourse.redis.flushdb after the end of each test (#29117) 2024-10-09 07:19:31 +08:00
topics_helper_spec.rb DEV: Apply syntax_tree formatting to spec/* 2023-01-09 11:49:28 +00:00
user_notifications_helper_spec.rb DEV: Apply syntax_tree formatting to spec/* 2023-01-09 11:49:28 +00:00