renderd7/internal/lang.hpp

17 lines
502 B
C++
Raw 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
2022-04-12 11:19:37 +02:00
/// \param 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
2022-04-12 11:19:37 +02:00
/// \param 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