Skip to content

Commit 00953e2

Browse files
committed
Make strings for video search function translatable
1 parent 9b8c7cf commit 00953e2

File tree

2 files changed

+19
-4
lines changed

2 files changed

+19
-4
lines changed

src/assets/locales/ja.json

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -79,7 +79,12 @@
7979
"placeholders": {
8080
"video_keyword": "例) 理科"
8181
},
82-
"required": "*マークのあるものは必須項目です"
82+
"required": "*マークのあるものは必須項目です",
83+
"search_videos": {
84+
"search": "検索する",
85+
"search_result": "{source}の動画検索結果",
86+
"add_to_video_urls": "参考動画URLに登録する"
87+
}
8388
},
8489
"editing_visibility_dialog": {
8590
"title": {

src/components/EditLessonScreenInner3.vue

Lines changed: 13 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -13,10 +13,18 @@
1313
:placeholders="$t('components.editing_screen.placeholder.video_keyword')"
1414
/>
1515

16-
<button class="Button" @click="handleVideoSearchWord">検索する</button>
16+
<button class="Button" @click="handleVideoSearchWord">
17+
{{ $t('components.editing_screen.search_videos.search') }}
18+
</button>
1719

1820
<div v-if="videoSearchResult.length > 0" class="SearchResult">
19-
<h3>NHK For Schoolの動画検索結果</h3>
21+
<h3>
22+
{{
23+
$t('components.editing_screen.search_videos.search_result', {
24+
source: 'NHK For School',
25+
})
26+
}}
27+
</h3>
2028
<ul>
2129
<li v-for="(v, i) in displayLists" :key="i" class="SearchResultItem">
2230
<component
@@ -42,7 +50,9 @@
4250
class="Button"
4351
@click="registerVideoUrl(v.videoUrl)"
4452
>
45-
参考動画URLに登録する
53+
{{
54+
$t('components.editing_screen.search_videos.add_to_video_urls')
55+
}}
4656
</button>
4757
</li>
4858
</ul>

0 commit comments

Comments
 (0)