@@ -257,189 +257,233 @@ config.hint.arrayIndex.Auto =
257
257
config .hint .arrayIndex .Disable =
258
258
' Deshabilita las pistas en de los índices de arreglos.'
259
259
config .hint .await =
260
- ' If the called function is marked `---@async`, prompt `await` at the call .'
260
+ ' Si la función que se llama está marcada con `---@async`, pregunta por un `await` en la llamada .'
261
261
config .hint .semicolon = -- TODO: needs localisation
262
- ' If there is no semicolon at the end of the statement, display a virtual semicolon .'
262
+ ' Si no hay punto y coma al final de la sentencia, despliega un punto y coma virtual .'
263
263
config .hint .semicolon .All = -- TODO: needs localisation
264
- ' All statements display virtual semicolons .'
264
+ ' Todas las sentencias con un punto y coma virtual desplegado .'
265
265
config .hint .semicolon .SameLine = -- TODO: needs localisation
266
- ' When two statements are on the same line, display a semicolon between them .'
266
+ ' Cuando dos sentencias están en la misma línea, despliega un punto y coma entre ellas .'
267
267
config .hint .semicolon .Disable = -- TODO: needs localisation
268
- ' Disable virtual semicolons .'
268
+ ' Deshabilita punto y coma virtuales .'
269
269
config .codeLens .enable = -- TODO: needs localisation
270
- ' Enable code lens .'
270
+ ' Habilita el lente para código .'
271
271
config .format .enable = -- TODO: needs localisation
272
- ' Enable code formatter .'
272
+ ' Habilita el formateador de código .'
273
273
config .format .defaultConfig = -- TODO: needs localisation
274
274
[[
275
- The default format configuration. Has a lower priority than `.editorconfig` file in the workspace.
276
- Read [formatter docs](https://github.com/CppCXY/EmmyLuaCodeStyle/tree/master/docs) to learn usage.
275
+ La configuración de formateo predeterminada. Tiene menor prioridad que el archivo `.editorconfig`
276
+ en el espacio de trabajo.
277
+ Revise [la documentación del formateador](https://github.com/CppCXY/EmmyLuaCodeStyle/tree/master/docs)
278
+ para aprender más sobre su uso.
277
279
]]
278
280
config .spell .dict = -- TODO: needs localisation
279
- ' Custom words for spell checking .'
281
+ ' Palabras extra para el corrector ortográfico .'
280
282
config .nameStyle .config = -- TODO: needs localisation
281
- ' Set name style config '
283
+ ' Configuración de estilo para nombres. '
282
284
config .telemetry .enable = -- TODO: needs localisation
283
285
[[
284
- Enable telemetry to send your editor information and error logs over the network. Read our privacy policy [here ](https://luals.github.io/privacy/ #language-server).
286
+ Habilita la telemetría para enviar información del editor y registros de errores por la red. Lea nuestra política de privacidad [aquí (en inglés) ](https://luals.github.io/privacy#language-server).
285
287
]]
286
288
config .misc .parameters = -- TODO: needs localisation
287
- ' [Command line parameters ](https://github.com/LuaLS/lua-telemetry-server/tree/master/method) when starting the language server in VSCode.'
289
+ ' [Parámetros de la línea de comando ](https://github.com/LuaLS/lua-telemetry-server/tree/master/method) para iniciar el servidor de lenguage en VSCode.'
288
290
config .misc .executablePath = -- TODO: needs localisation
289
- ' Specify the executable path in VSCode.'
291
+ ' Especifica la ruta del ejecutable en VSCode.'
290
292
config .language .fixIndent = -- TODO: needs localisation
291
- ' (VSCode only) Fix incorrect auto-indentation, such as incorrect indentation when line breaks occur within a string containing the word "function." '
293
+ ' (Solo en VSCode) Arregla la auto-indentación incorrecta, como aquella cuando los quiebres de línea ocurren dentro de un string que contengan la palabra "function". '
292
294
config .language .completeAnnotation = -- TODO: needs localisation
293
- ' (VSCode only) Automatically insert "---@ " after a line break following a annotation .'
295
+ ' (Solo en VSCode) Inserta automáticamente un "---@ " después de un quiebre de línea que sucede a una anotación .'
294
296
config .type .castNumberToInteger = -- TODO: needs localisation
295
- ' Allowed to assign the `number` type to the `integer` type .'
297
+ ' Se permite asignar el tipo "número" al tipo "entero" .'
296
298
config .type .weakUnionCheck = -- TODO: needs localisation
297
299
[[
298
- Once one subtype of a union type meets the condition, the union type also meets the condition .
300
+ Una vez que un sub-tipo de un tipo de unión satisface la condición, el tipo de unión también satisface la condición .
299
301
300
- When this setting is `false`, the `number|boolean` type cannot be assigned to the `number` type. It can be with `true`.
302
+ Cuando esta configuración es `false`, el tipo `number|boolean` no puede ser asignado al tipo `number`. Solo se puede con `true`.
301
303
]]
302
304
config .type .weakNilCheck = -- TODO: needs localisation
303
305
[[
304
- When checking the type of union type, ignore the `nil` in it .
306
+ Cuando se revisa el tipo de un tipo de unión, los `nil` dentro son ignorados .
305
307
306
- When this setting is `false`, the `number|nil` type cannot be assigned to the `number` type. It can be with `true`.
308
+ Cuando esta configuración es `false`, el tipo `number|nil` no puede ser asignado al tipo `number`. Solo se puede con `true`.
307
309
]]
308
310
config .type .inferParamType = -- TODO: needs localisation
309
311
[[
310
- When a parameter type is not annotated, it is inferred from the function's call sites .
312
+ Cuando un tipo de parámetro no está anotado, se infiere su tipo de los lugares donde la función es llamada .
311
313
312
- When this setting is `false`, the type of the parameter is `any` when it is not annotated .
314
+ Cuando esta configuración es `false`, el tipo del parámetro `any` cuando no puede ser anotado .
313
315
]]
314
316
config .type .checkTableShape = -- TODO: needs localisation
315
317
[[
316
- Strictly check the shape of the table .
318
+ Chequea estrictamente la forma de la tabla .
317
319
]]
318
320
config .doc .privateName = -- TODO: needs localisation
319
- ' Treat specific field names as private, e.g. `m_*` means `XXX.m_id` and `XXX.m_type` are private, witch can only be accessed in the class where the definition is located .'
321
+ ' Trata los nombres específicos de campo como privados. Por ejemplo `m_*` significa `XXX.m_id` y `XXX.m_tipo` son privados, por lo que solo pueden ser accedidos donde se define la clase .'
320
322
config .doc .protectedName = -- TODO: needs localisation
321
- ' Treat specific field names as protected, e.g. `m_*` means `XXX.m_id` and `XXX.m_type` are protected, witch can only be accessed in the class where the definition is located and its subclasses .'
323
+ ' Trata los nombres específicos de campo como protegidos. Por ejemplo `m_*` significa `XXX.m_id` y `XXX.m_tipo` son privados, por lo que solo pueden ser accedidos donde se define la clase y sus subclases .'
322
324
config .doc .packageName = -- TODO: needs localisation
323
- ' Treat specific field names as package, e.g. `m_*` means `XXX.m_id` and `XXX.m_type` are package, witch can only be accessed in the file where the definition is located .'
325
+ ' Trata los nombres específicos de campo como del paquete. Por ejemplo `m_*` significa `XXX.m_id` y `XXX.m_tipo` son de paquete, por lo que solo pueden ser accedidos en el archivo donde son definidos .'
324
326
config .diagnostics [' unused-local' ] = -- TODO: needs localisation
325
- ' Enable unused local variable diagnostics .'
327
+ ' Habilita el diagnóstico de variables local sin uso .'
326
328
config .diagnostics [' unused-function' ] = -- TODO: needs localisation
327
- ' Enable unused function diagnostics .'
329
+ ' Habilita el diagnóstico funcines sin uso .'
328
330
config .diagnostics [' undefined-global' ] = -- TODO: needs localisation
329
- ' Enable undefined global variable diagnostics .'
331
+ ' Habilita el diagnóstico de variables globales sin definir .'
330
332
config .diagnostics [' global-in-nil-env' ] = -- TODO: needs localisation
331
- ' Enable cannot use global variables ( `_ENV` is set to `nil`) diagnostics .'
333
+ ' Habilita el diagnóstico para la prohibición de uso de variables globales ( `_ENV` se fija a `nil`) .'
332
334
config .diagnostics [' unused-label' ] = -- TODO: needs localisation
333
- ' Enable unused label diagnostics .'
335
+ ' Habilita el diagnóstico de etiquetas sin uso .'
334
336
config .diagnostics [' unused-vararg' ] = -- TODO: needs localisation
335
- ' Enable unused vararg diagnostics .'
337
+ ' Habilita el diagnóstico de expresión de número variable de argumentos ( vararg) sin uso .'
336
338
config .diagnostics [' trailing-space' ] = -- TODO: needs localisation
337
- ' Enable trailing space diagnostics .'
339
+ ' Habilita el diagnóstico de espacios al final de línea .'
338
340
config .diagnostics [' redefined-local' ] = -- TODO: needs localisation
339
- ' Enable redefined local variable diagnostics .'
341
+ ' Habilita el diagnóstico de variables locals redefinidas .'
340
342
config .diagnostics [' newline-call' ] = -- TODO: needs localisation
341
- ' Enable newline call diagnostics. Is \' s raised when a line starting with `(` is encountered, which is syntactically parsed as a function call on the previous line .'
343
+ ' Habilita el diagnóstico de llamadas en línea nueva. Se alza un error en las líneas que comienzan con `(`, lo que se lee sintácticamente como una llamada a la línea anterior .'
342
344
config .diagnostics [' newfield-call' ] = -- TODO: needs localisation
343
- ' Enable newfield call diagnostics. It is raised when the parenthesis of a function call appear on the following line when defining a field in a table .'
345
+ ' Habilita el diagnóstico de campo nuevo en una llamada. Se alza un error cuando los paréntesis de una llamada a una función aparecen en la siguiente línea cuando se define un campo en una tabla .'
344
346
config .diagnostics [' redundant-parameter' ] = -- TODO: needs localisation
345
- ' Enable redundant function parameter diagnostics .'
347
+ ' Habilita el diagnóstico de parámetros redundantes de una función .'
346
348
config .diagnostics [' ambiguity-1' ] = -- TODO: needs localisation
347
- ' Enable ambiguous operator precedence diagnostics. For example, the `num or 0 + 1` expression will be suggested `(num or 0) + 1` instead .'
349
+ ' Habilita el diagnóstico de precedencia de operadores ambiguos. Por ejemplo, ante la expresión `num or 0 + 1` se sugerirrá `(num or 0) + 1`.'
348
350
config .diagnostics [' lowercase-global' ] = -- TODO: needs localisation
349
- ' Enable lowercase global variable definition diagnostics .'
351
+ ' Habilita el diagnóstico de definiciones de variables globacels con minúsculas .'
350
352
config .diagnostics [' undefined-env-child' ] = -- TODO: needs localisation
351
- ' Enable undefined environment variable diagnostics. It \' s raised when `_ENV` table is set to a new literal table, but the used global variable is no longer present in the global environment .'
353
+ ' Habilita el diagnóstico de variables de ambientes sin definir. Se alza un error cuando a la tabla `_ENV` se le asigna una tabla literal nueva, pero la variable global usada no está presente en el ambiente global .'
352
354
config .diagnostics [' duplicate-index' ] = -- TODO: needs localisation
353
- ' Enable duplicate table index diagnostics .'
355
+ ' Habilita el diagnóstico de índices de tabla duplicados .'
354
356
config .diagnostics [' empty-block' ] = -- TODO: needs localisation
355
- ' Enable empty code block diagnostics .'
357
+ ' Habilita el diagnóstico de bloques de código vacíos .'
356
358
config .diagnostics [' redundant-value' ] = -- TODO: needs localisation
357
- ' Enable the redundant values assigned diagnostics. It \' s raised during assignment operation, when the number of values is higher than the number of objects being assigned .'
359
+ ' Habilita el diagnóstico de valores asignados redundantemente. Se alza un error en una asignación, cuando el número de valores es mayor que el número de objetos a los cuales se les asigna .'
358
360
config .diagnostics [' assign-type-mismatch' ] = -- TODO: needs localisation
359
361
' Enable diagnostics for assignments in which the value\' s type does not match the type of the assigned variable.'
362
+ ' Habilita el diagnóstico .'
360
363
config .diagnostics [' await-in-sync' ] = -- TODO: needs localisation
361
364
' Enable diagnostics for calls of asynchronous functions within a synchronous function.'
365
+ ' Habilita el diagnóstico .'
362
366
config .diagnostics [' cast-local-type' ] = -- TODO: needs localisation
363
367
' Enable diagnostics for casts of local variables where the target type does not match the defined type.'
368
+ ' Habilita el diagnóstico .'
364
369
config .diagnostics [' cast-type-mismatch' ] = -- TODO: needs localisation
365
370
' Enable diagnostics for casts where the target type does not match the initial type.'
371
+ ' Habilita el diagnóstico .'
366
372
config .diagnostics [' circular-doc-class' ] = -- TODO: needs localisation
367
373
' Enable diagnostics for two classes inheriting from each other introducing a circular relation.'
374
+ ' Habilita el diagnóstico .'
368
375
config .diagnostics [' close-non-object' ] = -- TODO: needs localisation
369
376
' Enable diagnostics for attempts to close a variable with a non-object.'
377
+ ' Habilita el diagnóstico .'
370
378
config .diagnostics [' code-after-break' ] = -- TODO: needs localisation
371
379
' Enable diagnostics for code placed after a break statement in a loop.'
380
+ ' Habilita el diagnóstico .'
372
381
config .diagnostics [' codestyle-check' ] = -- TODO: needs localisation
373
382
' Enable diagnostics for incorrectly styled lines.'
383
+ ' Habilita el diagnóstico .'
374
384
config .diagnostics [' count-down-loop' ] = -- TODO: needs localisation
375
385
' Enable diagnostics for `for` loops which will never reach their max/limit because the loop is incrementing instead of decrementing.'
386
+ ' Habilita el diagnóstico .'
376
387
config .diagnostics [' deprecated' ] = -- TODO: needs localisation
377
388
' Enable diagnostics to highlight deprecated API.'
389
+ ' Habilita el diagnóstico .'
378
390
config .diagnostics [' different-requires' ] = -- TODO: needs localisation
379
391
' Enable diagnostics for files which are required by two different paths.'
392
+ ' Habilita el diagnóstico .'
380
393
config .diagnostics [' discard-returns' ] = -- TODO: needs localisation
381
394
' Enable diagnostics for calls of functions annotated with `---@nodiscard` where the return values are ignored.'
395
+ ' Habilita el diagnóstico .'
382
396
config .diagnostics [' doc-field-no-class' ] = -- TODO: needs localisation
383
397
' Enable diagnostics to highlight a field annotation without a defining class annotation.'
398
+ ' Habilita el diagnóstico .'
384
399
config .diagnostics [' duplicate-doc-alias' ] = -- TODO: needs localisation
385
400
' Enable diagnostics for a duplicated alias annotation name.'
401
+ ' Habilita el diagnóstico .'
386
402
config .diagnostics [' duplicate-doc-field' ] = -- TODO: needs localisation
387
403
' Enable diagnostics for a duplicated field annotation name.'
404
+ ' Habilita el diagnóstico .'
388
405
config .diagnostics [' duplicate-doc-param' ] = -- TODO: needs localisation
389
406
' Enable diagnostics for a duplicated param annotation name.'
407
+ ' Habilita el diagnóstico .'
390
408
config .diagnostics [' duplicate-set-field' ] = -- TODO: needs localisation
391
409
' Enable diagnostics for setting the same field in a class more than once.'
410
+ ' Habilita el diagnóstico .'
392
411
config .diagnostics [' incomplete-signature-doc' ] = -- TODO: needs localisation
393
412
' Incomplete @param or @return annotations for functions.'
413
+ ' Habilita el diagnóstico .'
394
414
config .diagnostics [' invisible' ] = -- TODO: needs localisation
395
415
' Enable diagnostics for accesses to fields which are invisible.'
416
+ ' Habilita el diagnóstico .'
396
417
config .diagnostics [' missing-global-doc' ] = -- TODO: needs localisation
397
418
' Missing annotations for globals! Global functions must have a comment and annotations for all parameters and return values.'
419
+ ' Habilita el diagnóstico .'
398
420
config .diagnostics [' missing-local-export-doc' ] = -- TODO: needs localisation
399
421
' Missing annotations for exported locals! Exported local functions must have a comment and annotations for all parameters and return values.'
422
+ ' Habilita el diagnóstico .'
400
423
config .diagnostics [' missing-parameter' ] = -- TODO: needs localisation
401
424
' Enable diagnostics for function calls where the number of arguments is less than the number of annotated function parameters.'
425
+ ' Habilita el diagnóstico .'
402
426
config .diagnostics [' missing-return' ] = -- TODO: needs localisation
403
427
' Enable diagnostics for functions with return annotations which have no return statement.'
428
+ ' Habilita el diagnóstico .'
404
429
config .diagnostics [' missing-return-value' ] = -- TODO: needs localisation
405
430
' Enable diagnostics for return statements without values although the containing function declares returns.'
431
+ ' Habilita el diagnóstico .'
406
432
config .diagnostics [' need-check-nil' ] = -- TODO: needs localisation
407
433
' Enable diagnostics for variable usages if `nil` or an optional (potentially `nil`) value was assigned to the variable before.'
434
+ ' Habilita el diagnóstico .'
408
435
config .diagnostics [' no-unknown' ] = -- TODO: needs localisation
409
436
' Enable diagnostics for cases in which the type cannot be inferred.'
437
+ ' Habilita el diagnóstico .'
410
438
config .diagnostics [' not-yieldable' ] = -- TODO: needs localisation
411
439
' Enable diagnostics for calls to `coroutine.yield()` when it is not permitted.'
440
+ ' Habilita el diagnóstico .'
412
441
config .diagnostics [' param-type-mismatch' ] = -- TODO: needs localisation
413
442
' Enable diagnostics for function calls where the type of a provided parameter does not match the type of the annotated function definition.'
414
443
config .diagnostics [' redundant-return' ] = -- TODO: needs localisation
444
+ ' Habilita el diagnóstico .'
415
445
' Enable diagnostics for return statements which are not needed because the function would exit on its own.'
416
446
config .diagnostics [' redundant-return-value' ]= -- TODO: needs localisation
447
+ ' Habilita el diagnóstico .'
417
448
' Enable diagnostics for return statements which return an extra value which is not specified by a return annotation.'
418
449
config .diagnostics [' return-type-mismatch' ] = -- TODO: needs localisation
450
+ ' Habilita el diagnóstico .'
419
451
' Enable diagnostics for return values whose type does not match the type declared in the corresponding return annotation.'
420
452
config .diagnostics [' spell-check' ] = -- TODO: needs localisation
453
+ ' Habilita el diagnóstico .'
421
454
' Enable diagnostics for typos in strings.'
422
455
config .diagnostics [' name-style-check' ] = -- TODO: needs localisation
456
+ ' Habilita el diagnóstico .'
423
457
' Enable diagnostics for name style.'
424
458
config .diagnostics [' unbalanced-assignments' ]= -- TODO: needs localisation
459
+ ' Habilita el diagnóstico .'
425
460
' Enable diagnostics on multiple assignments if not all variables obtain a value (e.g., `local x,y = 1`).'
426
461
config .diagnostics [' undefined-doc-class' ] = -- TODO: needs localisation
462
+ ' Habilita el diagnóstico .'
427
463
' Enable diagnostics for class annotations in which an undefined class is referenced.'
428
464
config .diagnostics [' undefined-doc-name' ] = -- TODO: needs localisation
465
+ ' Habilita el diagnóstico .'
429
466
' Enable diagnostics for type annotations referencing an undefined type or alias.'
430
467
config .diagnostics [' undefined-doc-param' ] = -- TODO: needs localisation
468
+ ' Habilita el diagnóstico .'
431
469
' Enable diagnostics for cases in which a parameter annotation is given without declaring the parameter in the function definition.'
432
470
config .diagnostics [' undefined-field' ] = -- TODO: needs localisation
471
+ ' Habilita el diagnóstico .'
433
472
' Enable diagnostics for cases in which an undefined field of a variable is read.'
434
473
config .diagnostics [' unknown-cast-variable' ] = -- TODO: needs localisation
474
+ ' Habilita el diagnóstico .'
435
475
' Enable diagnostics for casts of undefined variables.'
436
476
config .diagnostics [' unknown-diag-code' ] = -- TODO: needs localisation
477
+ ' Habilita el diagnóstico .'
437
478
' Enable diagnostics in cases in which an unknown diagnostics code is entered.'
438
479
config .diagnostics [' unknown-operator' ] = -- TODO: needs localisation
480
+ ' Habilita el diagnóstico .'
439
481
' Enable diagnostics for unknown operators.'
440
482
config .diagnostics [' unreachable-code' ] = -- TODO: needs localisation
483
+ ' Habilita el diagnóstico .'
441
484
' Enable diagnostics for unreachable code.'
442
485
config .diagnostics [' global-element' ] = -- TODO: needs localisation
486
+ ' Habilita el diagnóstico .'
443
487
' Enable diagnostics to warn about global elements.'
444
488
config .typeFormat .config = -- TODO: needs localisation
445
489
' Configures the formatting behavior while typing Lua code.'
0 commit comments