IDetectLanguageProvider.php 413 B

123456789101112131415161718192021222324
  1. <?php
  2. declare(strict_types=1);
  3. /**
  4. * SPDX-FileCopyrightText: 2023 Nextcloud GmbH and Nextcloud contributors
  5. * SPDX-License-Identifier: AGPL-3.0-or-later
  6. */
  7. namespace OCP\Translation;
  8. /**
  9. * @since 26.0.0
  10. * @deprecated 30.0.0
  11. */
  12. interface IDetectLanguageProvider {
  13. /**
  14. * Try to detect the language of a given string
  15. *
  16. * @since 26.0.0
  17. */
  18. public function detectLanguage(string $text): ?string;
  19. }