From 5b4a9990b4297510b05732ff689b08f828bee226 Mon Sep 17 00:00:00 2001 From: Shaban Kamel Date: Wed, 18 Sep 2024 16:25:20 +0300 Subject: [PATCH] Solara --- .../scripts/platform/ios/infoplist_string_catalog_manager.rb | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/solara/lib/core/scripts/platform/ios/infoplist_string_catalog_manager.rb b/solara/lib/core/scripts/platform/ios/infoplist_string_catalog_manager.rb index a5e016e..28d7e88 100644 --- a/solara/lib/core/scripts/platform/ios/infoplist_string_catalog_manager.rb +++ b/solara/lib/core/scripts/platform/ios/infoplist_string_catalog_manager.rb @@ -16,7 +16,7 @@ def update(result, path) } } # Update the value in the JSON structure - state = value.empty? ? 'new' : 'translated' + state = value === '' ? 'new' : 'translated' localizations['strings'][base_key]['localizations'][lang_code]['stringUnit']['state'] = state localizations['strings'][base_key]['localizations'][lang_code]['stringUnit']['value'] = value @@ -67,7 +67,7 @@ def has_bundle_display_name(brand_key) def has_value(key, brand_key) state = get_default_state_of(key, brand_key) value = get_default_value_of(key, brand_key) - state != 'new' && !value.empty? + state != 'new' && value != '' end def validate_required_keys(brand_key)