Skip to content

Commit

Permalink
Fix const enumeration & spaces => tab
Browse files Browse the repository at this point in the history
  • Loading branch information
nukosuke committed Dec 3, 2018
1 parent 30593df commit 6342b9c
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions script/create_locale_types.rb
Original file line number Diff line number Diff line change
Expand Up @@ -33,12 +33,12 @@

const (<% data['locales'].each_with_index do |locale, idx| %>
// Locale<%= locale_key = locale['locale'].gsub('-', '').upcase %> <%= locale['presentation_name'] %>
Locale<%= locale_key %><% if idx == 0 %> = iota<% end %><% end %>
Locale<%= locale_key %> = <%= locale['id'] %><% end %>
)

var localeTypeText = map[int]string {<% data['locales'].each do |locale| %>
// Locale<%= locale_key = locale['locale'].gsub('-', '').upcase %> <%= locale['presentation_name'] %>
Locale<%= locale_key %>: "<%= locale['locale'] %>",<% end %>
Locale<%= locale_key %>: "<%= locale['locale'] %>",<% end %>
}

// LocaleTypeText returns locale type text
Expand Down

0 comments on commit 6342b9c

Please sign in to comment.