From 1f3e71d776d49b93a93dceb52da89b39dfd19ab3 Mon Sep 17 00:00:00 2001 From: Mile Divovic Date: Wed, 27 Nov 2024 09:46:04 -0800 Subject: [PATCH] schema:inLanguage takes priority over other fields for default language --- src/mixins/common.js | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/src/mixins/common.js b/src/mixins/common.js index be770dca3..09191981d 100644 --- a/src/mixins/common.js +++ b/src/mixins/common.js @@ -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) {