
org.meeuw.i18n.languages.DisplayNames Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of i18n-iso-639 Show documentation
Show all versions of i18n-iso-639 Show documentation
Provides a class with one instance of every of the ISO 639 languages
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