Skip to content

Commit

Permalink
Added English language support for Google
Browse files Browse the repository at this point in the history
  • Loading branch information
andrey-helldar committed Jun 28, 2024
1 parent 2c33541 commit 99e87b5
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions src/Integrations/Google.php
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,8 @@

class Google extends Integration
{
public static string $integration = GoogleTranslate::class;

/**
* @see https://cloud.google.com/translate/docs/languages
*
Expand Down Expand Up @@ -41,6 +43,7 @@ class Google extends Integration
Locale::Danish->value => 'da',
Locale::Dogri->value => 'doi',
Locale::Dutch->value => 'nl',
Locale::English->value => 'en',
Locale::Esperanto->value => 'eo',
Locale::Estonian->value => 'et',
Locale::Ewe->value => 'ee',
Expand Down Expand Up @@ -138,8 +141,6 @@ class Google extends Integration
Locale::Zulu->value => 'zu',
];

public static string $integration = GoogleTranslate::class;

public function __construct(
protected GoogleTranslate $translator,
) {}
Expand Down

0 comments on commit 99e87b5

Please sign in to comment.