File tree Expand file tree Collapse file tree 3 files changed +17
-3
lines changed
Expand file tree Collapse file tree 3 files changed +17
-3
lines changed Original file line number Diff line number Diff line change @@ -6,8 +6,8 @@ Gem::Specification.new do |s|
66 s . name = %q{contentstack}
77 s . version = Contentstack ::VERSION . dup
88 s . date = Time . now
9- s . authors = [ %q{Rohit Sharma } ]
10- s . email = [ "rubygems @contentstack.com" ]
9+ s . authors = [ %q{Contentstack } ]
10+ s . email = [ "support @contentstack.com" ]
1111
1212 s . required_ruby_version = '>= 2.0'
1313
Original file line number Diff line number Diff line change @@ -370,6 +370,20 @@ def descending(field_uid)
370370 self
371371 end
372372
373+ # Get entries from the specified locale.
374+ #
375+ # @param [String] code The locale code of the entry
376+ #
377+ # Example
378+ # @query = @stack.content_type('category').query
379+ # @query.locale('en-us')
380+ #
381+ # @return [Contentstack::Query]
382+ def locale ( code )
383+ @query [ :locale ] = code
384+ self
385+ end
386+
373387 # Specifies an array of 'only' keys in BASE object that would be 'included' in the response.
374388 #
375389 # @param [Array] fields Array of the 'only' reference keys to be included in response.
Original file line number Diff line number Diff line change 11module Contentstack
2- VERSION = "0.0.2 "
2+ VERSION = "0.0.3 "
33end
You can’t perform that action at this time.
0 commit comments