diff --git a/include/string.hpp b/include/string.hpp index 99213de6..a3f3fbca 100644 --- a/include/string.hpp +++ b/include/string.hpp @@ -131,8 +131,11 @@ struct Version { }; +/** Returns translation string of the current language setting from `translations/.json`, or English if not found. */ std::string translate(const std::string& id); +/** Returns translation string of the given language, or "" if not found. */ std::string translate(const std::string& id, const std::string& language); +/** Returns ISO 639-1 language codes of loaded translations, sorted by name of language. */ std::vector getLanguages(); void init();