Monday, April 18, 2022

Manage Multilanguage Development using Translation File in Business Central

Hi All, 

Microsoft Dynamics 365 Business Central is multilanguage-enabled, which means that you can display the user interface (UI) in a number of different languages. Although, every BC Application Package is installed as per Localization.  

Example: BC Localization Version for Germany will be in German (Local Language) but you can also run the Application in English (multilanguage)

To enable/add a Language for the developed extension, using a Translation File follow these steps:

1. Create a Translation File. 

In your app.json of your extension add a new feature as shown below:


Now. Build your extension (Ctrl+Shift+B), this will create a new Translation Folder and include a g.xlf file. This is the file that will be used for adding a language. 

Note: 
  • The file is in xml format
  • This file will include texts from your Labels, Captions and Tooltips. 

2. Use the created Translation file

First of all, rename your file and use an appropriate naming conversion: Projectname.language.xlf

Let us take an example:
Use case: I have a US Localisation which needs a Trsnaltion for German for a field with Caption Car.

I have a file called ItemManagement.de.xlf and need to add two things for the translations to work:

a. Add the target-language



b. Add <target> tag (translation) under <source> tag


c. Build your extension. 

Note: 
  • This g.xlf file is regenerated after every Build so if any new Text (Label/Caption/Tooltip) is added to the extension, it will be included in the file and require translation (Follow step 2).
  • Do not forget to rename the .g.xlf file, otherwise, your translations will be lost. 
If you're looking for some advanced and automatic Translation, check  Azure Translator Text

Reach out to me if you have any questions or suggestions. 

Check out other blogs, if you haven't already. 

Kindly suggest what else you want me to blog about. Keep following and supporting!

You can also email me at jyotsnaoberainav@gmail.com

Also, visit my website JONAV if you are looking for NAV/D365BC Training and/or Services!

Thank you! 





No comments:

Post a Comment