Home > @uniformdev/project-map > getNodeLocalePath

getNodeLocalePath() function

Given a project map node and a locale, resolves the correct path for the locale This is computed as follows: - If the locale is unspecified, then use the fallback path - If the locale is specified, then use the locale-specific path if it exists, otherwise use the fallback path

Signature:

Parameters

ParameterTypeDescription
nodeLocalePathNode
localestring | undefined

Returns:

string