Skip to content

Commit

Permalink
Solara
Browse files Browse the repository at this point in the history
  • Loading branch information
IdeaS0ft committed Sep 18, 2024
1 parent c96c0a1 commit 5b4a999
Showing 1 changed file with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down Expand Up @@ -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)
Expand Down

0 comments on commit 5b4a999

Please sign in to comment.