Replies: 3 comments 2 replies
-
I don't think |
Beta Was this translation helpful? Give feedback.
-
I'm not sure what rodauth-i18n could do about translating email templates. If a Rodauth method doesn't wrap the returned text with a But in order for this to work, the method needs to be defined on the Rodauth object before the Obviously, we couldn't scale this approach to email body methods, because that would require You request is mainly about wanting to have email templates translated by default, correct? |
Beta Was this translation helpful? Give feedback.
-
Yes, that help a lot! Thank you! |
Beta Was this translation helpful? Give feedback.
-
Hi,
First of all thanks for having done and published Rodauth
I'm using it in a french website, and I would like to override the default templates, especially the one used to send a "verify email" or "reset password_email". I know I can override the "create_verify_account_email" or "send_verify_account_email" methods, but I think there will be other use-case where I want to translate a text hardcoded in english in the templates. Don't know how I should do that and dit not find anything in the docs, except in base.rdoc:
This means it should be possible, but I found no guide to do this. Where should I put my template files? Where should I declare that I want to override defaults template with my template files? Maybe I could override every method using default templates, but this seems not to be an easy/standard way.
Also, in the external-feature, the rodauth-i18n seems not care about these templates. This means eg. verification email is sent with an english text, even in a translated app ?
I think a clean way to translate a template inside rodauth-i18n would be the best solution to my problem.
Thanks for your help.
Beta Was this translation helpful? Give feedback.
All reactions