bugs and perfomance cleanup.

This commit is contained in:
2026-05-21 21:56:36 +01:00
parent 582b2fcd9e
commit 872d878ddc
6 changed files with 149 additions and 10 deletions
+1 -1
View File
@@ -71,7 +71,7 @@ inline void set(LanguageCode lang_code, Key key, const std::string &text) {
localized_strings[join_keys(lang_code, key)] = parse_localized(text);
}
inline std::string get(mrb_state *mrb, Key key, const std::unordered_map<std::string, std::string> &params) {
inline std::string get(Key key, const std::unordered_map<std::string, std::string> &params) {
auto it = localized_strings.find(join_keys(current_language, key));
if (it == localized_strings.end())
return "Localization not set!";