Ordinal day of month in Portuguese

Good catch!

That is a bug in the plugin, where it isn’t using localized formats in many places

Looks like the built-in localized formats in Moment.js aren’t that great either, so we should use our own localized formats.

I suggest changing:

@@ -4,10 +4,11 @@ export default Ember.Controller.extend({
   @computed
   title() {
     const date = moment();
+    const dateFormat = I18n.t("dates.long_no_year_no_time");
 
     return I18n.t("anniversaries.upcoming.title", {
-      start_date: date.add(2, "days").format("MMMM Do"),
-      end_date: date.add(7, "days").format("MMMM Do")
+      start_date: date.add(2, "days").format(dateFormat),
+      end_date: date.add(7, "days").format(dateFormat)
     });
   },

What do you think @tgxworld ?

5 curtidas