Skip to content

Commit

Permalink
Use language from configuration
Browse files Browse the repository at this point in the history
  • Loading branch information
atextor committed Dec 10, 2024
1 parent e2332bf commit 7107335
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -99,7 +99,7 @@ public Stream<DocumentationArtifact> 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 );
Expand Down

0 comments on commit 7107335

Please sign in to comment.