mirror of
https://github.com/clangen/musikcube.git
synced 2024-10-02 13:02:35 +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;
|
static nlohmann::json empty;
|
||||||
|
|
||||||
if (!this->localeData.is_null()) {
|
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);
|
auto it = strings.find(key);
|
||||||
return (it != strings.end()) ? it.value() : key;
|
return (it != strings.end()) ? it.value() : key;
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user