Skip to content

✨ Feature Request: Add Language Detection Function #2

Description

@elhadiabdallah

Hello, and thank you for this helpful library!

I'd like to suggest adding a method to detect the language of a given text, without translating it.
This would be useful in cases where we need to decide whether to translate the text or not.

Example:

$lara = new Translator($credentials);
$lang = $lara->detectLanguage('Bonjour tout le monde'); 
// Returns 'fr'

Thank you!

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Fields

    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions