Closed SebastianHe closed 9 years ago
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
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.
This is now available in v0.9.0.rc2 (only for .rb files), and will be available in the v0.9.0 release.
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