private function getFlexLocale($language) {
        if(!empty($language))
        {
            $split = explode("-", $language, 2);

            if(count($split) == 2 && $split[1] != "") {
                $split[1] = strtoupper($split[1]);
            } else {
                $split = null;
            }
        }

        if(empty($split))
            $split = ['en', 'US'];

        return $split[0] . self::LANGUAGUE_SEPARATOR . $split[1];
    }