Browse Source

Add documentation to string:: language functions.

tags/v2.6.1
Andrew Belt 5 months ago
parent
commit
ad3e10d842
1 changed files with 3 additions and 0 deletions
  1. +3
    -0
      include/string.hpp

+ 3
- 0
include/string.hpp View File

@@ -131,8 +131,11 @@ struct Version {
};


/** Returns translation string of the current language setting from `translations/<language>.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<std::string> getLanguages();
void init();



Loading…
Cancel
Save