Skip to content

Commit

Permalink
Transpose @macchiati’s array
Browse files Browse the repository at this point in the history
  • Loading branch information
eggrobin committed Jan 14, 2024
1 parent d1a4767 commit 2dc7fe6
Showing 1 changed file with 5 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -381,8 +381,11 @@ private void addExamplarProperty(
}

// put locales into right format
String[] localeList = localeSet.toArray(new String[localeSet.size()]);
String[][] locales = new String[][] {localeList, localeList}; // abbreviations are the same
String[][] locales = new String[localeSet.size()][];
int i = 0;
for (String locale : localeSet) {
locales[i++] = new String[] {locale, locale}; // abbreviations are the same
}

add(
new UnicodeProperty.UnicodeMapProperty()
Expand Down

0 comments on commit 2dc7fe6

Please sign in to comment.