ruby-lokalise-api 2.9.0 → 4.0.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (76) hide show
  1. checksums.yaml +4 -4
  2. data/.github/CODE_OF_CONDUCT.md +1 -1
  3. data/.github/CONTRIBUTING.md +9 -2
  4. data/CHANGELOG.md +1 -75
  5. data/LICENSE +9 -18
  6. data/README.md +18 -1734
  7. data/lib/ruby-lokalise-api.rb +2 -0
  8. data/lib/ruby-lokalise-api/client.rb +16 -4
  9. data/lib/ruby-lokalise-api/collections/base.rb +5 -3
  10. data/lib/ruby-lokalise-api/collections/queued_process.rb +15 -0
  11. data/lib/ruby-lokalise-api/connection.rb +1 -1
  12. data/lib/ruby-lokalise-api/data/attributes.json +29 -13
  13. data/lib/ruby-lokalise-api/request.rb +8 -1
  14. data/lib/ruby-lokalise-api/resources/base.rb +55 -25
  15. data/lib/ruby-lokalise-api/resources/branch.rb +1 -1
  16. data/lib/ruby-lokalise-api/resources/contributor.rb +1 -1
  17. data/lib/ruby-lokalise-api/resources/custom_translation_status.rb +1 -1
  18. data/lib/ruby-lokalise-api/resources/file.rb +3 -1
  19. data/lib/ruby-lokalise-api/resources/key.rb +1 -1
  20. data/lib/ruby-lokalise-api/resources/key_comment.rb +1 -1
  21. data/lib/ruby-lokalise-api/resources/order.rb +2 -0
  22. data/lib/ruby-lokalise-api/resources/payment_card.rb +1 -1
  23. data/lib/ruby-lokalise-api/resources/project.rb +2 -2
  24. data/lib/ruby-lokalise-api/resources/project_language.rb +1 -1
  25. data/lib/ruby-lokalise-api/resources/queued_process.rb +18 -0
  26. data/lib/ruby-lokalise-api/resources/screenshot.rb +1 -1
  27. data/lib/ruby-lokalise-api/resources/snapshot.rb +3 -1
  28. data/lib/ruby-lokalise-api/resources/task.rb +1 -1
  29. data/lib/ruby-lokalise-api/resources/team_user.rb +1 -1
  30. data/lib/ruby-lokalise-api/resources/team_user_group.rb +2 -1
  31. data/lib/ruby-lokalise-api/resources/translation.rb +1 -1
  32. data/lib/ruby-lokalise-api/resources/translation_provider.rb +3 -0
  33. data/lib/ruby-lokalise-api/resources/webhook.rb +11 -3
  34. data/lib/ruby-lokalise-api/rest/comments.rb +5 -5
  35. data/lib/ruby-lokalise-api/rest/contributors.rb +5 -5
  36. data/lib/ruby-lokalise-api/rest/custom_translation_statuses.rb +6 -6
  37. data/lib/ruby-lokalise-api/rest/files.rb +3 -3
  38. data/lib/ruby-lokalise-api/rest/keys.rb +7 -7
  39. data/lib/ruby-lokalise-api/rest/languages.rb +6 -6
  40. data/lib/ruby-lokalise-api/rest/payment_cards.rb +3 -3
  41. data/lib/ruby-lokalise-api/rest/projects.rb +6 -6
  42. data/lib/ruby-lokalise-api/rest/queued_processes.rb +26 -0
  43. data/lib/ruby-lokalise-api/rest/screenshots.rb +5 -5
  44. data/lib/ruby-lokalise-api/rest/snapshots.rb +4 -4
  45. data/lib/ruby-lokalise-api/rest/tasks.rb +5 -5
  46. data/lib/ruby-lokalise-api/rest/team_user_group.rb +4 -4
  47. data/lib/ruby-lokalise-api/rest/team_users.rb +4 -4
  48. data/lib/ruby-lokalise-api/rest/teams.rb +1 -1
  49. data/lib/ruby-lokalise-api/rest/translation_providers.rb +2 -2
  50. data/lib/ruby-lokalise-api/rest/translations.rb +3 -3
  51. data/lib/ruby-lokalise-api/rest/webhooks.rb +16 -5
  52. data/lib/ruby-lokalise-api/utils/attribute_helpers.rb +11 -6
  53. data/lib/ruby-lokalise-api/version.rb +1 -1
  54. data/ruby-lokalise-api.gemspec +7 -7
  55. data/spec/lib/ruby-lokalise-api/custom_json_parser_spec.rb +4 -4
  56. data/spec/lib/ruby-lokalise-api/error_spec.rb +8 -0
  57. data/spec/lib/ruby-lokalise-api/rest/branches_spec.rb +12 -0
  58. data/spec/lib/ruby-lokalise-api/rest/comments_spec.rb +12 -0
  59. data/spec/lib/ruby-lokalise-api/rest/contributors_spec.rb +12 -0
  60. data/spec/lib/ruby-lokalise-api/rest/custom_translation_statuses_spec.rb +12 -0
  61. data/spec/lib/ruby-lokalise-api/rest/files_spec.rb +17 -9
  62. data/spec/lib/ruby-lokalise-api/rest/keys_spec.rb +38 -20
  63. data/spec/lib/ruby-lokalise-api/rest/languages_spec.rb +12 -0
  64. data/spec/lib/ruby-lokalise-api/rest/orders_spec.rb +12 -0
  65. data/spec/lib/ruby-lokalise-api/rest/payment_cards_spec.rb +19 -5
  66. data/spec/lib/ruby-lokalise-api/rest/projects_spec.rb +12 -0
  67. data/spec/lib/ruby-lokalise-api/rest/queued_processes_spec.rb +57 -0
  68. data/spec/lib/ruby-lokalise-api/rest/screenshots_spec.rb +12 -0
  69. data/spec/lib/ruby-lokalise-api/rest/snapshots_spec.rb +25 -0
  70. data/spec/lib/ruby-lokalise-api/rest/tasks_spec.rb +20 -7
  71. data/spec/lib/ruby-lokalise-api/rest/team_user_groups_spec.rb +84 -0
  72. data/spec/lib/ruby-lokalise-api/rest/team_users_spec.rb +13 -0
  73. data/spec/lib/ruby-lokalise-api/rest/translation_providers_spec.rb +5 -0
  74. data/spec/lib/ruby-lokalise-api/rest/translations_spec.rb +12 -0
  75. data/spec/lib/ruby-lokalise-api/rest/webhooks_spec.rb +50 -0
  76. metadata +25 -20
