LogoRobo.js
Framework

composeLegacyKey()

Function: composeLegacyKey()

function composeLegacyKey(
   key, 
   namespace?, 
   separator?): string

Compose a key using the legacy format.

Legacy format: {namespace}__key where namespace segments are joined by separator.

Parameters

ParameterTypeDefault valueDescription
keystringundefinedThe key
namespace?string | string[]undefinedOptional namespace
separator?stringDEFAULT_NAMESPACE_SEPARATORNamespace segment separator (default: '/')

Returns

string

Composed legacy key

On this page