public function translate(string $lang, array $input): array 	{ 		foreach ($input as $key => $value) { 			if (in_array($key, $this->getTranslatableFields())) { 				$input[$key] = $value[$lang] ?? $value[getMainActiveLanguage()]; 			} 		}  		return $input; 	}