Translating translatable_method like "Create a New Account" #329
learn-ai763
started this conversation in
General
Replies: 1 comment
-
Note sure what the question/suggestion is. rodauth-i18n is definitely convenient because it automates this process, so you can just edit YAML files directly. The |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
I wanted to translate the dynamic strings in
views/rodauth/_login_form_footer.html.erb
These are depending on what features you have turned on. So I need to look up the feature definitions. As an example I had verify_account turned on, so in its feature file eg:
<gem_path>/features/verify_account.rb
found this line
translatable_method :verify_account_resend_link_text, "Resend Verify Account Information"
The only thing I need to do is to add this to
rodauth_main.rb
, so I add a translation new section at the end ofconfigure
eg:Maybe this makes this whole thing unnecessary: https://github.com/janko/rodauth-i18n
Beta Was this translation helpful? Give feedback.
All reactions