Skip to content

Commit f9e4b57

Browse files
committed
update locale
1 parent 3d2d057 commit f9e4b57

File tree

7 files changed

+178
-69
lines changed

7 files changed

+178
-69
lines changed

app/assets/locale/all.ts

Lines changed: 35 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,11 @@
11
export default {
22
ja: {
33
words: {
4+
bracket: '【{0}】',
45
submit: '送信',
56
application_form: '申し込みフォーム',
67
sponsordoc: 'スポンサー資料',
8+
sponsorsession: 'スポンサーセッション',
79
privacypolicy: 'プライバシーポリシー',
810
codeofconduct: '行動規範',
911
vuefes_twitter: 'Vue Fes Japan の Twitter',
@@ -28,19 +30,31 @@ export default {
2830
add_to_calendar: 'カレンダーに追加',
2931
re_edit: '再編集',
3032
namecard: 'ネームカード',
33+
start_registration: '開場・受付',
34+
opening: 'オープニング',
35+
close: 'クローズ',
36+
break: '休憩',
37+
keynote: 'キーノート',
38+
vuejs_clinic: 'Vue.js クリニック',
39+
panel_discussion: 'パネルディスカッション',
40+
handson: 'ハンズオン',
41+
remodeling: '転換',
42+
lunch_time: 'ランチタイム',
43+
after_party: 'アフターパーティー',
44+
simultaneous_interpretation: '同時通訳あり',
3145
},
3246
category: {
3347
platinum: 'Platinum',
3448
gold: 'Gold',
3549
silver: 'Silver',
3650
bronze: 'Bronze',
37-
'session-room-naming-rights': 'Session room naming rights',
38-
'special-lunch': 'Special lunch',
51+
'session-room-naming-rights': 'Session Room Naming Right',
52+
'special-lunch': 'Special Lunch',
3953
lunch: 'Lunch',
40-
'after-party': 'After party',
41-
'name-card': 'Name card',
54+
'after-party': 'After Party',
55+
'name-card': 'Name Card',
4256
refreshment: 'Refreshment',
43-
'simultaneous-interpretation': 'Simultaneous interpretation',
57+
'simultaneous-interpretation': 'Simultaneous Interpretation',
4458
handson: 'Handson',
4559
media: 'Media',
4660
},
@@ -231,6 +245,7 @@ export default {
231245
teams_volunteer: 'ボランティアスタッフ',
232246
},
233247
speakers: {
248+
kazuya_kawaguchi: '川口 和也',
234249
sapphi_red: 'Vite Core Team Member\n東工大デジタル創作同好会traP所属',
235250
ota_meshi: 'フューチャー株式会社\nTechnology Innovation Group シニアアーキテクト',
236251
wattanx: 'STORES株式会社\nソフトウェアエンジニア',
@@ -313,9 +328,11 @@ export default {
313328
},
314329
en: {
315330
words: {
331+
bracket: '[{0}]',
316332
submit: 'Submit',
317333
application_form: 'Application Form',
318334
sponsordoc: 'Sponsor Document',
335+
sponsorsession: 'Sponsor Session',
319336
privacypolicy: 'Privacy Policy',
320337
codeofconduct: 'Code of Conduct',
321338
/* prettier-ignore */
@@ -340,6 +357,18 @@ export default {
340357
add_to_calendar: 'Add to Calendar',
341358
re_edit: 'Re-Edit',
342359
namecard: 'Name Card',
360+
start_registration: 'Doors Open, Registration Begins',
361+
opening: 'Opening',
362+
close: 'Close',
363+
break: 'Break',
364+
keynote: 'Keynote',
365+
vuejs_clinic: 'Vue.js Clinic',
366+
panel_discussion: 'Panel Discussion',
367+
handson: 'Handson',
368+
remodeling: 'Remodeling',
369+
lunch_time: 'Lunch Time',
370+
after_party: 'After Party',
371+
simultaneous_interpretation: 'Simultaneous interpretation available',
343372
},
344373
category: {
345374
platinum: 'Platinum',
@@ -549,6 +578,7 @@ export default {
549578
teams_volunteer: 'VOLUNTEER STAFF',
550579
},
551580
speakers: {
581+
kazuya_kawaguchi: 'Kazuya Kawaguchi',
552582
sapphi_red:
553583
'Vite Core Team Member\nDigital Creation Club traP in Tokyo Institute of Technology',
554584
ota_meshi: 'Senior Architect, Technology Innovation Group, Future Architect, Inc.',

app/components/timetable/TimetableBodyRow.vue

Lines changed: 22 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@ const props = defineProps<{
88
}>()
99
1010
const { locale } = useLocaleCurrent()
11-
const { showSpeakerInfo } = useSession()
11+
const { showSpeakerInfo, getCategory } = useSession()
1212
1313
// tdのclassを設定する
1414
const cssTdClass = (args: Track) => {
@@ -34,7 +34,9 @@ const _nuxtLink = computed(() => resolveComponent('NuxtLink'))
3434
:rowspan="track.rowspan"
3535
>
3636
<div v-for="session in track.sessions" :key="session.title" class="info">
37-
<div v-if="session.isTranslation" class="translate">同時通訳あり</div>
37+
<div v-if="session.isTranslation" class="translate">
38+
{{ $t('words.simultaneous_interpretation') }}
39+
</div>
3840
<p v-if="session.subTitle" class="subtitle">{{ session.subTitle }}</p>
3941
<component
4042
:is="session.id ? _nuxtLink : 'div'"
@@ -47,10 +49,24 @@ const _nuxtLink = computed(() => resolveComponent('NuxtLink'))
4749
"
4850
class="title"
4951
>
50-
<p v-if="session.category" class="category">{{ session.category }}</p>
51-
{{ session.title }}
52+
<i18n-t
53+
v-if="session.category"
54+
keypath="words.bracket"
55+
tag="p"
56+
class="category"
57+
scope="global"
58+
>
59+
{{
60+
`${$t(getCategory(session.category as 'platinum' | 'special-lunch' | 'lunch'))} ${$t(
61+
'words.sponsorsession',
62+
)}`
63+
}}
64+
</i18n-t>
65+
{{ session.titleKey ? $t(session.titleKey) : session.title }}
5266
</component>
53-
<div v-if="session.speaker" class="speaker">{{ session.speaker }}</div>
67+
<div v-if="session.speaker" class="speaker">
68+
{{ session.speakerKey ? $t(session.speakerKey) : session.speaker }}
69+
</div>
5470
</div>
5571
</td>
5672
</template>
@@ -73,6 +89,7 @@ css({
7389
backgroundColor: '{color.timetable.close.background}',
7490
},
7591
'.translate': {
92+
textAlign: 'left',
7693
display: 'inline-block',
7794
position: 'relative',
7895
marginBottom: '16px',

app/components/timetable/TimetableBodyRowMobile.vue

Lines changed: 18 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@ type Props = {
1414
1515
const props = defineProps<Props>()
1616
17-
const { showSpeakerInfo } = useSession()
17+
const { showSpeakerInfo, getCategory } = useSession()
1818
1919
// tdのclassを設定する
2020
const cssTdClass = computed(
@@ -75,10 +75,24 @@ const _nuxtLink = computed(() => resolveComponent('NuxtLink'))
7575
"
7676
class="title"
7777
>
78-
<p v-if="session.category" class="category">{{ session.category }}</p>
79-
{{ session.title }}
78+
<i18n-t
79+
v-if="session.category"
80+
keypath="words.bracket"
81+
tag="p"
82+
class="category"
83+
scope="global"
84+
>
85+
{{
86+
`${$t(getCategory(session.category as 'platinum' | 'special-lunch' | 'lunch'))} ${$t(
87+
'words.sponsorsession',
88+
)}`
89+
}}
90+
</i18n-t>
91+
{{ session.titleKey ? $t(session.titleKey) : session.title }}
8092
</component>
81-
<div v-if="session.speaker" class="speaker">{{ session.speaker }}</div>
93+
<div v-if="session.speaker" class="speaker">
94+
{{ session.speakerKey ? $t(session.speakerKey) : session.speaker }}
95+
</div>
8296
</div>
8397
</td>
8498
</template>

0 commit comments

Comments
 (0)