mirror of
https://github.com/DarkflameUniverse/DarkflameServer.git
synced 2024-12-23 05:53:34 +00:00
19 lines
476 B
C
19 lines
476 B
C
|
#pragma once
|
||
|
#include <map>
|
||
|
#include <string>
|
||
|
#include <vector>
|
||
|
#include <cstdint>
|
||
|
|
||
|
class dLocale {
|
||
|
public:
|
||
|
dLocale();
|
||
|
~dLocale();
|
||
|
static std::string GetTemplate(const std::string& phraseID);
|
||
|
bool HasPhrase(const std::string& phraseID);
|
||
|
//std::string GetPhrase(const std::string& phraseID);
|
||
|
|
||
|
private:
|
||
|
std::string m_LocalePath = "./locale/locale.xml";
|
||
|
std::string m_Locale = "en_US"; // TODO: add to config
|
||
|
std::vector<std::size_t> m_Phrases;
|
||
|
};
|