lib/ruby-lokalise-api/resources/translation.rb in ruby-lokalise-api-1.1.0 vs lib/ruby-lokalise-api/resources/translation.rb in ruby-lokalise-api-2.0.0
- old
+ new
@@ -1,12 +1,13 @@
module Lokalise
module Resources
class Translation < Base
- class << self
- private
+ supports :update
- def endpoint(project_id)
- "projects/#{project_id}/translations"
+ class << self
+ def endpoint(project_id, translation_id = nil)
+ path_from projects: project_id,
+ translations: translation_id
end
end
end
end
end