LC0091 - StefanMaron/BusinessCentral.LinterCop GitHub Wiki
Translatable texts should be translated
This rule ensures that all translatable text in your AL code are properly localized for each required language. This rule applies to various translatable properties, such as Captions
, ToolTips
, and Labels
, across different object types like tables, pages, reports, and enums.
Locked
When the property Locked
is set to true, the label should not be translated and the rule will not raise an diagnostic. Default value is false.
var
a : Label 'Label Text', Comment='Foo', MaxLength=999, Locked=true;
Languages to Translate
By default, the rule look into the existing .xlf
files in the project and automatically determine which languages to validate.
You can override this behavior by explicitly setting languagesToTranslate
in the LinterCop.json
to a specific list of languages.
{
"languagesToTranslate": [ "nl-BE", "de-DE", "es-ES" ]
}