Skip to content

Commit

Permalink
PB-898 Take the footer link from the translations
Browse files Browse the repository at this point in the history
  • Loading branch information
schtibe committed Aug 29, 2024
1 parent 7ed2624 commit ec4fa33
Showing 1 changed file with 1 addition and 17 deletions.
18 changes: 1 addition & 17 deletions src/modules/map/components/footer/MapFooterAppCopyright.vue
Original file line number Diff line number Diff line change
Expand Up @@ -11,29 +11,13 @@
</template>

<script>
import { mapState } from 'vuex'
export default {
computed: {
...mapState({
currentLang: (state) => state.i18n.lang,
}),
/**
* The language used for the geo.admin.ch link. Since there is no RM version of the page, we
* fall back to DE here
*/
linkLang() {
const lang = this.currentLang
if (lang.toLowerCase() == 'rm') {
return 'de'
}
return lang
},
links() {
return [
{
label: 'ech_service_link_label',
url: `https://www.geo.admin.ch/${this.linkLang}/home.html`,
url: this.$t('ech_service_link_href'),
},
{
label: 'copyright_label',
Expand Down

0 comments on commit ec4fa33

Please sign in to comment.