1
0

IDetectLanguageProvider.php 391 B

1234567891011121314151617181920212223
  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. */
  11. interface IDetectLanguageProvider {
  12. /**
  13. * Try to detect the language of a given string
  14. *
  15. * @since 26.0.0
  16. */
  17. public function detectLanguage(string $text): ?string;
  18. }