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.

--------------------------------------------------

>>> Share a link to this question, just copy and paste the code bellow on your web page <<<

<a href="https://www.wptricks.com/question/esc_html_e-is-not-translating-string-in-wordpress-closed/">

esc_html_e() is not translating string in wordpress [closed]</a>
0
, user5447339 2 months 0 Answers 74 views 0

Leave an answer