transifex / transifex-client

The Transifex command-line tool.
https://www.transifex.com/
GNU General Public License v2.0
136 stars 76 forks source link

Error received from server: Could not import file: Invalid plural types for string #341

Closed aseegobin closed 2 years ago

aseegobin commented 2 years ago

transifex-client-0.14.4 started failing suddenly (12:20 PM EST) with the following error:

Error: Command failed: tx  push -t -l fr_CA 
tx ERROR: Error received from server: Could not import file: Invalid plural types for string: redacted::team::project::feature::key. Language supports: ['one', 'many', 'other'], but found: ['one', 'other'] instead.

Example string: "{quantity, plural, one {1 action} other {# actions}}"

Nothing has changed on our end and our build was passing as recent as 11 AM EST. Let me know if there is more information you require.

Can you confirm if anything has changed on your end between the hours of 11AM EST and 12:20PM EST which result in our builds failing?

aseegobin commented 2 years ago

I just made a change to address the errors and I'm getting the opposite error:

tx ERROR: Error received from server: Invalid plural types for string: redacted::team::project::feature::key. Language supports: ['one', 'other'], but found: ['one', 'many', 'other'] instead.

New string: {quantity, plural, one {1 action} many{# actions} other {# actions}}

pankav commented 2 years ago

Hello @aseegobin ,

Thank you for your message. Is this is still an issue for you?

aseegobin commented 2 years ago

Hi @pankav thank you for responding. Yes, it is still an issue for our team. We are still getting the errors as stated above

aseegobin commented 2 years ago

Quick update - we reran our build 10 minutes ago and it has passed. It seems like the issue has been fixed. Can you give us any insight on what changed?

pankav commented 2 years ago

Sure @aseegobin .  Regarding your question, I would like to inform you that this change happened due to mistaken deployment from our side, and I truly apologize for this. The mistaken deployment was related to the new 3 available formats for plurals in the French language.

Now, as you confirmed, it should be ok again with the two plural forms (1, other).

However, I would like to inform you that, there will be a 1month-notice before taking these changes to live since, for the plurals for the French language, there is a new third form based on the CLDR rules v.41.0.

image

I would like to mention also, that this is not the one-month notice yet. You will be informed accordingly. Probably, in the next few days, we will make an announcement.

Please let me know if you have any further questions.  Kind regards, Panagiotis

aseegobin commented 2 years ago

Thank you @pankav for the explanation 👍 . I will take this information back to my team and close this issue out.