feat: add i18n to subscriptions import page

This commit is contained in:
Bnyro 2025-01-09 14:27:14 +01:00
parent 9352e96d9c
commit fe42087085
4 changed files with 12 additions and 7 deletions

View File

@ -27,7 +27,7 @@
</label>
</div>
</form>
<button class="btn mt-4" @click="handleExport" v-text="$t('actions.export_history')" />
<button class="btn mt-4" @click="handleExport" v-text="$t('actions.export')" />
</div>
</ModalComponent>
</template>

View File

@ -28,7 +28,7 @@
</div>
<br />
<div>
<a class="btn w-auto" @click="handleImport" v-text="$t('actions.import_history')" />
<a class="btn w-auto" @click="handleImport" v-text="$t('actions.import')" />
</div>
</form>
</div>

View File

@ -5,13 +5,15 @@
<input ref="fileSelector" type="file" @change="fileChange" />
</div>
<div>
<strong v-text="`Selected Subscriptions: ${selectedSubscriptions}`" />
<strong v-text="`${$t('info.selected_subscriptions')}: ${selectedSubscriptions}`" />
</div>
<div>
<strong>Override: <input v-model="override" class="checkbox" type="checkbox" /></strong>
<strong
><span v-t="'actions.override'" />: <input v-model="override" class="checkbox" type="checkbox"
/></strong>
</div>
<div>
<a class="btn w-auto" @click="handleImport">Import</a>
<a v-t="'actions.import'" class="btn w-auto" @click="handleImport" />
</div>
</form>
<br />

View File

@ -167,7 +167,9 @@
"export_history": "Export history",
"import_history": "Import history",
"file_format": "File format",
"override": "Override"
"override": "Override",
"import": "Import",
"export": "Export"
},
"comment": {
"pinned_by": "Pinned by {author}",
@ -240,6 +242,7 @@
"found_n_items": "Found {0} items",
"success": "Success",
"error": "Error",
"skipped": "Skipped"
"skipped": "Skipped",
"selected_subscriptions": "Selected subscriptions"
}
}