You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
So aspect languages are used only if configuration locale is null.
And if it's not null, ENGLISH is used.
But in DocumentationGenerationConfig locale can't be null:
@RecordBuilder
public record DocumentationGenerationConfig(
Locale locale,
String stylesheet
) implements GenerationConfig {
public DocumentationGenerationConfig {
if ( locale == null ) {
locale = Locale.ENGLISH;
}
}
}
As a result - if we create configuration with any locale, in generator it will be changed to Locale.ENGLISH.
If we create configuration without locale, default Locale.ENGLISH will be assigned in DocumentationGenerationConfig.
Where
esmf-aspect-model-document-generators:2.9.8
AspectModelDocumentationGenerator, DocumentationGenerationConfig
The text was updated successfully, but these errors were encountered:
Describe the bug
There is a code in AspectModelDocumentationGenerator to get target languages:
So aspect languages are used only if configuration locale is null.
And if it's not null, ENGLISH is used.
But in DocumentationGenerationConfig locale can't be null:
As a result - if we create configuration with any locale, in generator it will be changed to Locale.ENGLISH.
If we create configuration without locale, default Locale.ENGLISH will be assigned in DocumentationGenerationConfig.
Where
esmf-aspect-model-document-generators:2.9.8
AspectModelDocumentationGenerator, DocumentationGenerationConfig
The text was updated successfully, but these errors were encountered: