phrase 0.4.22 → 0.4.23

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
data/README.md CHANGED
@@ -37,6 +37,7 @@ You can manage your locale files with PhraseApp if they match one of the followi
37
37
  * Qt Translation Source
38
38
  * ChromeJSON i18n
39
39
  * Simple JSON
40
+ * Nested JSON
40
41
  * .NET ResX
41
42
  * Windows Phone ResX
42
43
  * INI
@@ -47,7 +48,7 @@ You can manage your locale files with PhraseApp if they match one of the followi
47
48
  * TMX Translation Memory eXchange
48
49
  * CSV
49
50
  * PHP Array
50
-
51
+ * Laravel PHP Array
51
52
 
52
53
  ### Supported platforms ###
53
54
 
@@ -17,6 +17,7 @@ module Phrase
17
17
  autoload :ResxWindowsphone, 'phrase/formats/resx_windowsphone'
18
18
  autoload :Windows8Resource, 'phrase/formats/windows8_resource'
19
19
  autoload :SimpleJson, 'phrase/formats/simple_json'
20
+ autoload :NestedJson, 'phrase/formats/nested_json'
20
21
  autoload :NodeJson, 'phrase/formats/node_json'
21
22
  autoload :Strings, 'phrase/formats/strings'
22
23
  autoload :Xml, 'phrase/formats/xml'
@@ -84,6 +85,7 @@ module Phrase
84
85
  resx_windowsphone: Phrase::Formats::ResxWindowsphone,
85
86
  windows8_resource: Phrase::Formats::Windows8Resource,
86
87
  simple_json: Phrase::Formats::SimpleJson,
88
+ nested_json: Phrase::Formats::NestedJson,
87
89
  node_json: Phrase::Formats::NodeJson,
88
90
  strings: Phrase::Formats::Strings,
89
91
  xml: Phrase::Formats::Xml,
@@ -0,0 +1,19 @@
1
+ # -*- encoding : utf-8 -*-
2
+
3
+ module Phrase
4
+ module Formats
5
+ class NestedJson < Phrase::Formats::Base
6
+ def self.filename_for_locale(locale)
7
+ "phrase.#{locale.name}.json"
8
+ end
9
+
10
+ def self.locale_aware?
11
+ false
12
+ end
13
+
14
+ def self.extensions
15
+ [:json]
16
+ end
17
+ end
18
+ end
19
+ end
@@ -1,3 +1,3 @@
1
1
  module Phrase
2
- VERSION = "0.4.22"
2
+ VERSION = "0.4.23"
3
3
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: phrase
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.4.22
4
+ version: 0.4.23
5
5
  prerelease:
6
6
  platform: ruby
7
7
  authors:
@@ -9,7 +9,7 @@ authors:
9
9
  autorequire:
10
10
  bindir: bin
11
11
  cert_chain: []
12
- date: 2014-03-20 00:00:00.000000000 Z
12
+ date: 2014-03-28 00:00:00.000000000 Z
13
13
  dependencies:
14
14
  - !ruby/object:Gem::Dependency
15
15
  name: colorize
@@ -223,6 +223,7 @@ files:
223
223
  - lib/phrase/formats/ini.rb
224
224
  - lib/phrase/formats/json.rb
225
225
  - lib/phrase/formats/laravel.rb
226
+ - lib/phrase/formats/nested_json.rb
226
227
  - lib/phrase/formats/node_json.rb
227
228
  - lib/phrase/formats/php_array.rb
228
229
  - lib/phrase/formats/plist.rb