A collection of useful configurable snippets for multi-language localization of text strings in AL Language, using the developer comments.
Requirements
Visual Studio Code v1.56.0 (April 2021) or higher.
Extension
Link
Mandatory
AL Language extension for Microsoft Dynamics 365 Business Central
Yes
AL Translation Center
Recommended*
*You MUST use a translation extension which use developer comments for generating translations. AL Translation Snippets does not generate translations by itself.
Features
More than one language can be inserted in the comment at the same time.
The default languages that will be inserted with the snippet can be customized without the need of creation of user snippets.
The focus on language (usually useful in static snippets for allowing changing quickly the language from "ESP" to your language) could be disabled by setting.
Snippets included
tcaptionWithTranslation
ttoolTipWithTranslation
tlabelWithTranslation
toptionCaptionWithTranslation
tactionWithTranslation
tcommentWithTranslation
taboutTitleWithTranslation
tadditionalSearchTermsWithTranslation
taboutTextWithTranslation
Commands
Update Snippets With Current Settings: updates the snippets without the need of restart VS Code.
Extension Settings
This extension contributes the following settings:
Focus on language: Determines if snippet will focus in language prefix, or only in the comment text.
Comment Languages: The list of prefix of languages to be generated. Use prefix with 3 characters.
English Text as First: Determines if snippet will focus in english text as first, not in the comments.
Restart or execute 'Update Snippets With Current Settings' to apply changes.