Dynamic data not working in Submit Button element

Browser: Edge Version 128.0.2739.79
OS: Windows

I am using a custom WordPress log-in flow, but hadn’t realised that WordPress does not support multiple languages. To workaround this, I’ve created a custom function which has defined strings in all 3 languages supported. This works well both on page elements (e.g., headings, intro text) and on the form elements. However, the following two elements don’t work: (1) A form field placeholder, though the label works fine, and, (2) the Submit button text.

In both instances, the placeholder and submit button return no text, despite the same function working fine elsewhere.

I’m not sure if this is a bug or a limitation of the set-up.

The code is pretty simple. For example:

{echo:get_login_page_text('email_placeholder')}

Code review has been completed and the relevant add_filter element has been updated. Further, the code works in all other elements other than the submit button and the placeholder text for the form field.

May not be a bug – in fact, I’m pretty sure it’s not. To note, the field works fine as this:

{echo:get_login_page_text(email_placeholder)}

That is, all works fine without the single quote marks. Not sure why that might be the case, but all is working ok now.