src/Language/Translator.php
private function getBasicTranslationForId($translationId, $number) {
        if(is_array($translationId) //Is array and we get the translate given for number array
            && isset($translationId[$number])
            && is_string($translationId[$number])) {
             $translation = $translationId[$number];
         } else if (is_string($translationId)) { //Is string directly
             $translation = $translationId;
         }
         return $translation;
    }
private function getBasicTranslationForId($translationId, $number) {
        if(is_array($translationId) //Is array and we get the translate given for number array
            && isset($translationId[$number])
            && is_string($translationId[$number])) {
             $translation = $translationId[$number];
         } else if (is_string($translationId)) { //Is string directly
             $translation = $translationId;
         }
         return $translation;
    }
Calculate the basic translation.

@param mixed  $translationId
@param int     $number

@throws TranslateException

@return string