We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent e0a6695 commit 984ca3aCopy full SHA for 984ca3a
lib/contentstack/query.rb
@@ -370,6 +370,20 @@ def descending(field_uid)
370
self
371
end
372
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
+
387
# Specifies an array of 'only' keys in BASE object that would be 'included' in the response.
388
#
389
# @param [Array] fields Array of the 'only' reference keys to be included in response.
0 commit comments