Closed SunboX closed 10 years ago
locales.ini
emailFieldName = E-Mail emptyFieldMessage = Plaese fill out the "{{ fieldName }}" field!
HTML
<span data-l10n-id="emptyFieldMessage" data-l10n-args="{ fieldName: THIS SHOULD BE REPLACED WITH TRANSLATED emailFieldName }"></span>
ahh, got it working! :dancer:
var p = document.createElement('p'); p.setAttribute('data-l10n-id', 'emptyFieldMessage'); p.setAttribute('data-l10n-args', '{ "fieldName": "{{ emailFieldName }}" }');
locales.ini
HTML