Skip to content

Commit

Permalink
Better l10n string for Hits
Browse files Browse the repository at this point in the history
  • Loading branch information
squaresmile committed Jun 1, 2024
1 parent b68d551 commit 4b521e3
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion packages/db/src/Breakdown/NoblePhantasmBreakdown.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -133,7 +133,7 @@ class NoblePhantasmBreakdown extends React.Component<IProps> {
<br />
</span>
) : null}
<b>{t("Hits")}:</b> {np.npDistribution.length} Hits –{" "}
<b>{t("Hits", { count: np.npDistribution.length })}:</b> {np.npDistribution.length} Hits –{" "}
{mergeElements(
np.npDistribution.map((hit) => asPercent(hit, 0)),
", "
Expand Down
2 changes: 1 addition & 1 deletion packages/db/src/Page/NoblePhantasmPage.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -128,7 +128,7 @@ class NoblePhantasmPage extends React.Component<IProps, IState> {
{ label: t("Type"), value: <span lang={lang(region)}>{noblePhantasm.type}</span> },
{ label: t("Card Type"), value: toTitleCase(noblePhantasm.card) },
{
label: t("Hits"),
label: t("Hits", { count: noblePhantasm.npDistribution.length }),
value: mergeElements(
noblePhantasm.npDistribution.map((hit) => asPercent(hit, 0)),
", "
Expand Down
2 changes: 1 addition & 1 deletion packages/db/src/Page/Servant/ServantMainData.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -66,7 +66,7 @@ class ServantMainData extends React.Component<IProps> {
&nbsp;-&nbsp;
{cardInfo.hitsDistribution.length}{" "}
{cardInfo.attackType === CardDetail.AttackType.ALL ? `${this.props.t("AOE")} ` : ""}
{this.props.t("Hits")}
{this.props.t("Hits", { count: cardInfo.hitsDistribution.length })}
</span>
<div>
{cardInfo.damageRate !== undefined &&
Expand Down

0 comments on commit 4b521e3

Please sign in to comment.