Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Argument #1 ($translation) must be of type string, null given #14

Open
gemal opened this issue Sep 9, 2022 · 2 comments
Open

Argument #1 ($translation) must be of type string, null given #14

gemal opened this issue Sep 9, 2022 · 2 comments

Comments

@gemal
Copy link

gemal commented Sep 9, 2022

ERROR: Gettext\Translation::translate(): Argument #1 ($translation) must be of type string, null given, called in vendor\om\potrans\src\commands\DeepLTranslatorCommand.php on line 121 on vendor\gettext\gettext\src\Translation.php at 173

if you run a command like:
php vendor/bin/potrans deepl --apikey=XXX --from=en-us --to=sv test.po out

I accidentally wrote en-us in the from

@chrfs
Copy link

chrfs commented Oct 31, 2022

+1

1 similar comment
@gianfrancolombardo
Copy link

+1

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants