guard-i18next 0.2.0 → 0.2.1
Sign up to get free protection for your applications and to get access to all the features.
- data/lib/guard/i18next.rb +1 -1
- data/lib/guard/i18next/version.rb +1 -1
- metadata +1 -1
data/lib/guard/i18next.rb
CHANGED
@@ -41,7 +41,7 @@ module Guard
|
|
41
41
|
|
42
42
|
locale_key = locale.keys[0]
|
43
43
|
content = locale[locale_key]
|
44
|
-
File.open(options[:output] + "/#{filename}.
|
44
|
+
File.open(options[:output] + "/#{filename}.json", "w") do |f|
|
45
45
|
# Initialize namespace (if it hasn't been already)
|
46
46
|
f.puts "#{options[:namespace]} = #{options[:namespace]} != null ? #{options[:namespace]} : {}"
|
47
47
|
f.puts options[:namespace] + "[#{locale_key}] = " + content.to_json
|