chore: make min read string translatable in blog post (#19410)

* Make min read translatable

min read doesn't get translated, which can be a little bit annoying when writing blog posts in other languages other than english


Co-authored-by: phot0n <ritwikpuri5678@gmail.com>
This commit is contained in:
aliX40 2022-12-30 13:20:24 +01:00 committed by GitHub
parent b414fff09f
commit 1ddbb9d7a4
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
2 changed files with 2 additions and 2 deletions

View file

@ -22,7 +22,7 @@
<time datetime="{{ published_on }}">{{ frappe.format_date(published_on) }}</time>
{%- if read_time -%}
&nbsp;&middot;
<span>{{ read_time }} min read</span>
<span>{{ read_time }} {{ _('min read') }} </span>
{%- endif -%}
</div>
</div>

View file

@ -33,7 +33,7 @@
<a href="/blog?blogger={{ post.blogger }}">{{ post.full_name }}</a>
<div class="small">
{{ frappe.format_date(post.published_on) }}
{% if post.read_time %} &middot; {{ post.read_time }} min read {% endif %}
{% if post.read_time %} &middot; {{ post.read_time }} {{ _('min read') }} {% endif %}
</div>
</div>
</div>