Skip to content

Dimensions

Dimensions refer to the two dimensions Locale and Channel. These two dimensions are used throughout the system for various globalization purposes, business rules and processes.

While they have quite different purposes, they work are identical in the way they behave.

Channels

Channels are used for separating flows into different sales channels. For example a retail process can be quite different from a wholesale process. Every order have a channelKey that can be be used to indicate which channel the

Locales

Locales are used for internationalization. A locale generally defines a language and a region used for formatting. Orders specify a localeKey which is used to identify which language and formatting the customer expects.

Dimensions in the Graph

Aside from the examples above, fields in the Graph can use dimensions to provide different values for each. This is great when modeling multi-language entities such as products or other assets.

Configuring Dimensions

In the examples above, it’s fine to start using a localeKey or channelKey before it’s configured in the system. But in order to make them useful (and to make it possible to filter by a dimension in the graph), you should configure them.

This can be done through the Registry using a manifest. Here’s an example:

uri: /registry/channels/b2c
spec:
value: {}
---
uri: /registry/locale/sweden
spec:
value:
language: sv
formatting: sv-SE

It’s fine to add any additional properties you may find useful. This examples shows the bare minimum to make dimensions work with the Graph.