Fixed macOS compile.

This commit is contained in:
Casey Langen 2017-03-15 00:08:33 -07:00
parent f6e48b457b
commit b7a4dc344a

View File

@ -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;
}