How to decline of the city/region of Yandex maps?

Good afternoon.
Is there any implementation of the declinations of areas/cities that are tightened to the site from Yandex maps?
Ie, by default, displays just, for example, "Moscow oblast". As you can realize the decline "in the Moscow region"?
June 10th 19 at 16:15
1 answer
June 10th 19 at 16:17
all the names of the fields in the nominative case end in "th" right?
city_name.replace("th ", "th ");
and the word region "region" is always the last, and it is necessary to replace the last character "s" with "and"
city_name.substring(0, str.length - 1);//remove last character
city_name = city_name + "and";

Find more questions by tags Yandex.MapsJavaScript