Translate a YAML file
Drop a .yml or .yaml file. String values are translated; keys, nesting and non-text values stay as they were.
Don't upload confidential documents on the free tier. Why?
YAML is a common format for interface text in frameworks such as Ruby on Rails and for site data in static site generators. It is easy to read but strict about indentation, so a translation that shifts a single space can stop an app from starting. DropTranslate parses the YAML, translates only the string values and writes the file back with the same keys and nesting, so the result loads the same way as the original.
How it works
Drop the .yml
We parse the file, count the words in string values and show the credit cost. Invalid YAML is rejected with no charge.
Pick the language
Choose the target language for the new locale.
Download the .yml
Save it as your new locale file, for example es.yml.
What changes, what stays
Translated
- String values
Kept as-is
- Keys, nesting and indentation structure
- Numbers, booleans and dates
Layout: Exact: structure kept
Keys and structure are kept, so the file loads exactly like the original.
- Some locale files start with a top-level language key (for example en:). Rename it to the new language code after translating.
- Placeholders such as %{count} or {{ name }} should stay unchanged, and the model is instructed to keep them. Search the output for them before shipping.
Tips
- Run your app's i18n check or test suite on the new file before deploying.
- If a value is technical (a CSS class, a file path), move it out of the locale file so it isn't translated.
Not a certified translation
Machine translation, not a certified or sworn translation. If your document goes to an authority, check what it requires first.
Certified, sworn or machine translation: which one do you need?
Questions
Are keys translated?
No. Only string values change. Keys and nesting stay the same.
Will my app still load the file?
The output is re-serialized as valid YAML with the same structure. Check the top-level language key and your placeholders, then run your usual i18n checks.
How are credits counted?
One credit per 500 words of string values. Keys don't count.