fix language extension

This commit is contained in:
Grahame Grieve 2019-08-06 14:48:24 +10:00
parent 7ef2409bac
commit 2dc71f33ff
2 changed files with 2 additions and 2 deletions

View File

@ -577,7 +577,7 @@ public class ToolingExtensions {
return; return;
Extension extension = new Extension().setUrl(EXT_TRANSLATION); Extension extension = new Extension().setUrl(EXT_TRANSLATION);
extension.addExtension().setUrl("lang").setValue(new StringType(lang)); extension.addExtension().setUrl("lang").setValue(new CodeType(lang));
extension.addExtension().setUrl("content").setValue(new StringType(value)); extension.addExtension().setUrl("content").setValue(new StringType(value));
element.getExtension().add(extension); element.getExtension().add(extension);
} }

View File

@ -577,7 +577,7 @@ public class ToolingExtensions {
return; return;
Extension extension = new Extension().setUrl(EXT_TRANSLATION); Extension extension = new Extension().setUrl(EXT_TRANSLATION);
extension.addExtension().setUrl("lang").setValue(new StringType(lang)); extension.addExtension().setUrl("lang").setValue(new CodeType(lang));
extension.addExtension().setUrl("content").setValue(new StringType(value)); extension.addExtension().setUrl("content").setValue(new StringType(value));
element.getExtension().add(extension); element.getExtension().add(extension);
} }