Skip to content

Commit

Permalink
Use toLanguageTag instead of toString
Browse files Browse the repository at this point in the history
  • Loading branch information
dotasek committed Jan 30, 2025
1 parent 387a2dc commit 155dba9
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -3252,7 +3252,7 @@ else if (p.getValue().equals("no-experimental-content"))
if (sourceIg.hasJurisdiction()) {
Locale localeFromRegion = ResourceUtilities.getLocale(sourceIg);
if (localeFromRegion != null) {
sourceIg.setLanguage(localeFromRegion.toString());
sourceIg.setLanguage(localeFromRegion.toLanguageTag());
} else {
throw new Error("Unable to determine locale from jurisdiction (as requested by policy)");
}
Expand Down

0 comments on commit 155dba9

Please sign in to comment.