We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Hello,
i want to use the "default" value as base_value.
Example: in my code:
<%= t '.invite_header', default: 'Leitstellenspiel weiterempfehlen' %>
The german file should look like: referrals: index: invite_header: Leitstellenspiel weiterempfehlen
How can i do this?
best regards, Sebastian
The text was updated successfully, but these errors were encountered:
You would have to extend the parser to parse out the default. It's not easy, but can be done, similar to how scope argument is parsed: https://github.com/glebm/i18n-tasks/blob/master/lib/i18n/tasks/scanners/pattern_with_scope_scanner.rb
default
scope
Sorry, something went wrong.
In case someone wants to tackle this, I happened upon this gist that tries to do something similar: https://gist.github.com/zyphlar/5216623/
Maybe it can be useful as a starting point.
default: argument support for add-missing -v
default:
a482c68
Finally, #55
This is now available in v0.9.0.rc2 (only for .rb files), and will be available in the v0.9.0 release.
No branches or pull requests
Hello,
i want to use the "default" value as base_value.
Example:
in my code:
<%= t '.invite_header', default: 'Leitstellenspiel weiterempfehlen' %>
The german file should look like:
referrals:
index:
invite_header: Leitstellenspiel weiterempfehlen
How can i do this?
best regards,
Sebastian
The text was updated successfully, but these errors were encountered: