code: public function getLanguageIdentifiers(TranslateableInterface $object)
      {
          $languages = [];
  
          foreach ($object->getTranslations() as $translation) {
              $languageIdentifier = $translation->getLanguageIdentifier();
  
              if (isset($languages[$languageIdentifier])) {
                  continue;
              }
  
              $languages[$languageIdentifier] = $languageIdentifier;
          }
  
          return $languages;
      }
docs: @param TranslateableInterface $object
  
  @return array