Update lang.hpp

This commit is contained in:
tobid7 2021-07-25 00:23:20 +02:00 committed by GitHub
parent 469896be32
commit 9be2bb672a
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -2,10 +2,15 @@
#include <string> #include <string>
#include "json.hpp" #include "json.hpp"
/// RenderD7::Lang
namespace RenderD7::Lang namespace RenderD7::Lang
{ {
/// Get the 3ds System Language
std::string getSys(); std::string getSys();
/// Get a translated string
/// key: The Key so the code can find your string
std::string get(const std::string &key); std::string get(const std::string &key);
/// Load the lang file from dir structure en/app.json for sample
/// lang: the folder name en, fr, de ... . I prefer geSys()
void load(const std::string &lang); void load(const std::string &lang);
} } /// RenderD7::Lang