lib/tram/policy/generator.rb in tram-policy-0.0.3 vs lib/tram/policy/generator.rb in tram-policy-0.1.0
- old
+ new
@@ -100,18 +100,18 @@
def locale_file
"config/locales/tram-policy.#{@locale}.yml"
end
def locale_header
- "---\n#{@locale}:\n"
+ "---\n#{@locale}:\n tram-policy:\n"
end
def locale_group
- @locale_group ||= " #{file}:\n"
+ @locale_group ||= " #{file}:\n"
end
def locale_line(key)
- " #{key}: translation missing\n"
+ " #{key}: translation missing\n"
end
def add_locale
create_file(locale_file, skip: true) { locale_header }
end