Skip to content

Commit

Permalink
schema:inLanguage takes priority over other fields for default language
Browse files Browse the repository at this point in the history
  • Loading branch information
miledivovic committed Nov 27, 2024
1 parent 7243fae commit 1f3e71d
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions src/mixins/common.js
Original file line number Diff line number Diff line change
Expand Up @@ -195,10 +195,10 @@ export default {
framework = this.$store.getters['editor/framework'];
}
var defaultLanguage;
if (framework && framework["ceasn:inLanguage"]) {
defaultLanguage = EcArray.isArray(framework["ceasn:inLanguage"]) ? framework["ceasn:inLanguage"][0] : framework["ceasn:inLanguage"];
} else if (framework && framework["schema:inLanguage"]) {
if (framework && framework["schema:inLanguage"]) {
defaultLanguage = EcArray.isArray(framework["schema:inLanguage"]) ? framework["schema:inLanguage"][0] : framework["schema:inLanguage"];
} else if (framework && framework["ceasn:inLanguage"]) {
defaultLanguage = EcArray.isArray(framework["ceasn:inLanguage"]) ? framework["ceasn:inLanguage"][0] : framework["ceasn:inLanguage"];
} else if (framework && framework["dcterms:language"]) {
defaultLanguage = EcArray.isArray(framework["dcterms:language"]) ? framework["dcterms:language"][0] : framework["dcterms:language"];
} else if (navigator.language || navigator.userLanguage) {
Expand Down

0 comments on commit 1f3e71d

Please sign in to comment.