lib/xcres/analyzer/strings_analyzer.rb
def languages
      if default_language != nil
        # Use specified default language as primary language
        [default_language]
      else
        # Calculate the intersection of native development and used languages,
        # fallback to the latter only, if it is empty
        languages = native_dev_languages & used_languages
        if languages.empty?
          used_languages
        else
          languages
        end
      end
    end
# Find preferred languages, which is:
#   - either only the default_language, if specified
#   - or the intersection of native development and used languages
#   - or all used languages
#
# @return [Set<String>]
#
Find preferred languages, which is:
either only the default_language, if specified
or the intersection of native development and used languages
or all used languages
Find preferred languages which is : either only the default_language if specified or the intersection of native development and used languages or all used languages
def languages
      if default_language != nil
        [default_language]
      else
        languages = native_dev_languages & used_languages
        if languages.empty?
          used_languages
        else
          languages
        end
      end
    end
def languages if default_language != nil [ default_language ] else languages = native_dev_languages & used_languages if languages . empty? used_languages else languages end end end
Find preferred languages, which is:
 either only the default_language, if specified
 or the intersection of native development and used languages
 or all used languages
Find preferred languages which is : either only the default_language if specified or the intersection of native development and used languages or all used languages
# Use specified default language as primary language # Calculate the intersection of native development and used languages, # fallback to the latter only, if it is empty
None
Set<String>