You are an expert in writing code in many different languages. Your goal is to perform code completion for the following code, keeping in mind the rest of the code and the file meta data.
    Metadata details:
    filename: locale_helper.rb
    path of file: ./repos/spree/core/app/helpers/spree
    
    the code of the file until where you have to start completion: module Spree
  module LocaleHelper
    def all_locales_options
      supported_locales_for_all_stores.map { |locale| locale_presentation(locale) }
    end

    def available_locales_options
      available_locales.map { |locale| locale_presentation(locale) }
    end

    def supported_locales_options
      return if current_store.nil?

      current_store.support
    
    def locale_presentation(locale)
      if I18n.exists?('spree.i18n.this_file_language', locale: locale, fallback: false)
        [locale_full_name(locale), locale.to_s]
      elsif defined?(SpreeI18n::Locale) && (language_name = SpreeI18n::Locale.local_language_name(locale))
        ["#{language_name} (#{locale})", locale.to_s]
      elsif locale.to_s == 'en'
        ['English (US)', 'en']
      else
        [locale, locale.to_s]
      end