Sha256: 90e78155ddfe3ec1ac92efd1d4bb6edd71dd50823dc492e164bfcbbec7d01004
Contents?: true
Size: 1.4 KB
Versions: 3
Compression:
Stored size: 1.4 KB
Contents
# frozen_string_literal: true module Lokalise class Client # Returns all translations for the given project (ungrouped) # # @see https://lokalise.co/api2docs/ruby/#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 # @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 # @return [Lokalise::Resources::Translation] # @param project_id [String] # @param translation_id [String, Integer] # @param params [Hash] def update_translation(project_id, translation_id, params) c_r Lokalise::Resources::Translation, :update, [project_id, translation_id], params end end end
Version data entries
3 entries across 3 versions & 1 rubygems