Sha256: 5d84d73996ffccac75c6d5cf984e8a3030b958fa1befd8d8b10de7e14aa77a63
Contents?: true
Size: 1.56 KB
Versions: 1
Compression:
Stored size: 1.56 KB
Contents
# frozen_string_literal: true module RubyLokaliseApi module Rest module Translations # Returns all translations for the given project (ungrouped) # # @see https://app.lokalise.com/api2docs/curl/#transition-list-all-translations-get # @return [RubyLokaliseApi::Collection::Translation<RubyLokaliseApi::Resources::Translation>] # @param project_id [String] # @param params [Hash] def translations(project_id, params = {}) c_r RubyLokaliseApi::Collections::Translation, :all, project_id, params end # Returns translation of the given project # # @see https://app.lokalise.com/api2docs/curl/#transition-retrieve-a-translation-get # @return [RubyLokaliseApi::Resources::Translation] # @param project_id [String] # @param translation_id [String, Integer] # @param params [Hash] def translation(project_id, translation_id, params = {}) c_r RubyLokaliseApi::Resources::Translation, :find, [project_id, translation_id], params end # Updates translation of the given project # # @see https://app.lokalise.com/api2docs/curl/#transition-update-a-translation-put # @return [RubyLokaliseApi::Resources::Translation] # @param project_id [String] # @param translation_id [String, Integer] # @param params [Hash] def update_translation(project_id, translation_id, params) c_r RubyLokaliseApi::Resources::Translation, :update, [project_id, translation_id], params end end end end
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
ruby-lokalise-api-6.0.0 | lib/ruby_lokalise_api/rest/translations.rb |