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
<table><thead><tr><th>
Parameter
</th><th>
Type
</th><th>
Description
</th></tr></thead> <tbody><tr><td>
node
</td><td>
</td><td>
</td></tr> <tr><td>
locale
</td><td>
string | undefined
</td><td>
</td></tr> </tbody></table> Returns:
string