mirror of
https://github.com/Mr-X-GTA/YimMenu.git
synced 2025-06-18 23:17:52 +08:00

Related YimMenu/Translations#117 Closes #2723 Changes made: - Renderer class was changed to a static instance - Some throw code was removed because of change of instantiation of the renderer - Fonts are dynamically loaded based on the language requirements - renderer files have been moved to make the root directory less messy - Added a font mgr to improve the ease of adding more language support
21 lines
560 B
C++
21 lines
560 B
C++
#pragma once
|
|
#include "renderer/alphabet_types.hpp"
|
|
#include "translation_entry.hpp"
|
|
|
|
namespace big
|
|
{
|
|
class local_index
|
|
{
|
|
public:
|
|
int version = -1;
|
|
eAlphabetType alphabet_type = eAlphabetType::LATIN;
|
|
std::string selected_language;
|
|
std::string fallback_default_language;
|
|
std::map<std::string, translation_entry> fallback_languages;
|
|
bool default_language_set = false;
|
|
|
|
NLOHMANN_DEFINE_TYPE_INTRUSIVE_WITH_DEFAULT(local_index, version, alphabet_type, selected_language, fallback_default_language, fallback_languages, default_language_set)
|
|
};
|
|
|
|
}
|