21 lines
592 B
C++
21 lines
592 B
C++
#pragma once
|
|
// clang-format off
|
|
#include <string>
|
|
#include <renderd7/external/json.hpp>
|
|
// clang-format on
|
|
|
|
namespace RenderD7 {
|
|
namespace Lang {
|
|
/// @brief Get 3ds System lang! [en] by default
|
|
/// @return Sytemlang as string
|
|
std::string getSys();
|
|
/// @brief Get The Translation String
|
|
/// @param key Key of Translation
|
|
/// @return The Translated String
|
|
std::string get(const std::string &key);
|
|
/// @brief Load A Language json
|
|
/// @param lang The Language Key [en], [de], etc, or getSys()
|
|
void load(const std::string &lang);
|
|
} // namespace Lang
|
|
} // namespace RenderD7
|