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

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

Open
jordigg opened this issue Jun 22, 2015 · 1 comment

Comments

@jordigg
Copy link

jordigg commented Jun 22, 2015

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?

@quyen91
Copy link

quyen91 commented Aug 20, 2017

My solution: Delete all config of time on files you will upload to Onesky. We create new file ex: locales/time._your_language_.yml. Then ignore this file in config/onesky.yml

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

2 participants