@@ -4,7 +4,7 @@ module Lokalise
4
4
  module Resources
5
5
  class CustomTranslationStatus < Base
6
6
  ID_KEY = 'status'
7
- supports :update, :destroy
7
+ supports :update, :destroy, [:reload_data, '', :find]
8
8
 
9
9
  class << self
10
10
  def colors(client, path, *_args)
@@ -9,7 +9,9 @@ module Lokalise
9
9
  end
10
10
 
11
11
  def upload(client, path, params)
12
- post(path, client, params)['content']
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,7 +3,7 @@
3
3
  module Lokalise
4
4
  module Resources
5
5
  class Key < Base
6
- supports :update, :destroy
6
+ supports :update, :destroy, [:reload_data, '', :find]
7
7
 
8
8
  class << self
9
9
  def endpoint(project_id, key_id = nil)
@@ -5,7 +5,7 @@ module Lokalise
5
5
  class KeyComment < Base
6
6
  DATA_KEY = 'Comment'
7
7
  ID_KEY = 'comment'
8
- supports :destroy
8
+ supports :destroy, [:reload_data, '', :find]
9
9
 
10
10
  class << self
11
11
  def endpoint(project_id, key_id, comment_id = nil)
@@ -3,6 +3,8 @@
3
3
  module Lokalise
4
4
  module Resources
5
5
  class Order < Base
6
+ supports [:reload_data, '', :find]
7
+
6
8
  class << self
7
9
  def endpoint(team_id, order_id = nil)
8
10
  path_from teams: team_id,
@@ -3,7 +3,7 @@
3
3
  module Lokalise
4
4
  module Resources
5
5
  class PaymentCard < Base
6
- supports :destroy
6
+ supports :destroy, [:reload_data, '', :find]
7
7
 
8
8
  class << self
9
9
  def endpoint(card_id = nil)
@@ -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 + '/empty'
9
+ self.class.empty @client, "#{@path}/empty"
10
10
  end
11
11
 
12
12
  class << self
@@ -5,7 +5,7 @@ module Lokalise
5
5
  class ProjectLanguage < Base
6
6
  DATA_KEY = 'Language'
7
7
  ID_KEY = 'lang'
