16 How to write LocalizedText in Structures

The LocalizedText DataType, defined in the OPC UA base specification (https://reference.opcfoundation.org/specs/OPC-10000-3/8.5), allows Servers to provide text in different languages (e.g., English, Swedish, and German) according to the Client's requested locale.

Typically, a LocalizedText value contains a string in only one language. Therefore, the OPC UA specification defines that strings in different languages should be added or modified through multiple write operations, each specifying a different locale (https://reference.opcfoundation.org/specs/OPC-10000-4/5.11.4.1).

However, this approach is not applicable when LocalizedText is used as a field within a structured DataType containing multiple fields that represent different information, since a Structure can only be written as a single value.

To support writing text in multiple locales simultaneously within a structured DataType, the Client writing the Structure - or passing it as an input argument in a Method call - should use the special locale identifier "mul", defined in the OPC UA base specification (https://reference.opcfoundation.org/specs/OPC-10000-3/8.5.2.2). This allows multiple localized strings to be provided within a single LocalizedText value.