renderd7/internal/lang.hpp

17 lines
490 B
C++
Raw Permalink Normal View History

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