8
- supports :update, :destroy
8
+ supports :update, :destroy, [:reload_data, '', :find]
9
9
 
10
10
  class << self
11
11
  def endpoint(project_id, language_id = nil)
@@ -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
@@ -3,7 +3,7 @@
3
3
  module Lokalise
4
4
  module Resources
5
5
  class Screenshot < Base
6
- supports :update, :destroy
6
+ supports :update, :destroy, [:reload_data, '', :find]
7
7
 
8
8
  class << self
9
9
  def endpoint(project_id, screenshot_id = nil)
@@ -11,7 +11,9 @@ module Lokalise
11
11
 
12
12
  class << self
13
13
  def restore(client, path, *_args)
14
- Lokalise::Resources::Project.new post(path, client)
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)
@@ -3,7 +3,7 @@
3
3
  module Lokalise
4
4
  module Resources
5
5
  class Task < Base
6
- supports :update, :destroy
6
+ supports :update, :destroy, [:reload_data, '', :find]
7
7
 
8
8
  class << self
9
9
  def endpoint(project_id, task_id = nil)
@@ -4,7 +4,7 @@ module Lokalise
4
4
  module Resources
5
5
  class TeamUser < Base
6
6
  ID_KEY = 'user'
7
- supports :update, :destroy
7
+ supports :update, :destroy, [:reload_data, '', :find]
8
8
 
9
9
  class << self
10
10
  def endpoint(team_id, team_user_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,7 +3,7 @@
3
3
  module Lokalise
4
4
  module Resources
5
5
  class Translation < Base
6
- supports :update
6
+ supports :update, [:reload_data, '', :find]
7
7
 
8
8
  class << self
9
9
  def endpoint(project_id, translation_id = nil)
@@ -3,6 +3,9 @@
3
3
  module Lokalise
4
4
  module Resources
5
5
  class TranslationProvider < Base
6
+ supports [:reload_data, '', :find]
7
+ ID_KEY = 'provider'
8
+
6
9
  class << self
7
10
  def endpoint(team_id, provider_id = nil)
8
11
  path_from teams: team_id,
@@ -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 endpoint(project_id, webhook_id = nil)
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.co/api2docs/ruby/#transition-retrieve-a-comment-get
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.co/api2docs/ruby/#transition-list-project-comments-get
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.co/api2docs/ruby/#transition-list-key-comments-get
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.co/api2docs/ruby/#transition-create-comments-post
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.co/api2docs/ruby/#transition-delete-a-comment-delete
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.co/api2docs/ruby/#transition-list-all-contributors-get
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.co/api2docs/ruby/#transition-retrieve-a-contributor-get
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.co/api2docs/ruby/#transition-create-contributors-post
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.co/api2docs/ruby/#transition-update-a-contributor-put
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.co/api2docs/ruby/#transition-delete-a-contributor-delete
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.co/api2docs/ruby/#transition-list-all-custom-translation-statuses-get
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.co/api2docs/ruby/#transition-retrieve-a-custom-translation-status-get
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.co/api2docs/ruby/#transition-create-a-custom-translation-status-post
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.co/api2docs/ruby/#transition-update-a-custom-translation-status-put
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.co/api2docs/ruby/#transition-delete-a-custom-translation-status-delete
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.co/api2docs/ruby/#transition-retrieve-available-colors-for-custom-translation-statuses-get
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.co/api2docs/ruby/#transition-list-all-files-get
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.co/api2docs/ruby/#transition-download-files-post
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.co/api2docs/ruby/#transition-upload-a-file-post
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.co/api2docs/ruby/#transition-list-all-keys-get
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.co/api2docs/ruby/#transition-retrieve-a-key-get
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.co/api2docs/ruby/#transition-create-keys-post
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.co/api2docs/ruby/#transition-update-a-key-put
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.co/api2docs/ruby/#transition-bulk-update-put
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.co/api2docs/ruby/#transition-delete-a-key-delete
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.co/api2docs/ruby/#transition-delete-multiple-keys-delete
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.co/api2docs/ruby/#transition-list-system-languages-get
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.co/api2docs/ruby/#transition-list-project-languages-get
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.co/api2docs/ruby/#transition-retrieve-a-language-get
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.co/api2docs/ruby/#transition-retrieve-a-language-get
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.co/api2docs/ruby/#transition-update-a-language-put
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.co/api2docs/ruby/#transition-delete-a-language-delete
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]