mirror of
https://github.com/WerWolv/ImHex.git
synced 2026-03-30 13:05:25 -05:00
lang: Added base translation files
This commit is contained in:
@@ -412,6 +412,9 @@ namespace hex {
|
||||
namespace ContentRegistry::Language {
|
||||
|
||||
void addLocalization(const nlohmann::json &data) {
|
||||
if (!data.is_object())
|
||||
return;
|
||||
|
||||
if (!data.contains("code") || !data.contains("country") || !data.contains("language") || !data.contains("translations")) {
|
||||
log::error("Localization data is missing required fields!");
|
||||
return;
|
||||
|
||||
Reference in New Issue
Block a user