refactor: extract i18n strings

This commit is contained in:
Gauthier Roebroeck 2021-03-12 10:07:36 +08:00
parent 6c0b0f0111
commit bcefe227ec
3 changed files with 6 additions and 4 deletions

View file

@ -3,7 +3,7 @@
<v-expansion-panel v-for="(c, index) in collections"
:key="index"
>
<v-expansion-panel-header>{{ c.name }} collection</v-expansion-panel-header>
<v-expansion-panel-header>{{ $t('collections_expansion_panel.title', {name: c.name}) }}</v-expansion-panel-header>
<v-expansion-panel-content>
<horizontal-scroller>
<template v-slot:prepend>

View file

@ -3,7 +3,7 @@
<v-expansion-panel v-for="(r, index) in readLists"
:key="index"
>
<v-expansion-panel-header>{{ r.name }} read list</v-expansion-panel-header>
<v-expansion-panel-header>{{ $t('readlists_expansion_panel.title', {name: r.name}) }}</v-expansion-panel-header>
<v-expansion-panel-content>
<horizontal-scroller>
<template v-slot:prepend>

View file

@ -111,7 +111,8 @@
"summary_from_book": "Summary from book {number}:"
},
"collections_expansion_panel": {
"manage_collection": "Manage collection"
"manage_collection": "Manage collection",
"title": "{name} collection"
},
"common": {
"all_libraries": "All Libraries",
@ -430,7 +431,8 @@
"more": "Read more"
},
"readlists_expansion_panel": {
"manage_readlist": "Manage read list"
"manage_readlist": "Manage read list",
"title": "{name} read list"
},
"search": {
"no_results": "The search returned no results",