Skip to content

Commit

Permalink
enable en
Browse files Browse the repository at this point in the history
  • Loading branch information
halsk committed Apr 23, 2024
1 parent e60de06 commit 63ba60c
Show file tree
Hide file tree
Showing 4 changed files with 9 additions and 49 deletions.
2 changes: 1 addition & 1 deletion components/PrintableMap.vue
Original file line number Diff line number Diff line change
Expand Up @@ -145,7 +145,7 @@ div
.col-2
span.item-price {{marker.room['間取り']}}
.col-2
span.item-price {{marker.room['家賃'].toLocaleString()}}円
span.item-price {{marker.room['家賃']}}円
.col-2
span.item-pet {{marker.feature.properties['所在地']}}
.list-section-none(
Expand Down
1 change: 1 addition & 0 deletions lib/MapHelper.ts
Original file line number Diff line number Diff line change
Expand Up @@ -210,6 +210,7 @@ export default class MapHelper implements IPrintableMap {
if (layer_settings === undefined) {
return category;
}
// eslint-disable-next-line no-undef
layer_settings.forEach((setting: MapPrint.LayerSetting) => {
// if the category name is found, update with layer setting
if (setting.name === category.name) {
Expand Down
8 changes: 7 additions & 1 deletion nuxt-i18n.config.js
Original file line number Diff line number Diff line change
@@ -1,11 +1,17 @@
export default {
locales: [
{
code: 'en',
iso: 'en',
name: 'English',
file: 'en.json'
},
{
code: 'ja',
iso: 'ja',
name: '日本語',
file: 'ja.json'
}
},
],
strategy: 'prefix_except_default',
defaultLocale: 'ja',
Expand Down
47 changes: 0 additions & 47 deletions pages/about.vue
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,6 @@ div.layout-map
div.layout-map-inner
main.main.col-12_md-9_xl-6
.main-sheet
my-header(:mapConfig='mapConfig', showToTop=true)
h1 このサイトについて
p
| このサイトは、能登半島地震で被災された方が受けられる住まいの支援のうち、みなし仮設(賃貸型応急)住宅の対象物件を、地図上で検索する機能を備えています。
Expand All @@ -20,49 +19,3 @@ div.layout-map
.footer-logo
img(src="~/assets/images/logo.png" width="895" height="160" :alt='$t("common.title")')
</template>
<script lang="js">
import MyHeader from '~/components/MyHeader'
export default {
components: {
MyHeader
},
data () {
return {
mapConfig: require('~/assets/config/2024-noto-houses'),
itemid: this.$nuxt.$route.params.id,
locale: null,
isOpenExplain: false,
updated_at: null
}
},
head () {
let title, description
const image = this.mapConfig.map_image ? this.mapConfig.map_image : 'logo.png'
switch (this.$i18n.locale) {
case 'ja':
title = this.mapConfig.map_title
description = this.mapConfig.map_description
break
case 'en':
title = this.mapConfig.map_title_en
description = this.mapConfig.map_description_en
break
default:
title = this.mapConfig.map_title_en
description = this.mapConfig.map_description_en
break
}
return {
title: title + ' - ' + this.$i18n.t('common.site_name'),
meta: [
{ hid: 'description', name: 'description', content: description },
{ hid: 'og:image', property: 'og:image', content: 'https://kamimap.com/images/' + image },
{ hid: 'og:description', name: 'og:description', content: description },
{ hid: 'og:title', name: 'og:title', content: title + this.$i18n.t('common.site_name') }
]
}
},
}
</script>

0 comments on commit 63ba60c

Please sign in to comment.