You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Localizes an HTML document while preserving structure and formatting. Handles both text content and localizable attributes (alt, title, placeholder, meta content).
350
340
351
341
-**Parameters:**
352
342
-`html` (String): HTML document string to localize
raiseValidationError,'API key is required'ifapi_key.nil? || api_key.empty?
122
-
raiseValidationError,'Engine ID is required'ifengine_id.nil? || engine_id.empty?
123
122
raiseValidationError,'API URL must be a valid HTTP/HTTPS URL'unlessapi_url =~ /\Ahttps?:\/\/.+/
124
123
raiseValidationError,'Batch size must be between 1 and 250'unlessbatch_size.is_a?(Integer) && batch_size.between?(1,250)
125
124
raiseValidationError,'Ideal batch item size must be between 1 and 2500'unlessideal_batch_item_size.is_a?(Integer) && ideal_batch_item_size.between?(1,2500)
@@ -151,7 +150,7 @@ class Engine
151
150
# Creates a new Engine instance.
152
151
#
153
152
# @param api_key [String] your Lingo.dev API key (required)
154
-
# @param engine_id [String] the engine ID for localization processing (required)
153
+
# @param engine_id [String, nil] the engine ID for localization processing (optional)
155
154
# @param api_url [String] the API endpoint URL (default: 'https://api.lingo.dev')
156
155
# @param batch_size [Integer] maximum items per batch, 1-250 (default: 25)
157
156
# @param ideal_batch_item_size [Integer] target word count per batch item, 1-2500 (default: 250)
0 commit comments