Multi-language support mechanism

To receive the following response to the request /api/v1/Dishes?objectId=<…>&reload=1:
"locres": {
"ru": {
"name": "Голубцы",
"long_comment": "Тестовый комментарий по голубцам"
},
"en": {
"name": "Cabbage with meat",
"long_comment": "Test comment"
},
"lt": {
"name": "Lithuanian: cabbage",
"long_comment": "Test Lithuanian"
}
}
add advanced properties in the RK7 administration section, as shown in the screenshot:

These properties will be displayed for relevant dishes (reminder: dish list caching time is 15 minutes). Currently, the following languages are supported:
{ "0409", "en" }, // English
{ "0419", "ru" }, // Russian
{ "0427", "lt" }, // Lithuanian
{ "0402", "bg" }, // Bulgarian

  • No labels