52 Q_PROPERTY(QString languageStr READ languageStr NOTIFY languageStrChanged)
53 using LanguageCountry = std::pair<QLocale::Language, QLocale::Country>;
56 static std::shared_ptr<LanguageManager> instance();
58 Q_INVOKABLE
void setLanguage(
int index)
override;
59 Q_INVOKABLE QStringList getBoxItems()
override;
60 QLocale getLocale(
int index)
override;
62 QString languageStr(
void)
override;
65 static std::shared_ptr<LanguageManager> m_instance;
66 static const QList<LanguageCountry> supportedLanguagesList;
67 static const QString boxLangItemTemplate;
68 bool initComplete =
false;