Oauth2-server: How can I translate the return messages?

Created on 30 Jun 2017  路  3Comments  路  Source: thephpleague/oauth2-server

Improvement Idea

All 3 comments

I made this customization:

in resources\lang\pt-br\auth.php

'invalid_client' => 'Autentica莽茫o de cliente falhou',

and in OAuthServerException.php

    public static function invalidClient()
    {
        $errorMessage = __('auth.invalid_client');

        return new static($errorMessage, 4, 'invalid_client', 401);
    }

Hello @gbgelado - there is no native way to do this in the library at the moment, but I think it is probably a good thing to implement. I will add this as an improvement idea and speak about this with the other maintainers. Thanks for the suggestion.

any news?

Was this page helpful?
0 / 5 - 0 ratings

Related issues

webmake picture webmake  路  7Comments

johannesschobel picture johannesschobel  路  4Comments

JasonTheAdams picture JasonTheAdams  路  6Comments

yob-yob picture yob-yob  路  5Comments

kohlerdominik picture kohlerdominik  路  6Comments