web
You’re offline. This is a read only version of the page.
close
Skip to main content
Community site session details

Community site session details

Session Id :
Supply chain | Supply Chain Management, Commerce
Unanswered

Extend OOTB module translations

(0) ShareShare
ReportReport
Posted on by 35

I read the following documentation page: learn.microsoft.com/.../localize-module

I'm using the CLI command for generating the (master) global.json file. This command is an nice and automatic way to get all language strings out of custom modules: https://learn.microsoft.com/en-us/dynamics365/commerce/e-commerce-extensibility/localize-module#generate-a-resource-globaljson-file

For *.definition.json files it works fine, it extracts automatically all keys under "resources".

But now I want to extend an OOTB module with additional resource keys: Therefore I created an <module-name>.definition.ext.json (f.e. buybox.definition.ext.json) inside of <src>/themes/<my-theme-name>/definition-extensions and added my new resource:

{
    "$type": "definitionExtension",
    "resources": {
        "test": {
            "value": "Test"
        }
    }
}

But it looks like. the cli command yarn msdyn365 generate-resources src ignores *.ext.json files. Means the "test" string is not added to the global.json.

One workaround for now:

Add/duplicate the resource key also into the <my-theme-name>.definition.json.

Down side: I need to maintain the localization in two places and I'm breaking completely the modularization approach because all keys/translation overrides are located in one big file.

I have the same question (0)

Under review

Thank you for your reply! To ensure a great experience for everyone, your content is awaiting approval by our Community Managers. Please check back later.

Helpful resources

Quick Links

Responsible AI policies

As AI tools become more common, we’re introducing a Responsible AI Use…

Neeraj Kumar – Community Spotlight

We are honored to recognize Neeraj Kumar as our Community Spotlight honoree for…

Leaderboard > Supply chain | Supply Chain Management, Commerce

#1
Siv Sagar Profile Picture

Siv Sagar 303 Super User 2025 Season 2

#2
André Arnaud de Calavon Profile Picture

André Arnaud de Cal... 173 Super User 2025 Season 2

#3
Laurens vd Tang Profile Picture

Laurens vd Tang 93 Super User 2025 Season 2

Last 30 days Overall leaderboard

Featured topics

Product updates

Dynamics 365 release plans