Uploaded image for project: 'Planet4'
  1. Planet4
  2. PLANET-5398

Articles: Dates are not translated

XMLWordPrintable

    • 5
    • Translations
    • Sprint #145
    • titan

      Example page: https://www.greenpeace.org/nl/

      Pre-WYSIWYG we were using Twig's date filter to format dates for this block. This was taking into account the site's locale. See for instance how dates were in GPNL:
      https://7921-133470970-gh.circle-artifacts.com/0/app/backstop_data/html_report/index.html

      And here is the WP way:
      https://wordpress.org/support/article/formatting-date-and-time/#localization

      Currently dates are not localized, but always displayed in English.

      Tasks

      • Investigate how we can localize dates. Maybe WP/Gutenberg offers a way.
      • Implement the change or re-refine if it's turns out to be a huge amount of work.

        1. screenshot-1.png
          220 kB
          Luca Tiralongo
        2. screenshot-2.png
          177 kB
          Luca Tiralongo
        3. Screenshot from 2020-08-11 10-39-27 - Oscar Keur.png
          6 kB
          Daniel Gracian
        4. Screenshot from 2020-08-11 10-39-51 - Oscar Keur.png
          11 kB
          Daniel Gracian
        5. Screenshot from 2020-08-11 10-56-26 - Oscar Keur.png
          5 kB
          Daniel Gracian

            sdeshmuk Sagar Deshmukh
            okeur Oscar Keur (Inactive)
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

              Created:
              Updated:
              Resolved: