BMC Engine v1.0.0
An open-source game engine powered by C and C++
|
#include <Translator.h>
Public Member Functions | |
Translator (std::string locale) | |
std::string | translate (std::string key) |
Reads & translates keys for the current locale.
Translator::Translator | ( | std::string | locale | ) |
Create the translator object
locale | The language, ex en-US. |
std::string Translator::translate | ( | std::string | key | ) |
Translate a key to the selected locale.
key | The key to translate. |