Answer the question
In order to leave comments, you need to log in
Is it possible to cram multiple languages into .yml?
Hello.
The Ruby application has a locales folder, which contains several files with a .yml extension. At the moment, they contain only translations in Mongolian. It looks, for example, like this:
mn:
date:
formats:
default: "%Y-%m-%d"
short: "%y-%m-%d"
long: "%Y %B %d"
ru:
or en:
and with the same structure to write lines in another language? Answer the question
In order to leave comments, you need to log in
Yes, you can. It is enough to write in this format:
mn:
date:
formats:
default: "%Y-%m-%d"
short: "%y-%m-%d"
long: "%Y %B %d"
ru:
date:
formats:
default: "%Y-%m-%d"
short: "%y-%m-%d"
long: "%Y %B %d"
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question