You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: README.md
+29-10Lines changed: 29 additions & 10 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -1,13 +1,20 @@
1
1
# Laravel Language Recognizer
2
2
3
3
[](https://packagist.org/packages/oneofftech/laravel-language-recognizer)
> If you change the path to the Franc binary, as configured in the local driver, ensure that the file is moved or present in that location. You can run `php artisan language-recognizer:install-local-driver` to download the binary in the configured location
33
+
34
+
The configuration file allows to configure the driver parameter for
35
+
performing the language recognition.
36
+
37
+
### Driver pre-requisites
38
+
39
+
**Local Driver**
40
+
19
41
The language recognition, when performed using the local driver,
20
42
is done using the [Franc](https://github.com/wooorm/franc) library, in particular
21
43
a [packaged version](https://github.com/avvertix/franc-bin) in form on an executable.
@@ -26,16 +48,13 @@ To download the executable version run:
The [DeepL](https://www.deepl.com/) driver requires a valid API key.
54
+
You can obtain a free key on [deepl.com](https://www.deepl.com/pro#developer).
34
55
35
-
> If you change the path to the Franc binary, as configured in the local driver, ensure that the file is moved or present in that location. You can run `php artisan language-recognizer:install-local-driver` to download the binary in the configured location
56
+
After obtaining the key specifiy it via the `LANGUAGE_RECOGNIZER_DEEPL_KEY` environment variable.
36
57
37
-
This configuration file allows to specifiy the drivers for performing the language
38
-
recognition and their eventual options.
39
58
40
59
## Usage
41
60
@@ -68,7 +87,7 @@ Please review [our security policy](../../security/policy) on how to report secu
0 commit comments