All Downloads are FREE. Search and download functionalities are using the official Maven repository.

org.meeuw.i18n.languages.DisplayNames Maven / Gradle / Ivy

There is a newer version: 3.8
Show newest version
package org.meeuw.i18n.languages;

/**
 * All {@link ISO_639_Code#refName()} as a {@link java.util.ResourceBundle}.
 * The default tab-files of ISO-636 provide the names of all language in english.
 * This is the fallback for if a {@link java.util.PropertyResourceBundle} for given {@link java.util.Locale} is missing.
 * @since 3.5
 */
public class DisplayNames extends java.util.ListResourceBundle {
    @Override
    protected Object[][] getContents() {
        return LanguageCode.stream()
            .map(i -> new Object[] {i.code(), i.refName()})
            .toArray(i -> new Object[i][2]);

    }
}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy