Combines each locale with all keys.

 @return [Array<String>]
 @param locales [Array<String, Symbol>]
 @param keys [Array<String, Symbol>]

 @example
   Scope.cross_join([:de, :en], [:hello, :hi]) #=>
     ["de.hello", "de.hi", "en.hello", "en.hi"]
549618
def cross_join(locales, keys)
      locales.flat_map do |locale|
        keys.map { |key| join(locale, key) }
      end
    end
1169844
public static Forest[] gets(String... keys) {
        Forest[] forests = new Forest[keys.length];
        for (int i = 0; i < forests.length; i++) {
            forests[i] = get(keys[i]);
        }
        return forests;
    }
227916
Set<Locale> getImplLocales(Class<?> c10nInterface) {
        Set<Locale> res = new HashSet<Locale>();
        C10NImplementationBinder<?> binder = binders.get(c10nInterface);
        if (binder != null) {
            res.addAll(binder.bindings.keySet());
        }
        return res;
    }
229271
function linkLocales() {
    return listFiles('locales')
        .then(filter(test(/^[a-z]{2}(_[A-Z]{2,3})?\.json$/)) & map(path.join('locales', _)))
        .filter(location => fs.readFileAsync(location)
            .then(JSON.parse & is(Object))
            .catchReturn(false))
        .catchReturn([]);
}
988876
public Collection<Locale> getCountries() {
        Collection<Locale> result = get(KEY_QUERY_COUNTRIES, Collection.class);
        if (result == null) {
            return Collections.emptySet();
        }
        return result;
    }
288005
public String localize(String key, Object... args) {
        return localize(PrefixKind.COMPILER_MISC, key, args);
    }
630481
public String getLang(final Locale locale, final String key) {
        return langs.get(locale.toString()).getProperty(key);
    }
136793
def mock_translation_key
      [source_type, source_id, locale].join('-').each_byte.reduce(0) { |a, e| a + e }
    end
949343
def make_keymap(langmap_entry, language)
    language.each do |key, value|
      if value.is_a? Hash
        make_keymap_for(langmap_entry, value, [key.to_sym])
      else
        langmap_entry << [key.to_sym]
      end
    end
  end
157475
public BuiltinSlotTypeMetadata withSupportedLocales(Locale... supportedLocales) {
        java.util.ArrayList<String> supportedLocalesCopy = new java.util.ArrayList<String>(supportedLocales.length);
        for (Locale value : supportedLocales) {
            supportedLocalesCopy.add(value.toString());
        }
        if (getSupportedLocales() == null) {
            setSupportedLocales(supportedLocalesCopy);
        } else {
            getSupportedLocales().addAll(supportedLocalesCopy);
        }
        return this;
    }
29656
function splitKeys (keys) {
		if (typeof(keys) === 'string') {
			return keys.replace(/^\s*\.\s*/,'')
				.replace(/(?:\s*\.\s*)+/g, '.')
				.split('.');
		}
		else if (Array.isArray(keys)) {
			return [].concat(keys);
		}
		return;
	}
836375
def _split_keys_v2(joined):
    
    left, _, right = joined.rpartition('::')
    return _decode_v2(left), _decode_v2(right)
237442
def localized_scope
      langs = ::I18n.available_locales.join('|')
      scope '(:locale)', locale: Regexp.new(langs) do
        yield
      end
    end
1125323
public static CharSequence[] escapeKeys(CharSequence... keys) {
		CharSequence[] escapedKeys = new CharSequence[keys.length];
		
		for (int index = 0; index < keys.length; index++) {
			escapedKeys[index] = escapeKeys(keys[index]);
		}
		
		return escapedKeys;
	}
1268422
static Key[] toNativeKeys(List<DatastoreKey> keys) {
    Key[] nativeKeys = new Key[keys.size()];
    for (int i = 0; i < keys.size(); i++) {
      nativeKeys[i] = keys.get(i).nativeKey();
    }
    return nativeKeys;
  }
26374
public String getLocalized(String key) {
		if (bundle != null) {
			try {
				return bundle.getString(key);
	//			String localized = bundle.getString(key);
	//			if((localized != null) && (localized.length() > 0)) {
	//				return localized;
	//			}
			} catch (Exception e) {
			}

		}
		return key;
	}
576044
def lookup(locale, key, scope = [], options = {})
      return super unless ActiveRecord::Base.connected? && CopycatTranslation.table_exists?
      cct = CopycatTranslation.where(locale: locale.to_s, key: key.to_s).first
      return cct.value if cct
      value = super(locale, key, scope, options)
      if value.is_a?(String) || value.nil?
        CopycatTranslation.create(locale: locale.to_s, key: key.to_s, value: value)
      end
      value
    end