Skip to content

Commit

Permalink
Fixing test cases.
Browse files Browse the repository at this point in the history
  • Loading branch information
mihxil committed Oct 6, 2024
1 parent 20be08d commit 4819376
Show file tree
Hide file tree
Showing 5 changed files with 212 additions and 192 deletions.
6 changes: 1 addition & 5 deletions src/main/java/org/meeuw/i18n/languages/DisplayNames.java
Original file line number Diff line number Diff line change
@@ -1,7 +1,5 @@
package org.meeuw.i18n.languages;

import java.util.stream.Stream;

/**
* 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.
Expand All @@ -11,9 +9,7 @@
public class DisplayNames extends java.util.ListResourceBundle {
@Override
protected Object[][] getContents() {
return Stream.concat(
Stream.of(ISO_639_1_Code.values()),
ISO_639_3_Code.stream())
return LanguageCode.stream()
.map(i -> new Object[] {i.code(), i.refName()})
.toArray(i -> new Object[i][2]);

Expand Down
11 changes: 11 additions & 0 deletions src/main/java/org/meeuw/i18n/languages/DisplayNames_en.java
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
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_en extends DisplayNames {

}
Loading

0 comments on commit 4819376

Please sign in to comment.