GovDataOfficial / DCAT-AP.de-SHACL-Validation

SHACL-Shapes für DCAT-AP.de
https://www.itb.ec.europa.eu/shacl/dcat-ap.de/upload
GNU Affero General Public License v3.0
10 stars 7 forks source link

Set default locale to German #12

Closed costas80 closed 2 years ago

costas80 commented 2 years ago

In this PR I updated the validator.locale.default to set it explicitly to German (de). Doing so allows the validator to correctly lookup translations for the properties not directly configured in the config file, and ensures that any new validator features that are made available do not require an update of this config file to define appropriate translations.

If validator.locale.default is not set then the default of en (English) is considered, means that if features are added that introduce new labels, these will display in English (which would be undesirable).

Note that from a functional perspective, merging this PR has no side-effects. In addition, the translations configured already in the config.properties file are still taken into account (even though they could in theory be removed).