[core] Fix local language not being used in some cases

Signed-off-by: Yannik Bloscheck <git@yannikbloscheck.com>
This commit is contained in:
Yannik Bloscheck
2025-08-05 17:44:13 +02:00
parent f09b372590
commit 185ae66101
4 changed files with 50 additions and 27 deletions

View File

@@ -136,12 +136,13 @@ namespace feature
/// Returns priority list of language codes for feature description,
/// the priority is the following:
/// - device language code;
/// - default language code if MWM contains user's language (or similar to device languages if provided);
/// - languages that we know are similar to device language;
/// - device language codes in order of preference;
/// - including default language code, if MWM contains the language (or similar to device language if provided);
/// - including languages that we know are similar to device language;
/// - international language code;
/// - english language code;
std::vector<int8_t> GetDescriptionLangPriority(RegionData const & regionData, int8_t const deviceLang);
/// - default language code;
std::vector<int8_t> GetDescriptionLangPriority(RegionData const & regionData);
// Returns vector of cuisines readable names from classificator.
std::vector<std::string> GetCuisines(TypesHolder const & types);