mirror of
https://github.com/clangen/musikcube.git
synced 2024-11-19 20:13:36 +00:00
Fixed macOS compile.
This commit is contained in:
parent
f6e48b457b
commit
b7a4dc344a
@ -132,7 +132,7 @@ std::string Locale::Translate(const char* key) {
|
||||
static nlohmann::json empty;
|
||||
|
||||
if (!this->localeData.is_null()) {
|
||||
nlohmann::json& strings = this->localeData.value(KEY_STRINGS, empty);
|
||||
const nlohmann::json& strings = this->localeData.value(KEY_STRINGS, empty);
|
||||
auto it = strings.find(key);
|
||||
return (it != strings.end()) ? it.value() : key;
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user