Skip to content

Commit 32c332c

Browse files
authored
Use toLanguageTag instead of toString (#1032)
1 parent 387a2dc commit 32c332c

File tree

1 file changed

+1
-1
lines changed
  • org.hl7.fhir.publisher.core/src/main/java/org/hl7/fhir/igtools/publisher

1 file changed

+1
-1
lines changed

org.hl7.fhir.publisher.core/src/main/java/org/hl7/fhir/igtools/publisher/Publisher.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3252,7 +3252,7 @@ else if (p.getValue().equals("no-experimental-content"))
32523252
if (sourceIg.hasJurisdiction()) {
32533253
Locale localeFromRegion = ResourceUtilities.getLocale(sourceIg);
32543254
if (localeFromRegion != null) {
3255-
sourceIg.setLanguage(localeFromRegion.toString());
3255+
sourceIg.setLanguage(localeFromRegion.toLanguageTag());
32563256
} else {
32573257
throw new Error("Unable to determine locale from jurisdiction (as requested by policy)");
32583258
}

0 commit comments

Comments
 (0)