Skip to content

Wrong format on downloading translation from API where array have first value empty #8

@jordigg

Description

@jordigg

Hi,

I don't know what changed these days, but I have problems with some of my translations. Just happens to the ones that are arrays of values and the first value is empty. I have tried older versions of the gem and still happens the same. Do you think it's related to the API? Was working few days ago. Here an example:

Original file from the rails i18n repository: https://github.com/svenfuchs/rails-i18n/blob/master/rails/locale/en.yml

abbr_month_names:
- 
- Jan
- Feb
- Mar
- Apr
- May
- Jun
- Jul
- Aug
- Sep
- Oct
- Nov
- Dec

Can be uploaded and translated without problems. Errors appear when downloading the translation.

abbr_month_names:
? "12"
: dic
? "0"
: ~
? "1"
: ene
? "2"
: feb
? "3"
: mar
? "4"
: abr
? "5"
: may
? "6"
: jun
? "7"
: jul
? "8"
: ago
? "9"
: sep
? "10"
: oct
? "11"
: nov

Tried changing the format of original file to an array like:

[, Jan, Feb, Mar, Apr, May, Jun, Jul, Aug, Sep, Oct, Nov, Dec]

or even

[~, Jan, Feb, Mar, Apr, May, Jun, Jul, Aug, Sep, Oct, Nov, Dec]

but no luck.

Any tips on how to solve it?

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions