ruby-lokalise-api 2.9.0 → 4.0.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/.github/CODE_OF_CONDUCT.md +1 -1
- data/.github/CONTRIBUTING.md +9 -2
- data/CHANGELOG.md +1 -75
- data/LICENSE +9 -18
- data/README.md +18 -1734
- data/lib/ruby-lokalise-api.rb +2 -0
- data/lib/ruby-lokalise-api/client.rb +16 -4
- data/lib/ruby-lokalise-api/collections/base.rb +5 -3
- data/lib/ruby-lokalise-api/collections/queued_process.rb +15 -0
- data/lib/ruby-lokalise-api/connection.rb +1 -1
- data/lib/ruby-lokalise-api/data/attributes.json +29 -13
- data/lib/ruby-lokalise-api/request.rb +8 -1
- data/lib/ruby-lokalise-api/resources/base.rb +55 -25
- data/lib/ruby-lokalise-api/resources/branch.rb +1 -1
- data/lib/ruby-lokalise-api/resources/contributor.rb +1 -1
- data/lib/ruby-lokalise-api/resources/custom_translation_status.rb +1 -1
- data/lib/ruby-lokalise-api/resources/file.rb +3 -1
- data/lib/ruby-lokalise-api/resources/key.rb +1 -1
- data/lib/ruby-lokalise-api/resources/key_comment.rb +1 -1
- data/lib/ruby-lokalise-api/resources/order.rb +2 -0
- data/lib/ruby-lokalise-api/resources/payment_card.rb +1 -1
- data/lib/ruby-lokalise-api/resources/project.rb +2 -2
- data/lib/ruby-lokalise-api/resources/project_language.rb +1 -1
- data/lib/ruby-lokalise-api/resources/queued_process.rb +18 -0
- data/lib/ruby-lokalise-api/resources/screenshot.rb +1 -1
- data/lib/ruby-lokalise-api/resources/snapshot.rb +3 -1
- data/lib/ruby-lokalise-api/resources/task.rb +1 -1
- data/lib/ruby-lokalise-api/resources/team_user.rb +1 -1
- data/lib/ruby-lokalise-api/resources/team_user_group.rb +2 -1
- data/lib/ruby-lokalise-api/resources/translation.rb +1 -1
- data/lib/ruby-lokalise-api/resources/translation_provider.rb +3 -0
- data/lib/ruby-lokalise-api/resources/webhook.rb +11 -3
- data/lib/ruby-lokalise-api/rest/comments.rb +5 -5
- data/lib/ruby-lokalise-api/rest/contributors.rb +5 -5
- data/lib/ruby-lokalise-api/rest/custom_translation_statuses.rb +6 -6
- data/lib/ruby-lokalise-api/rest/files.rb +3 -3
- data/lib/ruby-lokalise-api/rest/keys.rb +7 -7
- data/lib/ruby-lokalise-api/rest/languages.rb +6 -6
- data/lib/ruby-lokalise-api/rest/payment_cards.rb +3 -3
- data/lib/ruby-lokalise-api/rest/projects.rb +6 -6
- data/lib/ruby-lokalise-api/rest/queued_processes.rb +26 -0
- data/lib/ruby-lokalise-api/rest/screenshots.rb +5 -5
- data/lib/ruby-lokalise-api/rest/snapshots.rb +4 -4
- data/lib/ruby-lokalise-api/rest/tasks.rb +5 -5
- data/lib/ruby-lokalise-api/rest/team_user_group.rb +4 -4
- data/lib/ruby-lokalise-api/rest/team_users.rb +4 -4
- data/lib/ruby-lokalise-api/rest/teams.rb +1 -1
- data/lib/ruby-lokalise-api/rest/translation_providers.rb +2 -2
- data/lib/ruby-lokalise-api/rest/translations.rb +3 -3
- data/lib/ruby-lokalise-api/rest/webhooks.rb +16 -5
- data/lib/ruby-lokalise-api/utils/attribute_helpers.rb +11 -6
- data/lib/ruby-lokalise-api/version.rb +1 -1
- data/ruby-lokalise-api.gemspec +7 -7
- data/spec/lib/ruby-lokalise-api/custom_json_parser_spec.rb +4 -4
- data/spec/lib/ruby-lokalise-api/error_spec.rb +8 -0
- data/spec/lib/ruby-lokalise-api/rest/branches_spec.rb +12 -0
- data/spec/lib/ruby-lokalise-api/rest/comments_spec.rb +12 -0
- data/spec/lib/ruby-lokalise-api/rest/contributors_spec.rb +12 -0
- data/spec/lib/ruby-lokalise-api/rest/custom_translation_statuses_spec.rb +12 -0
- data/spec/lib/ruby-lokalise-api/rest/files_spec.rb +17 -9
- data/spec/lib/ruby-lokalise-api/rest/keys_spec.rb +38 -20
- data/spec/lib/ruby-lokalise-api/rest/languages_spec.rb +12 -0
- data/spec/lib/ruby-lokalise-api/rest/orders_spec.rb +12 -0
- data/spec/lib/ruby-lokalise-api/rest/payment_cards_spec.rb +19 -5
- data/spec/lib/ruby-lokalise-api/rest/projects_spec.rb +12 -0
- data/spec/lib/ruby-lokalise-api/rest/queued_processes_spec.rb +57 -0
- data/spec/lib/ruby-lokalise-api/rest/screenshots_spec.rb +12 -0
- data/spec/lib/ruby-lokalise-api/rest/snapshots_spec.rb +25 -0
- data/spec/lib/ruby-lokalise-api/rest/tasks_spec.rb +20 -7
- data/spec/lib/ruby-lokalise-api/rest/team_user_groups_spec.rb +84 -0
- data/spec/lib/ruby-lokalise-api/rest/team_users_spec.rb +13 -0
- data/spec/lib/ruby-lokalise-api/rest/translation_providers_spec.rb +5 -0
- data/spec/lib/ruby-lokalise-api/rest/translations_spec.rb +12 -0
- data/spec/lib/ruby-lokalise-api/rest/webhooks_spec.rb +50 -0
- metadata +25 -20
@@ -9,7 +9,9 @@ module Lokalise
|
|
9
9
|
end
|
10
10
|
|
11
11
|
def upload(client, path, params)
|
12
|
-
|
12
|
+
klass = Lokalise::Resources::QueuedProcess
|
13
|
+
klass.new post(path, client, params),
|
14
|
+
->(project_id, id) { klass.endpoint(project_id, id) }
|
13
15
|
end
|
14
16
|
|
15
17
|
def endpoint(project_id, action = '')
|
@@ -3,10 +3,10 @@
|
|
3
3
|
module Lokalise
|
4
4
|
module Resources
|
5
5
|
class Project < Base
|
6
|
-
supports :update, :destroy
|
6
|
+
supports :update, :destroy, [:reload_data, '', :find]
|
7
7
|
|
8
8
|
def empty
|
9
|
-
self.class.empty @client, @path
|
9
|
+
self.class.empty @client, "#{@path}/empty"
|
10
10
|
end
|
11
11
|
|
12
12
|
class << self
|
@@ -0,0 +1,18 @@
|
|
1
|
+
# frozen_string_literal: true
|
2
|
+
|
3
|
+
module Lokalise
|
4
|
+
module Resources
|
5
|
+
class QueuedProcess < Base
|
6
|
+
DATA_KEY = 'Process'
|
7
|
+
ID_KEY = 'process'
|
8
|
+
supports [:reload_data, '', :find]
|
9
|
+
|
10
|
+
class << self
|
11
|
+
def endpoint(project_id, process_id = nil)
|
12
|
+
path_from projects: project_id,
|
13
|
+
processes: process_id
|
14
|
+
end
|
15
|
+
end
|
16
|
+
end
|
17
|
+
end
|
18
|
+
end
|
@@ -11,7 +11,9 @@ module Lokalise
|
|
11
11
|
|
12
12
|
class << self
|
13
13
|
def restore(client, path, *_args)
|
14
|
-
Lokalise::Resources::Project
|
14
|
+
klass = Lokalise::Resources::Project
|
15
|
+
klass.new post(path, client),
|
16
|
+
->(project_id, *_ids) { klass.endpoint(project_id) }
|
15
17
|
end
|
16
18
|
|
17
19
|
def endpoint(project_id, snapshot_id = nil)
|
@@ -9,7 +9,8 @@ module Lokalise
|
|
9
9
|
[:add_projects, '/projects/add', :update],
|
10
10
|
[:remove_projects, '/projects/remove', :update],
|
11
11
|
[:add_users, '/members/add', :update],
|
12
|
-
[:remove_users, '/members/remove', :update]
|
12
|
+
[:remove_users, '/members/remove', :update],
|
13
|
+
[:reload_data, '', :find]
|
13
14
|
|
14
15
|
class << self
|
15
16
|
def endpoint(team_id, team_user_group_id = nil, *actions)
|
@@ -3,12 +3,20 @@
|
|
3
3
|
module Lokalise
|
4
4
|
module Resources
|
5
5
|
class Webhook < Base
|
6
|
-
supports :update, :destroy
|
6
|
+
supports :update, :destroy, [:reload_data, '', :find]
|
7
|
+
|
8
|
+
def regenerate_secret
|
9
|
+
self.class.regenerate_secret @client, "#{@path}/secret/regenerate"
|
10
|
+
end
|
7
11
|
|
8
12
|
class << self
|
9
|
-
def
|
13
|
+
def regenerate_secret(client, path, *_args)
|
14
|
+
patch(path, client)['content']
|
15
|
+
end
|
16
|
+
|
17
|
+
def endpoint(project_id, webhook_id = nil, *actions)
|
10
18
|
path_from projects: project_id,
|
11
|
-
webhooks: webhook_id
|
19
|
+
webhooks: [webhook_id, *actions]
|
12
20
|
end
|
13
21
|
end
|
14
22
|
end
|
@@ -4,7 +4,7 @@ module Lokalise
|
|
4
4
|
class Client
|
5
5
|
# Returns a single comment for the given key
|
6
6
|
#
|
7
|
-
# @see https://lokalise.
|
7
|
+
# @see https://app.lokalise.com/api2docs/curl/#transition-retrieve-a-comment-get
|
8
8
|
# @return [Lokalise::Resources::Comment]
|
9
9
|
# @param project_id [String]
|
10
10
|
# @param key_id [String, Integer]
|
@@ -15,7 +15,7 @@ module Lokalise
|
|
15
15
|
|
16
16
|
# Returns all comments for all keys inside the given project
|
17
17
|
#
|
18
|
-
# @see https://lokalise.
|
18
|
+
# @see https://app.lokalise.com/api2docs/curl/#transition-list-project-comments-get
|
19
19
|
# @return [Lokalise::Collection::Comment<Lokalise::Resources::Comment>]
|
20
20
|
# @param project_id [String]
|
21
21
|
# @param params [Hash]
|
@@ -25,7 +25,7 @@ module Lokalise
|
|
25
25
|
|
26
26
|
# Returns all comments for the given key inside the given project
|
27
27
|
#
|
28
|
-
# @see https://lokalise.
|
28
|
+
# @see https://app.lokalise.com/api2docs/curl/#transition-list-key-comments-get
|
29
29
|
# @return [Lokalise::Collection::Comment<Lokalise::Resources::Comment>]
|
30
30
|
# @param project_id [String]
|
31
31
|
# @param key_id [String, Integer]
|
@@ -36,7 +36,7 @@ module Lokalise
|
|
36
36
|
|
37
37
|
# Creates one or more comments for the given key inside the given project
|
38
38
|
#
|
39
|
-
# @see https://lokalise.
|
39
|
+
# @see https://app.lokalise.com/api2docs/curl/#transition-create-comments-post
|
40
40
|
# @return [Lokalise::Collection::Comment<Lokalise::Resources::Comment>]
|
41
41
|
# @param project_id [String]
|
42
42
|
# @param key_id [String, Integer]
|
@@ -47,7 +47,7 @@ module Lokalise
|
|
47
47
|
|
48
48
|
# Deletes comment for the given key inside the given project
|
49
49
|
#
|
50
|
-
# @see https://lokalise.
|
50
|
+
# @see https://app.lokalise.com/api2docs/curl/#transition-delete-a-comment-delete
|
51
51
|
# @return [Hash]
|
52
52
|
# @param project_id [String]
|
53
53
|
# @param key_id [String, Integer]
|
@@ -4,7 +4,7 @@ module Lokalise
|
|
4
4
|
class Client
|
5
5
|
# Returns all contributors for the given project
|
6
6
|
#
|
7
|
-
# @see https://lokalise.
|
7
|
+
# @see https://app.lokalise.com/api2docs/curl/#transition-list-all-contributors-get
|
8
8
|
# @return [Lokalise::Collection::Contributor<Lokalise::Resources::Contributor>]
|
9
9
|
# @param project_id [String]
|
10
10
|
# @param params [Hash]
|
@@ -14,7 +14,7 @@ module Lokalise
|
|
14
14
|
|
15
15
|
# Returns a single contributor for the given project
|
16
16
|
#
|
17
|
-
# @see https://lokalise.
|
17
|
+
# @see https://app.lokalise.com/api2docs/curl/#transition-retrieve-a-contributor-get
|
18
18
|
# @return [Lokalise::Resources::Contributor]
|
19
19
|
# @param project_id [String]
|
20
20
|
# @param contributor_id [String, Integer]
|
@@ -24,7 +24,7 @@ module Lokalise
|
|
24
24
|
|
25
25
|
# Creates one or more contributors inside the given project
|
26
26
|
#
|
27
|
-
# @see https://lokalise.
|
27
|
+
# @see https://app.lokalise.com/api2docs/curl/#transition-create-contributors-post
|
28
28
|
# @return [Lokalise::Collection::Contributor<Lokalise::Resources::Contributor>]
|
29
29
|
# @param project_id [String]
|
30
30
|
# @param params [Hash, Array<Hash>]
|
@@ -34,7 +34,7 @@ module Lokalise
|
|
34
34
|
|
35
35
|
# Updates the given contributor inside the given project
|
36
36
|
#
|
37
|
-
# @see https://lokalise.
|
37
|
+
# @see https://app.lokalise.com/api2docs/curl/#transition-update-a-contributor-put
|
38
38
|
# @return [Lokalise::Resources::Contributor]
|
39
39
|
# @param project_id [String]
|
40
40
|
# @param contributor_id [String, Integer]
|
@@ -45,7 +45,7 @@ module Lokalise
|
|
45
45
|
|
46
46
|
# Deletes contributor inside the given project
|
47
47
|
#
|
48
|
-
# @see https://lokalise.
|
48
|
+
# @see https://app.lokalise.com/api2docs/curl/#transition-delete-a-contributor-delete
|
49
49
|
# @return [Hash]
|
50
50
|
# @param project_id [String]
|
51
51
|
# @param contributor_id [String, Integer]
|
@@ -4,7 +4,7 @@ module Lokalise
|
|
4
4
|
class Client
|
5
5
|
# Returns all translation statuses for the given project
|
6
6
|
#
|
7
|
-
# @see https://lokalise.
|
7
|
+
# @see https://app.lokalise.com/api2docs/curl/#transition-list-all-custom-translation-statuses-get
|
8
8
|
# @return [Lokalise::Collection::CustomTranslationStatus<Lokalise::Resources::CustomTranslationStatus>]
|
9
9
|
# @param project_id [String]
|
10
10
|
# @param params [Hash]
|
@@ -14,7 +14,7 @@ module Lokalise
|
|
14
14
|
|
15
15
|
# Returns a single translation status for the given project
|
16
16
|
#
|
17
|
-
# @see https://lokalise.
|
17
|
+
# @see https://app.lokalise.com/api2docs/curl/#transition-retrieve-a-custom-translation-status-get
|
18
18
|
# @return [Lokalise::Resources::CustomTranslationStatus]
|
19
19
|
# @param project_id [String]
|
20
20
|
# @param status_id [String, Integer]
|
@@ -24,7 +24,7 @@ module Lokalise
|
|
24
24
|
|
25
25
|
# Creates translation status inside the given project
|
26
26
|
#
|
27
|
-
# @see https://lokalise.
|
27
|
+
# @see https://app.lokalise.com/api2docs/curl/#transition-create-a-custom-translation-status-post
|
28
28
|
# @return Lokalise::Resources::CustomTranslationStatus
|
29
29
|
# @param project_id [String]
|
30
30
|
# @param params Hash
|
@@ -34,7 +34,7 @@ module Lokalise
|
|
34
34
|
|
35
35
|
# Updates the given translation status inside the given project
|
36
36
|
#
|
37
|
-
# @see https://lokalise.
|
37
|
+
# @see https://app.lokalise.com/api2docs/curl/#transition-update-a-custom-translation-status-put
|
38
38
|
# @return [Lokalise::Resources::CustomTranslationStatus]
|
39
39
|
# @param project_id [String]
|
40
40
|
# @param status_id [String, Integer]
|
@@ -45,7 +45,7 @@ module Lokalise
|
|
45
45
|
|
46
46
|
# Deletes translation status inside the given project
|
47
47
|
#
|
48
|
-
# @see https://lokalise.
|
48
|
+
# @see https://app.lokalise.com/api2docs/curl/#transition-delete-a-custom-translation-status-delete
|
49
49
|
# @return [Hash]
|
50
50
|
# @param project_id [String]
|
51
51
|
# @param status_id [String, Integer]
|
@@ -55,7 +55,7 @@ module Lokalise
|
|
55
55
|
|
56
56
|
# Returns an array of available colors that can be assigned to custom translation statuses
|
57
57
|
#
|
58
|
-
# @see https://lokalise.
|
58
|
+
# @see https://app.lokalise.com/api2docs/curl/#transition-retrieve-available-colors-for-custom-translation-statuses-get
|
59
59
|
# @return [Array]
|
60
60
|
# @param project_id [String]
|
61
61
|
def translation_status_colors(project_id)
|
@@ -4,7 +4,7 @@ module Lokalise
|
|
4
4
|
class Client
|
5
5
|
# Returns all translation files for the given project
|
6
6
|
#
|
7
|
-
# @see https://lokalise.
|
7
|
+
# @see https://app.lokalise.com/api2docs/curl/#transition-list-all-files-get
|
8
8
|
# @return [Lokalise::Collection::File<Lokalise::Resources::File>]
|
9
9
|
# @param project_id [String]
|
10
10
|
# @param params [Hash]
|
@@ -14,7 +14,7 @@ module Lokalise
|
|
14
14
|
|
15
15
|
# Exports translation files as .zip bundle, uploads them to Amazon S3 and returns a URL to the generated bundle. The URL is valid for a year
|
16
16
|
#
|
17
|
-
# @see https://lokalise.
|
17
|
+
# @see https://app.lokalise.com/api2docs/curl/#transition-download-files-post
|
18
18
|
# @return [Hash]
|
19
19
|
# @param project_id [String]
|
20
20
|
# @param params [Hash]
|
@@ -24,7 +24,7 @@ module Lokalise
|
|
24
24
|
|
25
25
|
# Imports translation file to the given project. File data must base64-encoded
|
26
26
|
#
|
27
|
-
# @see https://lokalise.
|
27
|
+
# @see https://app.lokalise.com/api2docs/curl/#transition-upload-a-file-post
|
28
28
|
# @return [Hash]
|
29
29
|
# @param project_id [String]
|
30
30
|
# @param params [Hash]
|
@@ -4,7 +4,7 @@ module Lokalise
|
|
4
4
|
class Client
|
5
5
|
# Returns all translation keys for the given project
|
6
6
|
#
|
7
|
-
# @see https://lokalise.
|
7
|
+
# @see https://app.lokalise.com/api2docs/curl/#transition-list-all-keys-get
|
8
8
|
# @return [Lokalise::Collection::Key<Lokalise::Resources::Key>]
|
9
9
|
# @param project_id [String]
|
10
10
|
# @param params [Hash]
|
@@ -14,7 +14,7 @@ module Lokalise
|
|
14
14
|
|
15
15
|
# Returns a single translation key for the given project
|
16
16
|
#
|
17
|
-
# @see https://lokalise.
|
17
|
+
# @see https://app.lokalise.com/api2docs/curl/#transition-retrieve-a-key-get
|
18
18
|
# @return [Lokalise::Resources::Key]
|
19
19
|
# @param project_id [String]
|
20
20
|
# @param key_id [String, Integer]
|
@@ -25,7 +25,7 @@ module Lokalise
|
|
25
25
|
|
26
26
|
# Creates one or more translation keys for the given project
|
27
27
|
#
|
28
|
-
# @see https://lokalise.
|
28
|
+
# @see https://app.lokalise.com/api2docs/curl/#transition-create-keys-post
|
29
29
|
# @return [Lokalise::Collection::Key<Lokalise::Resources::Key>]
|
30
30
|
# @param project_id [String]
|
31
31
|
# @param params [Hash, Array<Hash>]
|
@@ -35,7 +35,7 @@ module Lokalise
|
|
35
35
|
|
36
36
|
# Updates translation key for the given project
|
37
37
|
#
|
38
|
-
# @see https://lokalise.
|
38
|
+
# @see https://app.lokalise.com/api2docs/curl/#transition-update-a-key-put
|
39
39
|
# @return [Lokalise::Resources::Key]
|
40
40
|
# @param project_id [String]
|
41
41
|
# @param key_id [String, Integer]
|
@@ -46,7 +46,7 @@ module Lokalise
|
|
46
46
|
|
47
47
|
# Updates one or multiple translation keys for the given project
|
48
48
|
#
|
49
|
-
# @see https://lokalise.
|
49
|
+
# @see https://app.lokalise.com/api2docs/curl/#transition-bulk-update-put
|
50
50
|
# @return [Lokalise::Collection::Key<Lokalise::Resources::Key>]
|
51
51
|
# @param project_id [String]
|
52
52
|
# @param params [Hash, Array<Hash>]
|
@@ -56,7 +56,7 @@ module Lokalise
|
|
56
56
|
|
57
57
|
# Deletes translation key for the given project
|
58
58
|
#
|
59
|
-
# @see https://lokalise.
|
59
|
+
# @see https://app.lokalise.com/api2docs/curl/#transition-delete-a-key-delete
|
60
60
|
# @return [Hash]
|
61
61
|
# @param project_id [String]
|
62
62
|
# @param key_id [String, Integer]
|
@@ -66,7 +66,7 @@ module Lokalise
|
|
66
66
|
|
67
67
|
# Deletes one or multiple translation keys for the given project
|
68
68
|
#
|
69
|
-
# @see https://lokalise.
|
69
|
+
# @see https://app.lokalise.com/api2docs/curl/#transition-delete-multiple-keys-delete
|
70
70
|
# @return [Hash]
|
71
71
|
# @param project_id [String]
|
72
72
|
# @param key_ids [String, Integer, Array<String>, Array<Integer>]
|
@@ -4,7 +4,7 @@ module Lokalise
|
|
4
4
|
class Client
|
5
5
|
# Returns all languages supported by Lokalise
|
6
6
|
#
|
7
|
-
# @see https://lokalise.
|
7
|
+
# @see https://app.lokalise.com/api2docs/curl/#transition-list-system-languages-get
|
8
8
|
# @return [Lokalise::Collection::SystemLanguage<Lokalise::Resources::SystemLanguage>]
|
9
9
|
# @param params [Hash]
|
10
10
|
def system_languages(params = {})
|
@@ -13,7 +13,7 @@ module Lokalise
|
|
13
13
|
|
14
14
|
# Returns all languages for the given project
|
15
15
|
#
|
16
|
-
# @see https://lokalise.
|
16
|
+
# @see https://app.lokalise.com/api2docs/curl/#transition-list-project-languages-get
|
17
17
|
# @return [Lokalise::Collection::ProjectLanguage<Lokalise::Resources::ProjectLanguage>]
|
18
18
|
# @param project_id [String, Integer]
|
19
19
|
# @param params [Hash]
|
@@ -23,7 +23,7 @@ module Lokalise
|
|
23
23
|
|
24
24
|
# Returns a single language for the given project
|
25
25
|
#
|
26
|
-
# @see https://lokalise.
|
26
|
+
# @see https://app.lokalise.com/api2docs/curl/#transition-retrieve-a-language-get
|
27
27
|
# @return [Lokalise::Resources::ProjectLanguage]
|
28
28
|
# @param project_id [String]
|
29
29
|
# @param language_id [String, Integer]
|
@@ -33,7 +33,7 @@ module Lokalise
|
|
33
33
|
|
34
34
|
# Creates one or more language for the given project
|
35
35
|
#
|
36
|
-
# @see https://lokalise.
|
36
|
+
# @see https://app.lokalise.com/api2docs/curl/#transition-retrieve-a-language-get
|
37
37
|
# @return [Lokalise::Collection::ProjectLanguage<Lokalise::Resources::ProjectLanguage>]
|
38
38
|
# @param project_id [String]
|
39
39
|
# @param params [Hash]
|
@@ -43,7 +43,7 @@ module Lokalise
|
|
43
43
|
|
44
44
|
# Updates language for the given project
|
45
45
|
#
|
46
|
-
# @see https://lokalise.
|
46
|
+
# @see https://app.lokalise.com/api2docs/curl/#transition-update-a-language-put
|
47
47
|
# @return [Lokalise::Resources::ProjectLanguage]
|
48
48
|
# @param project_id [String]
|
49
49
|
# @param language_id [String, Integer]
|
@@ -54,7 +54,7 @@ module Lokalise
|
|
54
54
|
|
55
55
|
# Deletes language for the given project
|
56
56
|
#
|
57
|
-
# @see https://lokalise.
|
57
|
+
# @see https://app.lokalise.com/api2docs/curl/#transition-delete-a-language-delete
|
58
58
|
# @return [Hash]
|
59
59
|
# @param project_id [String]
|
60
60
|
# @param language_id [String, Integer]
|