#ifndef LOCALIZATION_H #define LOCALIZATION_H #include #include class YamlNode; class Localization { public: static Localization& instance(); bool loadFile(const QString &filePath); QString get(const QString &key, const QString &defaultVal = "") const; private: Localization(); ~Localization() = default; void flattenNode(const YamlNode &node, const QString &prefix); QMap m_strings; bool m_loaded; }; #endif // LOCALIZATION_H