Skip to content

Instantly share code, notes, and snippets.

@championshuttler
Last active December 17, 2018 05:21
Show Gist options
  • Save championshuttler/89416f9a3a1bb39d94bcc627d7776e7b to your computer and use it in GitHub Desktop.
Save championshuttler/89416f9a3a1bb39d94bcc627d7776e7b to your computer and use it in GitHub Desktop.
diff --git a/src/amo/components/AddonSummaryCard/index.js b/src/amo/components/AddonSummaryCard/index.js
index 86efc975f..7c8d2af9c 100644
--- a/src/amo/components/AddonSummaryCard/index.js
+++ b/src/amo/components/AddonSummaryCard/index.js
@@ -58,7 +58,7 @@ export const AddonSummaryCardBase = ({
addonAverage = i18n.sprintf(
// eslint-disable-next-line max-len
// translators: averageRating is a localized number, such as 4.5 in English or ٤٫٧ in Arabic.
- i18n.gettext('%(averageRating)s star average'),
+ i18n.gettext('%(averageRating)s Stars out of 5'),
{ averageRating },
);
}
diff --git a/tests/unit/amo/components/TestAddonSummaryCard.js b/tests/unit/amo/components/TestAddonSummaryCard.js
index ef71ac34c..c5a60fad8 100644
--- a/tests/unit/amo/components/TestAddonSummaryCard.js
+++ b/tests/unit/amo/components/TestAddonSummaryCard.js
@@ -155,7 +155,7 @@ describe(__filename, () => {
});
expect(root.find('.AddonSummaryCard-addonAverage').text()).toEqual(
- '4.7 star average',
+ '4.7 Stars out of 5',
);
});
@@ -171,7 +171,7 @@ describe(__filename, () => {
});
expect(root.find('.AddonSummaryCard-addonAverage').text()).toEqual(
- '4 star average',
+ '4 Stars out of 5',
);
});
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment