esc_html_e() is not translating string in wordpress [closed]

Question

I am using esc_html_e() function as shown below to translate a string.

<h1><?php esc_html_e('Question', 'abcd'); ?> &nbsp;</h1>

On english page, it displays the right word Question but on taking the page to french it still shows the same word Question.

I am wondering what can be the reason behind this. I believe esc_html_e() function translates a string when different language page is requested.

0
, user5447339 4 years 2020-03-25T12:51:03-05:00 0 Answers 120 views 0

Leave an answer

Browse
Browse