how can i convert a locale file to another language

All my keys have underscores if not in snake case then at the end When I copy a file using google translate the colons, quotation marks and white spaces are all invalid yml cause they’re not text, they’re utf8 Anyone know another translator to use?

It would be a pretty sad "internationalization" system that didn't allow UTF-8 characters, so -- spoiler alert -- there's no problem with UTF-8 in YAML locale files.

Maybe you can explain exactly what issue you're having, with sample code?

The keys aren’t supposed to be utf8 I meant the whole yaml file It doesn’t work in google translate, the keys get converted to utf8 along with white space and quotes My question is exactly what I asked

I have no idea what any of that is supposed to mean.

YAML keys can be UTF8.

Any google-translate-provided strings that I've tried work in locale files.

If you can't provide something to demonstrate the actual "problem", then ¯\_(ツ)_/¯

If you copy the entire contents of a yaml file from translate.google.com it won’t be valid yaml for your rails app Whitespaces and quotes that get converted to utf8 are seemingly the cause of the problem

Just wanna remind you that I asked this question because you can’t do it with google translate

I would not copy the entire yml file into Translate - it’s going to arbitrarily try to translate both keys and values and introduce other artifacts, as you’ve already witnessed. You will probably get much better results with the extra effort of copying line by line the individual values into Translate; only translating the actual phrase in the Value itself then matching it to the correct key in your new translation yml file.

It’s a pretty standard practice to encode your files with UTF-8. The only reason I came across to not do so is if you’re using UTF-16 for primarily Asian language sites. Handling that is probably better asked in a non-English Rails group. Your responses make it sound like you haven’t set the default encoding in your text editor or IDE and are getting weird results when Google spits back translations in UTF-8 and you copy the result back into a file.