getLocalizedTextBySlug function

String getLocalizedTextBySlug(
  1. String textSlug
)

Implementation

String getLocalizedTextBySlug(
    String textSlug
    )
{
    if ( textBySlugMap.containsKey( textSlug ) )
    {
        return getLocalizedText( textBySlugMap[ textSlug ]! );
    }
    else
    {
        logWarning( 'Missing text slug: $textSlug' );

        return textSlug;
    }
}