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
> _If your package supports Laravel auto-discovery, this step may be optional._
51
+
40
52
Add `DOM_TRANSLATE_GOOGLE_KEY={your_google_api_key}` to your `.env` file and run:
41
53
42
54
```bash
55
+
php artisan config:clear
43
56
php artisan config:cache
44
57
```
45
58
@@ -105,27 +118,39 @@ Here are a few examples of how to use the translate Blade directive in your HTML
105
118
Four directives are available by default (`@transl8()` is the main one). You can add more in your Laravel _AppServiceProvider_ file (under the `register()` method).
106
119
107
120
```php
108
-
// Register the default Blade directive - @transl8()
109
-
// Only the phrase argument is required. Default source and destination languages are sourced from the config file.
110
-
// - Format: transl8('Phrase','target','source')
111
-
// - Example: transl8('This must be translated to French.','fr')
Copy file name to clipboardExpand all lines: composer.json
+38-14Lines changed: 38 additions & 14 deletions
Original file line number
Diff line number
Diff line change
@@ -2,18 +2,30 @@
2
2
"name": "wazza/dom-translate",
3
3
"description": "A Laravel Package that will use the build-in Blade Directive to define specific phrases for auto-translation before being rendered to the screen.",
0 commit comments