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

SourceString fails on pluralized string #84

Open
glushkovds opened this issue Nov 19, 2021 · 3 comments
Open

SourceString fails on pluralized string #84

glushkovds opened this issue Nov 19, 2021 · 3 comments
Labels
bug Something isn't working good first issue Good for newcomers hacktoberfest This issue welcomes contributions for Hacktoberfest

Comments

@glushkovds
Copy link

   TypeError 

  Return value of CrowdinApiClient\Model\SourceString::getText() must be of the type string, array returned

  at vendor/crowdin/crowdin-api-client/src/CrowdinApiClient/Model/SourceString.php:175
    171▕      * @return string
    172▕      */
    173▕     public function getText(): string
    174▕     {
  ➜ 175▕         return $this->text;
    176▕     }
    177▕ 
    178▕     /**
    179▕      * @param string $text
@andrii-bodnar andrii-bodnar added the good first issue Good for newcomers label Nov 19, 2021
@andrii-bodnar andrii-bodnar added the bug Something isn't working label May 20, 2022
@andrii-bodnar andrii-bodnar added the hacktoberfest This issue welcomes contributions for Hacktoberfest label Sep 27, 2022
@phillipsb22
Copy link

Could you please supply some steps on how to recreate this error so that I can have a look

@andrii-bodnar
Copy link
Member

andrii-bodnar commented Oct 13, 2022

@phillipsb22 probably, you need to upload to your Crowdin project some file with plural strings (for example, android XML)

Then, call the List Strings or Get String API method

@glushkovds
Copy link
Author

Hi guys. You can reproduce this by adding pluralized string and then downloading it by SourceStringApi::list.

Here is api documentation:
image

https://developer.crowdin.com/api/v2/#operation/api.projects.strings.post

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working good first issue Good for newcomers hacktoberfest This issue welcomes contributions for Hacktoberfest
Projects
None yet
Development

No branches or pull requests

3 participants