4#include <nlohmann/json.hpp>
33 virtual std::optional<std::string>
getPath(
const std::string &
id)
const = 0;
43 virtual std::optional<std::string>
getCustomKey(
const std::string &
id,
44 const std::string &key)
const = 0;
53 virtual std::optional<std::string>
Interface for loading custom strings from JSON.
Definition ICustomStringsLoader.hpp:14
virtual ~ICustomStringsLoader()=default
virtual std::optional< std::string > getPath(const std::string &id) const =0
Get the Path object.
virtual std::optional< std::string > getLocalizedString(const std::string &id, const std::string &locale="en") const =0
Get the Localized String object.
virtual std::optional< std::string > getCustomKey(const std::string &id, const std::string &key) const =0
Get the Custom Key object.
virtual Result< nlohmann::json, JsonError > load() const =0
Load the custom strings JSON data.
Definition UtilsError.hpp:93
Definition DirectoryManager.cpp:5