Skip to content

Commit

Permalink
Merge 2c7e7e3 into 2a231d4
Browse files Browse the repository at this point in the history
  • Loading branch information
Spone committed Apr 20, 2018
2 parents 2a231d4 + 2c7e7e3 commit 9481cab
Show file tree
Hide file tree
Showing 4 changed files with 6 additions and 3 deletions.
3 changes: 3 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,9 @@

## Upcoming release

**Enhancements:**
- Use lazy lookup for translations in all generator templates

## v2.0.0.pre.1 (2018-04-12)

**Breaking changes:**
Expand Down
2 changes: 1 addition & 1 deletion lib/generators/component/templates/view.html.erb.erb
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
<div class="<%= component_class_name %>">
<%- if locale? -%>
<%%= t "<%= module_name.underscore %>.component_name" %>
<%%= t ".component_name" %>
<%- else -%>
<%= module_name.underscore %>
<%- end -%>
Expand Down
2 changes: 1 addition & 1 deletion lib/generators/component/templates/view.html.haml.erb
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
.<%= component_class_name %>{class: "<%= component_class_name %>"}
<%- if locale? -%>
= t "<%= module_name.underscore %>.component_name"
= t ".component_name"
<%- else -%>
<%= module_name.underscore %>
<%- end -%>
2 changes: 1 addition & 1 deletion lib/generators/component/templates/view.html.slim.erb
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
.<%= component_class_name %>
<%- if locale? -%>
= t "<%= module_name.underscore %>.component_name"
= t ".component_name"
<%- else -%>
| <%= module_name.underscore %>
<%- end -%>

0 comments on commit 9481cab

Please sign in to comment.