- Issue created by @SV
- last update
over 1 year ago CI aborted - last update
over 1 year ago Build Successful - last update
over 1 year ago 25,914 pass, 1,797 fail - last update
over 1 year ago 25,967 pass, 1,789 fail - ๐ฉ๐ชGermany lmoeni
I noticed this in my projects too. The patch fixes the issue for me.
- ๐ฎ๐ณIndia anandhi karnan Chennai
anandhi karnan โ made their first commit to this issueโs fork.
- Merge request !9711Issue #3410052 Impossible to translate ago for timestamp_ago formatter fix โ (Open) created by anandhi karnan
- ๐ฎ๐ณIndia anandhi karnan Chennai
I was able to reproduce this issue in Drupal 11.x.
Here are the steps I followed:
- Language and Content Translation modules are enabled.
- Multiple languages have been configured under Configuration > Regional and Language > Languages.
- Navigation to Configuration > Regional and Language > Content language and translation was done to enable translation for the content type.
- A content item with a date field was created and published.
- The content was translated into the second language.
- Navigated to the page displaying the content.
- Observed that "ago" and "in" in the timestamp format are untranslated.
I have created a merge request (MR) against Drupal 11.x. Please verify.
Thanks
- Status changed to Needs work
5 days ago 3:37am 13 April 2025 - First commit to issue fork.
- ๐ช๐ธSpain penyaskito Seville ๐, Spain ๐ช๐ธ, UTC+2 ๐ช๐บ
This is the wrong approach.
You need to translate your view/form mode formatter/widget settings with config translation, not translating a dynamic string with interface translation.
See ๐ Entity view/form mode formatter/widget settings have no translation UI Needs review for the proper solution. Marking this as duplicated.
As a workaround you can mangle with your yml config files and import them.
- ๐ช๐ธSpain penyaskito Seville ๐, Spain ๐ช๐ธ, UTC+2 ๐ช๐บ
Someone took the time to write more concrete steps for the workaround here: https://www.drupal.org/project/social/issues/3410322#comment-15710653 ๐ Impossible to translate "ago" on the list of private messages Needs work