cabrerahector / wordpress-popular-posts

WordPress Popular Posts - A highly customizable WordPress widget that displays your most popular posts.
https://wordpress.org/plugins/wordpress-popular-posts/
GNU General Public License v2.0
280 stars 83 forks source link

The date is always in English, WPP is not using available locales #236

Closed cabrerahector closed 4 years ago

cabrerahector commented 4 years ago

Describe the bug When enabling the "Show date" option, WPP doesn't translate the actual date into the site's language when there's a suitable locale file in Moment/Locales.

To Reproduce Steps to reproduce the behavior:

  1. Go to Widgets > WordPress Popular Posts.
  2. Enable the "Show date" option.
  3. Set site's language to es_ES (or any other language with a locale file available in Moment/Locales).
  4. On the front-end, the widget will display the date in English.

Expected behavior The widget should display the date in the selected language when there's a Moment locale available for it.

Environment: