lib/ruby-lokalise-api/rest/translations.rb in ruby-lokalise-api-2.10.0 vs lib/ruby-lokalise-api/rest/translations.rb in ruby-lokalise-api-3.0.0
- old
+ new
@@ -2,31 +2,31 @@
module Lokalise
class Client
# Returns all translations for the given project (ungrouped)
#
- # @see https://lokalise.co/api2docs/ruby/#transition-list-all-translations-get
+ # @see https://app.lokalise.com/api2docs/curl/#transition-list-all-translations-get
# @return [Lokalise::Collection::Translation<Lokalise::Resources::Translation>]
# @param project_id [String]
# @param params [Hash]
def translations(project_id, params = {})
c_r Lokalise::Collections::Translation, :all, project_id, params
end
# Returns translation of the given project
#
- # @see https://lokalise.co/api2docs/ruby/#transition-retrieve-a-translation-get
+ # @see https://app.lokalise.com/api2docs/curl/#transition-retrieve-a-translation-get
# @return [Lokalise::Resources::Translation]
# @param project_id [String]
# @param translation_id [String, Integer]
# @param params [Hash]
def translation(project_id, translation_id, params = {})
c_r Lokalise::Resources::Translation, :find, [project_id, translation_id], params
end
# Updates translation of the given project
#
- # @see https://lokalise.co/api2docs/ruby/#transition-update-a-translation-put
+ # @see https://app.lokalise.com/api2docs/curl/#transition-update-a-translation-put
# @return [Lokalise::Resources::Translation]
# @param project_id [String]
# @param translation_id [String, Integer]
# @param params [Hash]
def update_translation(project_id, translation_id, params)