diff --git a/core/esmf-aspect-model-document-generators/src/main/java/org/eclipse/esmf/aspectmodel/generator/docu/AspectModelDocumentationGenerator.java b/core/esmf-aspect-model-document-generators/src/main/java/org/eclipse/esmf/aspectmodel/generator/docu/AspectModelDocumentationGenerator.java index 04571073..16989c25 100644 --- a/core/esmf-aspect-model-document-generators/src/main/java/org/eclipse/esmf/aspectmodel/generator/docu/AspectModelDocumentationGenerator.java +++ b/core/esmf-aspect-model-document-generators/src/main/java/org/eclipse/esmf/aspectmodel/generator/docu/AspectModelDocumentationGenerator.java @@ -99,7 +99,7 @@ public Stream generate() { logMissingTranslations( aspect(), language ); templateContext.put( "i18n", new I18nLanguageBundle( language ) ); final TemplateEngine templateEngine = new TemplateEngine( templateContext, engineConfiguration ); - final String artifactName = "%s_%s.html".formatted( aspect().getName(), config.locale().toLanguageTag() ); + final String artifactName = "%s_%s.html".formatted( aspect().getName(), language.toLanguageTag() ); String source = templateEngine.apply( DOCU_ROOT_DIR + "/templates/html/aspect-model-documentation" ); source = insertAspectModelDiagram( source, language ); source = insertStaticPlaceholders( source );