Removing active_in_the_last for i18n.

- Fixes https://github.com/LemmyNet/lemmy-translations/issues/17
This commit is contained in:
Dessalines 2021-09-18 13:02:53 -04:00
parent 4049520613
commit 184ad23321
2 changed files with 17 additions and 23 deletions

View file

@ -156,10 +156,10 @@ export class Sidebar extends Component<SidebarProps, SidebarState> {
</li>
<li
className="list-inline-item badge badge-secondary pointer"
data-tippy-content={`${i18n.t("number_of_users", {
data-tippy-content={i18n.t("active_users_in_the_last_day", {
count: counts.users_active_day,
formattedCount: counts.users_active_day,
})} ${i18n.t("active_in_the_last")} ${i18n.t("day")}`}
})}
>
{i18n.t("number_of_users", {
count: counts.users_active_day,
@ -169,10 +169,10 @@ export class Sidebar extends Component<SidebarProps, SidebarState> {
</li>
<li
className="list-inline-item badge badge-secondary pointer"
data-tippy-content={`${i18n.t("number_of_users", {
data-tippy-content={i18n.t("active_users_in_the_last_week", {
count: counts.users_active_week,
formattedCount: counts.users_active_week,
})} ${i18n.t("active_in_the_last")} ${i18n.t("week")}`}
})}
>
{i18n.t("number_of_users", {
count: counts.users_active_week,
@ -182,10 +182,10 @@ export class Sidebar extends Component<SidebarProps, SidebarState> {
</li>
<li
className="list-inline-item badge badge-secondary pointer"
data-tippy-content={`${i18n.t("number_of_users", {
data-tippy-content={i18n.t("active_users_in_the_last_month", {
count: counts.users_active_month,
formattedCount: counts.users_active_month,
})} ${i18n.t("active_in_the_last")} ${i18n.t("month")}`}
})}
>
{i18n.t("number_of_users", {
count: counts.users_active_month,
@ -195,13 +195,10 @@ export class Sidebar extends Component<SidebarProps, SidebarState> {
</li>
<li
className="list-inline-item badge badge-secondary pointer"
data-tippy-content={`${i18n.t("number_of_users", {
data-tippy-content={i18n.t("active_users_in_the_last_six_months", {
count: counts.users_active_half_year,
formattedCount: counts.users_active_half_year,
})} ${i18n.t("active_in_the_last")} ${i18n.t("number_of_months", {
count: 6,
formattedCount: 6,
})}`}
})}
>
{i18n.t("number_of_users", {
count: counts.users_active_half_year,

View file

@ -511,10 +511,10 @@ export class Home extends Component<any, HomeState> {
</li>
<li
className="list-inline-item badge badge-secondary pointer"
data-tippy-content={`${i18n.t("number_of_users", {
data-tippy-content={i18n.t("active_users_in_the_last_day", {
count: counts.users_active_day,
formattedCount: counts.users_active_day,
})} ${i18n.t("active_in_the_last")} ${i18n.t("day")}`}
formattedCount: numToSI(counts.users_active_day),
})}
>
{i18n.t("number_of_users", {
count: counts.users_active_day,
@ -524,10 +524,10 @@ export class Home extends Component<any, HomeState> {
</li>
<li
className="list-inline-item badge badge-secondary pointer"
data-tippy-content={`${i18n.t("number_of_users", {
data-tippy-content={i18n.t("active_users_in_the_last_week", {
count: counts.users_active_week,
formattedCount: counts.users_active_week,
})} ${i18n.t("active_in_the_last")} ${i18n.t("week")}`}
})}
>
{i18n.t("number_of_users", {
count: counts.users_active_week,
@ -537,10 +537,10 @@ export class Home extends Component<any, HomeState> {
</li>
<li
className="list-inline-item badge badge-secondary pointer"
data-tippy-content={`${i18n.t("number_of_users", {
data-tippy-content={i18n.t("active_users_in_the_last_month", {
count: counts.users_active_month,
formattedCount: counts.users_active_month,
})} ${i18n.t("active_in_the_last")} ${i18n.t("month")}`}
})}
>
{i18n.t("number_of_users", {
count: counts.users_active_month,
@ -550,13 +550,10 @@ export class Home extends Component<any, HomeState> {
</li>
<li
className="list-inline-item badge badge-secondary pointer"
data-tippy-content={`${i18n.t("number_of_users", {
data-tippy-content={i18n.t("active_users_in_the_last_six_months", {
count: counts.users_active_half_year,
formattedCount: counts.users_active_half_year,
})} ${i18n.t("active_in_the_last")} ${i18n.t("number_of_months", {
count: 6,
formattedCount: 6,
})}`}
})}
>
{i18n.t("number_of_users", {
count: counts.users_active_half_year,